I can draw what I need but as new candle data arrives (e.g. every minutes in 1-min view), new rectangle appears.
I only want to draw one based on aSeriesVariable[0]. As it becomes aSeriesVariable[1], I don't need that rectangle displayed anymore (then that becomes junk in this case).
if barstate.last doesn't work. Is it the same technique as answered here? (Which makes the indicator harder to render.) Is there any other solution that simply doesn't use any past values of the used variable?