I want them to display on the same panel.
However, they show in separate panels.
Here are the essential lines:
macd = MACD(12,26,9); macd.Panel = 2; macd.ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Left; stoc = Stochastics(7,14,3); stoc.Panel = 2; AddChartIndicator(macd); AddChartIndicator(stoc);
I have attached the sample strategy for your testing.
Thanks,
Gary
Comment