Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest results are different....

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

    Backtest results are different....

    Hi,

    I have a strategy that I've created and runs perfectly on MR, resulting in multiple trades per day. However, when I run the strategy in the Strategy Analyzer (Backtest), I get 0 trades. I have no idea why this is occurring. Any insight would be appreciated.

    Thanks!
    jon

    #2
    Jon, which CalculateOnBarClose setting are you working with, are you relying on getting the intrabar formation for the code to work as expected?

    Thanks

    Comment


      #3
      Bertrand,

      COBC = true. I am working with 1-minute bars and am only concerned with OnBarUpdate being called at the close of each bar.

      thanks-

      Comment


        #4
        Ok Jon, what order types and backtest fill algorithms are you using?



        Have you tried adding a visual check to confirm that your conditions to enter is triggered as expected?

        Are you perhaps running MultiSeries and historical data would not be present as needed for the calcs?

        Comment


          #5
          Bertrand,

          I'm using EnterLong and EnterShort - so I believe I'm submitting market orders. As for the fill type, I'm using the Default setting in the Strategy Analyzer. This strategy is not a multi-series based strategy. I simply compare the current close to some previous close prices before entering for 1 instrument.

          I am using the Bollinger indicator for some of the exit criterion. However my problem is really concerned with why my strategy isn't entering the market at all on backtest, but enters about 5 times per day on MR.

          Obviously, I'd like the backtest engine to work properly so I can test the performance over the course of many days without having to run MR on each day individually.

          Comment


            #6
            Correct, those are just market orders, so you would need to debug what's different in your signal triggering / evaluation in backtest vs. replay, have you tried adding a visual check like a dot to the strategy to see when the conditions are triggering as per your rules?

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              Correct, those are just market orders, so you would need to debug what's different in your signal triggering / evaluation in backtest vs. replay, have you tried adding a visual check like a dot to the strategy to see when the conditions are triggering as per your rules?

              Bertrand,

              that's my point. Nothing seems to get triggered via the Strategy Analyzer. However the all the triggers work properly on MR.

              Comment


                #8
                Jon, can you please post or email a sample of the condition you attempt to trigger in the SA?

                Thanks

                Comment


                  #9
                  email sent, Bertrand.

                  thanks

                  Comment


                    #10
                    Thanks, got it - will reply now.

                    Comment


                      #11
                      I have developed a strategy which works perfectly in the Strategy Analyser Backtest and Walkforward environment. However, when I run the Strategy live on my Simulator Account, it does NOT fire any orders to market. I have checked all connected (internet, data feed, logs) all fine.

                      Comment


                        #12
                        If you're working with NT7 please first of all ensure the strategy is properly enabled, so it could generate orders as needed.

                        Next, please add a print or visual check via a drawing object to see if your triggers are evaluating to 'true' as needed in real time operation.

                        Comment


                          #13
                          I am using 6.5 and I have already done this. It shows up on Print check without a problem. It just doesn't trade..!

                          Comment


                            #14
                            What order type do you issue then exactly? What is the trace orders output telling you at the point of order triggering / submission? Do they perhaps expire unfilled?

                            Comment


                              #15
                              I am using "Liberal Setting" with the default "Enter Short" code. Out of interest, how would I check the trace orders output ?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              111 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              59 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              38 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              42 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              78 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X