Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Difference Betwwen Real time & BackTest Mode

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

    Difference Betwwen Real time & BackTest Mode

    Hi.
    I am a little confused.
    I am seeing signficantly different results between backtest mode & real time trading.
    In the strategy, I have CalculateOnBarClose = False, but use the If (FirstTickOfBar) = true to enter a trade if certain criteria are met.

    Two discrepencies:

    1/ Certain trades appear on backtest that did not occur in real time mode& vice-versa.
    2/ Certain trades being entered one bar later in backtest mode vs. real time mode.

    The way is see it, if I am using the First Tick of Bar function to enter a trade there should be no discrepency between backtest mode & real time mode in the way trades are entered since the conditions should be identical (e.g. EMA, ATR, price momentum, MACD, etc.)

    Any ideas guys.
    thx in advance

    David

    #2
    Hi David,

    Here is some information that may provide some insight on this.

    RayNinjaTrader Customer Service

    Comment


      #3
      thx Ray, but I don't think that is the issue.
      one question, in backtest mode, are the indicators calculated at the close of the bar to define whether entry criteria are met for the open of the subsequent bar or are the indicators calculated at the open of the subsequent bar.....
      Since I am using entry criteria calculated using FirstTickOfBar, this could make the difference.

      thx!
      David

      Comment


        #4
        In backtest, its *always* close of bar. If your strategy code executes tick by tick for sure you will have different results than when in backtest. If you use FirsTickOfBar, you have to check the values of 1 bar ago to be the same as running on the close of the bar.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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