Hi. It's not as simple as adding a line - the indicator is not dealing with new bars correctly. When you chage the TF you are indirectly refreshing all bars which is not the way to go, you just need the newest bar refreshed. What indicator is it?
Quote:
|
Originally Posted by luxinterior
Hi
I have an indicator that works well apart from one problem. I have to change the time frame of the chart to force it to refresh and repaint the dots. My question then is is there a line of code I can add to the indicator that will force it to automatically refresh at the start of a new bar/candle?
Thanks in advance...
Lux
|