Can anyone explain why indicators that repaint on a live chart, don't repaint on a offline chart?
Thanks,
PBB
Thanks,
PBB
Repainting indi into Non-Repainting Indi - Help 2 replies
Giving an Offline Chart a Live Data Feed 1 reply
Having some issues with Offline charts 2 replies
Backtesting Offline Charts 1 reply
Offline Charts time periods 2 replies
DislikedProbably that happens because there are no "ticks" in offline charts so the indicator is not triggered in right wayIgnored
int counted_bars=IndicatorCounted();
int counted_bars=0;
Dislikedthe first time you attach an indicator to a chart, it calculates all bars. then for each new tick it calculates only the last two bars, considering that older bars have been calculated, thus saving time and resources.
this is accomplished by the use of IndicatorCounted() function. This function tells indicator how much bars have been calculated.
in live chart, IndicatorCounted() equals zero when called the first time, and on each new tick it equals the number of bars minus one.
bad design indicator become repainting because the use of this...Ignored