Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing NinjaTrader8 from external application

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Thanks NinjaTrader_BrandonH for your help.

    Need to know if there is some trick to get Statistics performance via code, given at below location.


    Thanks in advance,
    Abhishek Arora

    Comment


      #17
      Hello AroraAbhishek,

      Thank you for your note.

      You could get Trade Performance statistics such as those in the link you shared by accessing the TradesPerformance collection. For example, you could print out Gross Profit using the following code.

      Code:
      // Print out the gross profit of all trades
          Print("Gross profit is: " + SystemPerformance.AllTrades.TradesPerformance.GrossProfit);
      See the help guide documentation below for more information about accessing TradesPerformance values.
      TradesPerformance - https://ninjatrader.com/support/help...erformance.htm

      Let us know if we may further assist.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment


        #18
        Hi NinjaTrader_BrandonH thanks for your reply.

        Wanted to ask a doubt :
        I have a c# dll referenced in NT8 app. Is it possible to get the below things from the dll itself
        -> https://ninjatrader.com/support/help...re_service.htm
        -> https://ninjatrader.com/support/help...erformance.htm
        -> https://ninjatrader.com/support/help...ncemetrics.htm

        Do i need to create another dll or ninjascript or I can utilize it in my existing dll only.

        Thanks in advance.

        Comment


          #19
          Hello AroraAbhishek,

          Thank you for your note.

          You would need to get the information for TradesPerformance, PerformanceMetrics, and Share Service through the platform itself. The DLL interface is limited and only able to access the information found in the help guide documentation below.



          Let us know if we may assist further.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          627 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          359 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          562 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          568 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X