Overlay = false;
DrawOnPricePanel = false;
Add(new Plot(new Pen(Color.Green, 2), PlotStyle.Line, "Above"));
Add(new Plot(new Pen(Color.Red, 2), PlotStyle.Line, "Below"));
Add(new Plot(new Pen(Color.Orange, 1), PlotStyle.Line, "Mid Line"));
I condition in my indicator if I want the plots drawn or not.
Question/Problem:
If I don't set a plot value when I draw a rectangle it doesn't show. If i do set a plot line value the rectangles show. I put a "Print" in my and the DrarwRectangle statement is always executed.
Why do the rectangles not show if I don't set a plot. Is this a bug?
Comment