I have created a Exponential Moving average Ribbon that I would like to plot underneath price. The ribbon consists of rectangles.
if (CurrentBar > 1)
{
if(XMA_1[0] > XMA_2[0])
DrawRectangle(CurrentBar.ToString(),false,1, Lower,0,Upper,Color.Green,Color.Green,2);
else DrawRectangle(CurrentBar.ToString(),false,1, Lower,0,Upper,Color.Red,Color.Red,2);
The plots are lines,
protected override void Initialize()
{
Add(new Plot(new Pen(Color.Orange,1), PlotStyle.Line, "XMA_1"));
Add(new Plot(new Pen(Color.Green,1), PlotStyle.Line, "XMA_2"));
Add(new Plot(new Pen(Color.DarkViolet,1), PlotStyle.Line, "XMA_8"));
PlotsConfigurable = true;
Overlay = false;
When the overlay is false only the plots move to panel 2 but the rectangles stay in panel 1 or Panel "Same as input series" but always on top of price. When I change the Panel for the inputs from Panel 2 to 1, the indicator continues to plot on top of price.
Please help with fixing this problem to have the indicator underneath price
Comment