for (shift = CountBars; shift>=0; shift--) { Comment("\n Repaintable bars = ", CountBars+1); // <<<<<<<<<<<<<<<<<<<< add this line b4plusdi=iADX(NULL,0,ADXbars,PRICE_CLOSE,MODE_PLUSDI,shift-1);
repaint slightly - yes; JR's little trick "before[i-1], now[i], after[i+1]" whrere i-1 in real life - bar in te future - not the cleanest way to clean-up history after itself
Phy, could you tell, please, how this line works (what happens inside)?
Comment("\n Repaintable bars = ", CountBars+1); // <<<<<<<<<<<<<<<<<<<< add this line
thank you
It prints the number of bars the indicator is going to re-process on each tick.
phy:
It prints the number of bars the indicator is going to re-process on each tick.
It prints the number of bars the indicator is going to re-process on each tick.
Thanks guys for your help.
Much appreciated.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
Can someone please help me?
I have an indicator attached and I am wondering if it repaints.
I have watched it on smaller time frames and it seems that it doesn't repaint but I still do not trust it.
I appreciate in advance any help.
Thank you.