How to prefetch indicator history when Robot starts?
How to prefetch indicator history when Robot starts?
03 Oct 2018, 10:51
Hi!
Could you explain how to preload / prefetch indicator data (for example for ZigZag - https://ctrader.com/algos/indicators/show/1597) when cBot starts? Now I should whait for min 2 extremum points to draw Zigzag.
Thanks.
Replies
diiptrade
03 Oct 2018, 20:58
But, in real time it prefetch about 2k bars, in backtesting - about 120 bars... How to prefetch more?
@diiptrade
PanagiotisCharalampous
04 Oct 2018, 11:29
Hi Roman,
This is a limitation of backesting. A workaround is to start the backtesting earlier so that it can collect the necessary information.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
03 Oct 2018, 11:03
Hi Roman,
Data is loaded in Indicators on their initialization. There is nothing special you need to do about it. See below
Best Regards,
Panagiotis
@PanagiotisCharalampous