Not much of a programmer, but trying to fix something simple (but not for me).
I see a lot of people complaining about repainting indicators. I want mine to repaint but it doesn't.
I have an indicator that gives a bar a color when it's inside the range of the previous candle.
But what happens. EVERY bar starts inside the range of the previous bar. So every bar gets immediately a color. However I want to get rid of that color once the range of the previous bar is broken. Because then it can't be an INSIDE BAR anymore and has to be black like the other bars. But the color does not disappear and keeps colouring the bar.
How can fix this ? I was thinking of a refresh or reset option, but I could not find something like that tho...
Another option, give the bar the color at the close of the bar, but how ?
Anybody ? TIA.
I see a lot of people complaining about repainting indicators. I want mine to repaint but it doesn't.
I have an indicator that gives a bar a color when it's inside the range of the previous candle.
But what happens. EVERY bar starts inside the range of the previous bar. So every bar gets immediately a color. However I want to get rid of that color once the range of the previous bar is broken. Because then it can't be an INSIDE BAR anymore and has to be black like the other bars. But the color does not disappear and keeps colouring the bar.
How can fix this ? I was thinking of a refresh or reset option, but I could not find something like that tho...
Another option, give the bar the color at the close of the bar, but how ?
Anybody ? TIA.