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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          65 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          139 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          75 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X