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.

      Gaby V.NinjaTrader Customer Service

      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!
          Gaby V.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by TrippTraders, Yesterday, 07:14 PM
          1 response
          12 views
          0 likes
          Last Post brucerobinson  
          Started by decosenty, Yesterday, 11:33 PM
          0 responses
          9 views
          0 likes
          Last Post decosenty  
          Started by RicharBarrio, Yesterday, 11:26 PM
          0 responses
          7 views
          0 likes
          Last Post RicharBarrio  
          Started by paulo_br, 09-13-2024, 08:41 AM
          8 responses
          1,155 views
          0 likes
          Last Post AppleID25  
          Started by mno_om, Yesterday, 08:44 PM
          0 responses
          11 views
          0 likes
          Last Post mno_om
          by mno_om
           
          Working...
          X