Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to programmatically access the statistics in the 'Strategy Analyzer' window...

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

    How to programmatically access the statistics in the 'Strategy Analyzer' window...

    Hello NinjaTrader gurus!


    I find the Strategy Analyzer tool invaluable to determine what parameters I should use for my own strategy before running live on an instrument. However I have many manual steps I need to run every morning with the tool and would like to inquire if I can automate some of these steps.

    Q1: Is there a way from C# strategy code to extract the performance statistics that are shown in the 'Strategy Analyzer' window?

    Q2: If there is not, can one access these statistics from a running strategy instance?

    Q3: If the above are not possible, do you have tips on how I can record my own performance statistics as my strategy is being run for each parameter permutation?

    Thanks for the awesomeness!

    #2
    Hello JPPoulin,

    There has been interest in getting optimization results which have resulted in feature request IDs SFT-1610: 'Have override like OnOptimizationResults / OnOptimizationCompleted' and SFT-4268 'Trigger events on Optimization begin/end'.

    There may be a way to accomplish this with undocumented custom code.
    https://ninjatrader.com/support/foru...710#post828710
    https://ninjatrader.com/support/foru...08#post1071108


    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Oh awesome Chelsea, thanks for the prompt and useful answers as usual!

      I'll look into this and report back if its possible

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by JTizz, Today, 03:32 PM
      1 response
      33 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by ebaydan777, Today, 02:41 PM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by aligator, Today, 02:28 PM
      1 response
      27 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by daniel_weber8, Today, 01:21 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChristopherS  
      Started by jungsoohuh, Today, 12:07 PM
      1 response
      35 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Working...
      X