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 DanielTynera, Today, 01:14 AM
        0 responses
        2 views
        0 likes
        Last Post DanielTynera  
        Started by yertle, 04-18-2024, 08:38 AM
        9 responses
        40 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by techgetgame, Yesterday, 11:42 PM
        0 responses
        10 views
        0 likes
        Last Post techgetgame  
        Started by sephichapdson, Yesterday, 11:36 PM
        0 responses
        2 views
        0 likes
        Last Post sephichapdson  
        Started by bortz, 11-06-2023, 08:04 AM
        47 responses
        1,615 views
        0 likes
        Last Post aligator  
        Working...
        X