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 zstheorist, Today, 07:52 PM
        0 responses
        3 views
        0 likes
        Last Post zstheorist  
        Started by pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        149 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        5 views
        0 likes
        Last Post tkaboris  
        Working...
        X