I've developed an indicator that draws a Dot above/below a candle when certain conditions for a short/long are met. If the candle following the signal doesn't make a lower low (for shorts) than the low of the candle that produced the signal, the dot is removed once the bar is closed.
What I'd like to achieve now is to avoid two dots in a row, ie if two consecutive candles meet the criteria, the second one shouldn't display a dot.
Any help is much appreciated.
Here's the code for the first part (for shorts):
if( conditions here )
{
DrawDot("DotShort" + CurrentBar, false, 0, High[0]+ 2*(TickSize), Color.Black);
}
if (Low[0] >= Low[1])
{
RemoveDrawObject("DotShort" + (CurrentBar -1));
}

Comment