Slower onTick() process time when on Backtest
-
Hi,
I'm very new to Fxdreema. I put code to track process time by put GetTickCount(); function at beginning of onTick() and calculate difference at the end of onTick() function. I notice very slow process time on backtest around 2,500 ms but when testing in real situation in run fine at about 150 ms.
Any idea why?
Thanks a lot in advance
-
Back-testing is fake. It's a simulation. It needs to be built every tick of the way.
Using tick data instead of Open Prices Only is especially slow. Lots of data to move around, create and simulate. Back-testing simulation of time is very imperfect.
Using Once Per Bar, if you're not already, can make a huge difference in the speed of testing.
-
I understand that there are overhead when run simulation but onTick() is the same function it should take same time to complete unless there are something cause it to cost more time when run in simulation if that the case any idea what causing it.
-
2 seconds and a half for just 1 tick? Are you sure?