Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Export Complete Strategy Performance

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

    Export Complete Strategy Performance

    Is there a way to easily export a strategy's performance without having to get each and every item like below. If we right click on a strategy and select strategy performance, there is already a nice report already available. Is that report available to be exported? I would like the ability to access that report and export it on State == Terminated.


    PHP Code:
                double totalNetProfit = SystemPerformance.AllTrades.TradesPerformance.Currency.CumProfit;
                double grossProfit = SystemPerformance.AllTrades.TradesPerformance.GrossProfit;
                int totalTrades = SystemPerformance.AllTrades.Count;
                double profitFactor = SystemPerformance.AllTrades.TradesPerformance.ProfitFactor;
                double totalCommissions = SystemPerformance.AllTrades.Sum(trade => trade.Commission);
    .......>
    Then write somewhere.
    
            ​ 
    

    #2
    I'm not sure if it's what you wanted, but within the strategy performance, if you right click somewhere you have the option export it as a csv or xls file.

    Comment


      #3
      Hello cutzpr,

      Thank you for your post.

      There is no supported way to export the actual Strategy Performance report from code within the strategy itself.

      You could write your own statistics to a file using StreamWriter.

      Comment


        #4
        I would like to make a request to add the ability to export strategy performance reports via ninjascript. What would be great would be if we could create custom reports using the gui. Save them as a template, and also be able to export them via ninjascript.

        Comment


          #5
          Thank you for your suggestion.

          Please use the link below to submit this request to our product team for consideration to implement in future releases:

          NinjaTrader Feature Request Form

          You can use this link for future feedback or features you'd like to see as well.

          Thank you again for your feedback on this item!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          20 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          119 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X