I use the following code:
{
{
CandleOutlineColor = Color.LightGray;
BarColor = Color.LightGray;
}
However when the current bar closes, it keeps the color that I am setting rather than returning to the default data series bar and outline colors as defined in the data series. I need to recalculate the indicator to repaint the bars that have closed since the last time the indicator was inserted or recalculated.
How do I make it so that only the current bar has a different color and when it closes it gets the default data series color?
Many thanks.
Comment