When a specific condition is met for a bar, I number it like this:
if condition is true
{
Draw.Text(this, "tag1"+CurrentBar, true, "1", 0, Low[0] - ((ATR(14))[0]/2), 20, Brushes.Lime, new SimpleFont("Arial", 12),TextAlignment.Center,Brushes.Transparent, Brushes.Transparent, 0);
}
if condition is true
{
Draw.Text(this, "tag1"+CurrentBar, true, "1", 1, Low[0] - ((ATR(14))[0]/2), 20, Brushes.Lime, new SimpleFont("Arial", 12),TextAlignment.Center,Brushes.Transparent, Brushes.Transparent, 0);
Draw.Text(this, "tag1"+CurrentBar, true, "2", 0, Low[0] - ((ATR(14))[0]/2), 20, Brushes.Lime, new SimpleFont("Arial", 12),TextAlignment.Center,Brushes.Transparent, Brushes.Transparent, 0);
}
Any ideas how I can remove them ?
As it stands, my number 1 and 2 will stay on the chart, but I am not interested in seeing them on the chart anymore.... because bar 3 did not meet my requirement

Comment