If I add a new Plot(Color.Gray, " "), I can use PlotColors[] to overwrite the color for each bar. However, if I add a new Plot(Color.Transparent, " "), this does not work. Why?
Now you will ask, why I want to add a transparent plot. Sometimes I simply do not want to display it and I also want to access the indicator via another indicator. In both cases, just to make it faster, I do not want to set the PlotColors.
I have found a small workaround via OnBarUpdate()
if (ShowPlot) Plots[0].Pen.Color = Color.Gray; else Plots[0].Pen.Color = Color.Transparent;
But this approach is a somewhat ridiculous. It is like painting a balustrade twice, first using a varnish against the vicissitudes of NinjaTrader, then adding the paint on top for display.
Comment