Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy returns different results

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

    Strategy returns different results

    I ran a strategy in the analyzer about 3 months ago and recorded the results. I just ran it again (the exact same parameters) and got significantly different results. Why is this?

    #2
    Hello samish18,

    When comparing results there are some reasons that would cause the strategy to calculate differently between tests. While we would be unable to provide an exact answer of why that is with your custom strategy and that specific test you can debug the strategy to find out the exact answer. Because every strategy is different there is not one single answer as to why that would be different, that heavily depends on the settings you used and how the strategy was coded.

    We have a guide linked below that goes over how you can add debugging to the strategy to explore differences between tests. The guide goes over comparing two tests with print statements.

    This guide goes over how to add debugging and then compare results. The short summary is that you add prints into your code and then collect the output after running the strategy in one test. Then restart the strategy so it processes in the second test and then collect those prints as well. You can then compare the prints to see how the strategy logically worked in both use cases. Based on your observations you can make any changes to the settings or strategy.
    https://support.ninjatrader.com/s/ar...language=en_US

    Comment


      #3
      There is not a bug in the strategy - the same strategy, with the same parameters was run twice and returned different results

      Comment


        #4
        Good morning Samish, if you are not providing any specific, for another reader like me it could be literally everything, including the alignment of the stars. If you are running it on the same exact set of data and the input parameters are the same, (are you positive of it?), it could also be a bug in your strategy code that you are not aware of. For example you are not using series where you should. When I have an interesting result I usually backup the entire platform data to be able to compare results in a later date as Jesse suggests.
        Last edited by giogio1; 03-27-2025, 11:54 PM.

        Comment


          #5
          Do you have NinjaTrader 8 version 8.1.4.2?
          In the top bar -> Help -> About -> Version
          If not, reinstall the correct version.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          48 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          126 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          66 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          42 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X