Backtesting: OnBar() vs OnTick() with Timeframe = "t1" and Data = "Tick Data from Server"
Created at 19 Feb 2015, 13:15
Backtesting: OnBar() vs OnTick() with Timeframe = "t1" and Data = "Tick Data from Server"
19 Feb 2015, 13:15
I would expect OnTick() and OnBar() to be called in alternation like this:
OnTick, OnBar, OnTick, OnBar...
However, sometimes OnTick() is called twice in a row like this:
OnTick, OnBar, OnTick, OnTick, OnBar...
Could you please explain why does this happen?
cprcrack
19 Feb 2015, 14:45
A simple backtest with tick timeframe and tick data from 1/10/2014 to 10/10/2014 (10 days) brings the following results:
However the same backtest with 1m timeframe and 1m data for the same period brings the following result as expected:
I need to understand this discrepancy for the development of my bot.
@cprcrack