Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is market replay working right?

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

    Is market replay working right?

    Hi guys!

    I created a simple strategy which should return the same results on historical backtest and market replay as well.

    The strategy runs on a 5 min Timeframe and uses crossover signals of a fast and a slow EMA (Close; Periods 8 & 24). It works stop and reserve because no other exit rules were defined. There is just a timefilter limiting the trading hours.

    I used identical tickdata for both, the market replay and the historical backtest and ran it with calculating just on Bar Close.

    While I was running the strategy in replay mode I checked the signals on a chart and I was really surprised that the executions of the signals was far from beeing acceptable! They were lagging behind seriously. If you take a look at attachement "Replay Chart" you can see that the first execution takes place 4 bars after the signal is generated. The EnterShort - Execution at 11:50 also is 1 bar late. Such Delays would make the Replay tool pretty useless for testing strategies "realtime" - simulated. Also I set "Exit on Close" to "TRUE" (settings attached) -> but the strategy still held a position after 22:00. My timefilter is set to allow entering Trades only between 08:30 - 13:30 and 13:45 - 21:30 -> could this affect the ExitonClose-feature?

    The same strategy backtested in the strategy analyzer is working perfectly like expected (look at "Historical Chart").

    Question 1:
    Is there a bug in the Market Replay Tool? I'm on NT 6.5.0.9. Do you have any experience with similar problems?

    Question 2:
    Am I principally right, that this strategy setup should return the same trades on market replay and historical backtest? (let aside differences due to different filling prices)

    Question 3:
    How far away is the market replay tool from an live trading environment (besides how filling prices are generated)? Can I expect rather same results?

    Thx
    Attached Files

    #2
    There is absolutely no guarantee that you will get the same results in replay as backtest. I would state that you likely will not get identical results.

    Replay is considered real-time operation. The fill simulation in replay is our real-time simulation engine which operates vastly different than fill simulation in backtest.

    Here is some more info - http://www.ninjatrader-support.com/H...sBacktest.html
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 04:57 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    5 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X