Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest running wrong strategy

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

    Backtest running wrong strategy

    I have two custom strategies, each with print statements. Using the Strategy Analyzer on the ES, I changed the pull-down to the 2nd strategy. However, when I run it, the output window shows messages from the other strategy which is NOT being run. And not the print statements from the one supposedly being back-tested.

    BTW, this is NT 6.5.1000.14

    #2
    Hello,

    Check your print statements, indicator names and retest it. What you describe is impossible if the print statements and indicator names are all uniform and coded properly.

    You may want to post the two files and tell us how to reproduce it.
    DenNinjaTrader Customer Service

    Comment


      #3
      I agree it should be impossible. The only way to stop it was to pull the old strategy out of the "My Documents\NinjaTrader 6.5\bin\Custom\Strategy" folder.

      Just to be sure, I shutdown NT & brought it back up then recompiled my strategy. So apparently no problem now with it running the wrong strategy now.

      I have noticed that some parameter settings are kept when I change the strategy via the pull-down, like Min Bars Required. I was surprised you would do that.

      Comment


        #4
        Lost Trader,

        Yes, as you switch strategies the settings carry over.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by martin70, 03-24-2023, 04:58 AM
        15 responses
        114 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by The_Sec, Today, 02:29 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by jeronymite, 04-12-2024, 04:26 PM
        2 responses
        31 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by Mindset, 05-06-2023, 09:03 PM
        10 responses
        265 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by michi08, 10-05-2018, 09:31 AM
        5 responses
        743 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X