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 DJ888, Yesterday, 06:09 PM
        2 responses
        9 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        40 views
        0 likes
        Last Post jeronymite  
        Started by bill2023, Today, 08:51 AM
        2 responses
        16 views
        0 likes
        Last Post bill2023  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        167 responses
        2,260 views
        0 likes
        Last Post jeronymite  
        Started by warreng86, 11-10-2020, 02:04 PM
        7 responses
        1,362 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X