I am using a Wingding dot to signify something occurring. However, because I'm using update "on price change," sometimes the thing which occurs doesn't stay there for very long, and it actually disappears by the time the bar closes.
My code:
NinjaTrader.Gui.Tools.SimpleFont wingdings = new NinjaTrader.Gui.Tools.SimpleFont("Wingdings", 20) { Size = 20, Bold = true };
if ((slo[0] + slh[0])/2 > 0 && (slo[1] + slh[1])/2 < 0)
{
Draw.Text(this, "up arrow"+CurrentBar, true, "l", 0, Low[0] - ATR(14)[0], 0, Brushes.GhostWhite, wingdings, TextAlignment.Center, Brushes.Transparent, Brushes.Transparent, 100);
}
[the letter "l" in Wingdings is a dot.]
Is there a way for me to "undraw" this dot? Would you have any recommended approach?
[I was thinking about using some type of time signal to determine if the event reverses in the same bar and then drawing a black dot or something to cover up the ghost-white dot.]
Please let me know if there is a way to undraw the dot and your thoughts. Thanks!

Comment