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 RubenCazorla, Today, 09:07 AM
        1 response
        5 views
        0 likes
        Last Post RubenCazorla  
        Started by Irukandji, Today, 09:34 AM
        0 responses
        3 views
        0 likes
        Last Post Irukandji  
        Started by TraderBCL, Today, 04:38 AM
        3 responses
        25 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        11 responses
        1,423 views
        0 likes
        Last Post jculp
        by jculp
         
        Started by BarzTrading, Today, 07:25 AM
        2 responses
        29 views
        1 like
        Last Post BarzTrading  
        Working...
        X