I am trying to get the second data series onto Panel 2 but have difficulties to implement it.
Attached a picture to clarify. Any advice what I missed?
I basically only want the 50 Period of the SPY on the chart on the second panel which currently shows as AAPL. Here my code.
else if (State == State.Configure)
{
AddDataSeries("SPY", Data.BarsPeriodType.Day, 1, Data.MarketDataType.Last);
_smaSPY = SMA(Closes[1], 50);
_smaSPY.Plots[0].Width = 2;
_smaSPY.Plots[0].Brush =Brushes.Purple;
_smaSPY.Panel = 3;
base.AddChartIndicator(_smaSPY);
Comment