Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy analyzer results discrepancy

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

    Strategy analyzer results discrepancy

    I frequently experience an issue in Strategy Analyzer in which the results displayed in the summary don't match the results in the main results window (see attachment). Is there an explanation for this, and some way to fix this discrepancy?

    I've tried closing and restarting my NT platform, however this doesn't resolve the issue.
    Attached Files
    Last edited by 2inthebush; 09-24-2021, 01:05 PM.

    #2
    Hello 2inthebush,

    Thanks for your reply.

    This can be caused by a few things.

    Does your code use static variables?

    Do you have IsInstantiatedOnEachOptimizationIteration set to false? Reference: https://ninjatrader.com/support/help...niteration.htm

    Does you code reset variables in State.dataLoaded?





    Comment


      #3
      Thanks for your reply, Paul. I'll need to look into those. I've built all of my strategies with the NT Builder, so I haven't included any coding beyond what's available in Builder.

      Comment


        #4
        Hello 2inthebush,

        Thanks for your reply.

        Please check the "Log" tab of the Ninjatrader8 control center for any errors related to running your strategy in the analyzer.

        The only parameter then you can check would be IsInstantiatedOnEachOptimizationIteration.

        Are you using any 3rd party indicators in the Strategy Builder strategy?

        Please test the Sample MA Crossover and advise if you see the same/similar distorted results.

        What version of NinjaTrader 8 are you using?

        Comment


          #5
          Hi Paul,

          I wanted to follow up on this thread, as I've realized that the data mismatch I've described above is caused by another issue that I've been working on in another support post, regarding inconsistent test behavior in applying "exit at session close". So I'll tackle resolving the "exit at session close" issue in the other thread first. Thanks for your help so far.

          I've been experiencing an ongoing issue with my strategies exiting positions on session close inconsistently in NT8 backtests. For example, in Analyzer settings I have set "exit at session close" to false. I have also checked that in Tools>Options>Trading settings that "auto close positions" is

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          172 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          88 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          128 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          208 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          185 views
          0 likes
          Last Post CarlTrading  
          Working...
          X