Perhaps you can play with something like this, it works for MTF if(Time==TimeArray[y])

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 folks,
Some of the indicators I use repaint history if I reload by opening the indicator properties box and then closing the box (without necessarily changing parameters).
I would like to reload the indicator from within the code at the start of each bar.
It's not an issue of the way the indicator counts,so I tried -
if(TimeCurrent()==Time[0])WindowRedraw();
It didn't work and I can't find anything in the MT4 manual.
If anyone can point me in the right direction, I'd be most grateful, as it would make these indicators much more useful.