Using isBacktesting call to speed up tests
Using isBacktesting call to speed up tests
19 Mar 2015, 13:00
Hi all,
Just wondering how the call isBacktesting can be used to speed up tests?
and can the Optimiser results be sped up in the same way?
Replies
cjdduarte
26 Mar 2015, 05:01
RE:
there is something equivalent to otimization?
IsOtimization?
Spotware said:
You can exclude some code from backtesting and optimization:
if (!IsBacktesting) { //do something only if it is NOT backtesting }
@cjdduarte
AlexanderRC
07 Apr 2015, 13:32
RE:
Spotware said:
You can use IsBacktesting in optimization as well. It is true for both backtesting and optimization.
It would be trivial to implement IsOptimizing() call to return true if the cBot was launched under the optimizer. The cBot may do some internal optimizations by caching data somehow between invocations.
@AlexanderRC
Spotware
19 Mar 2015, 14:50
You can exclude some code from backtesting and optimization:
@Spotware