Regarding removing Draw objects drawn by an indicator, when I want to remove an object (i.e. line, arrow, etc), would I have to do the null check before removing it, as in the code below?
if (a > 0 && CurrentBar == RebUpBar[a-1] + 1 && Low[0].ApproxCompare(Low[1]) < 0 && High[0] < High[1] + 5 * TickSize && [COLOR=#B22222]DrawObjects["Rebound Up = " + RebUpBar[a-1]] as DrawingTools.ArrowUp != null[/COLOR]) { RemoveDrawObject("Rebound Up = " + RebUpBar[a-1]); RebUpBar.RemoveAt(a-1); a--; } Thank you
Comment