Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Any advantage to Tick Replay for Calculate.OnBarClose?

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

    Any advantage to Tick Replay for Calculate.OnBarClose?

    I have a strategy I converted from TOS that uses 5 min bars. I've read several posts that say there is simply no advantage to using Tick Replay for back testing strategies that calculate OnBarClose. This makes perfect sense to me as all calculations should just get processed at the bar close. However, I notice huge differences in the strategy when Tick Replay is enabled vs a simple backtest. The strategy does look at Highs and Lows for preceding bars, but these values should be available on both standard historical or tick replay data.

    I did add the ATR indicator and my own Donchian Channel indicator to the strategy and their values are used to determine trades. Could these be the reason for the large difference in results?
    At the end of the day, I'm thinking this logic only gets called every 5 min regardless of the data granularity. So why the huge difference in results?

    #2
    Hello fmcap,

    Thank you for your reply.

    We wouldn't expect differences with Tick Replay On with Calculate set to OnBarClose unless the strategy was using OnMarketData for something. Does the strategy use OnMarketData?

    If not, I would test with the Sample MA Crossover that's built into NinjaTrader over the same time period and instrument you're testing this strategy on. We've tested this on our end and it should come up with the same result whether or not Tick Replay is enabled. If you get different results with this, that would indicate a data issue.

    If they come up with different results, you'd want to delete the historical data, clear your cache, and redownload the necessary data before testing again. If this is the case, please delete your historical data using the instructions provided at the following page of the NinjaTrader Help Guide:

    Removing Historical Data
    • Once the data has been deleted close NinjaTrader. Open the Documents\NinjaTrader 8\db\cache folder. Select all files then right mouse click and select “delete.”
    • Open NinjaTrader and connect to your data provider.
    • Download minute and tick data for the entire time frame using the Historical data window (Tools > Historical Data > Load)
    • Rerun backtests for Sample MA Crossover, over the same time period, one with Tick Replay and one without
    • If these match, run backtests on your strategy again.

    Please let me know if this resolves this item.


    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ChainsawDR, Yesterday, 12:55 PM
    0 responses
    11 views
    0 likes
    Last Post ChainsawDR  
    Started by Mubeen Haider, Today, 08:11 AM
    0 responses
    4 views
    0 likes
    Last Post Mubeen Haider  
    Started by lismartin, Yesterday, 03:30 PM
    3 responses
    17 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by RT001, Yesterday, 03:47 PM
    4 responses
    26 views
    0 likes
    Last Post RT001
    by RT001
     
    Started by johnMoss, Yesterday, 10:40 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X