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 love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        36 views
        0 likes
        Last Post love2code2trade  
        Started by alifarahani, Today, 09:40 AM
        2 responses
        13 views
        0 likes
        Last Post alifarahani  
        Started by junkone, Today, 11:37 AM
        3 responses
        16 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by pickmyonlineclass, Today, 12:23 PM
        0 responses
        2 views
        0 likes
        Last Post pickmyonlineclass  
        Started by frankthearm, Yesterday, 09:08 AM
        12 responses
        44 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X