How do I refresh an indicator?

 

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.

 

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

Reason: