I have made a very simple indicator called the Renko candle close line. It plots an object on the chart where the candle would close in both directions. The problem is that it plots on all the candles and I would love it to only plot on the current candle.
Is there a way to remove plots that are not on the current candle?
or perhaps code it to only plot on the current candle.
Thanks in advance!
AtemiWaza
if (State == State.SetDefaults) { Bricksize = 2; Highcolour = Brushes.DarkGreen; Lowcolour = Brushes.DarkRed; AddPlot(new Stroke(Highcolour, 2), PlotStyle.Hash, "Upplot"); AddPlot(new Stroke(Lowcolour, 2), PlotStyle.Hash, "Dnplot"); } else if (State == State.Configure) { } } protected override void OnBarUpdate() { //Add your custom indicator logic here. Upplot[0] = (Open[0] + (Bricksize * TickSize)) ; Dnplot[0] = (Open[0] + (-Bricksize * TickSize)); }
Comment