I want to add a line to my StrategyPlot that panits in the same panel. How can I do this? The first part of the code below works fine. But when I add the seccond part, an extra blank panel is displayed in the chart without any line or plot.
Add(StrategyPlot(0));
StrategyPlot(0).Plots[0].Pen.Color = Color.Green;
StrategyPlot(0).PanelUI = 5;
Add(StrategyPlot(1));
StrategyPlot(1).Lines[0].Value = maxATR;
StrategyPlot(1).Lines[0].Pen.Color = Color.LightGray;
StrategyPlot(1).PanelUI = 5;

Comment