I have set to be in panel 2.
Everything is fine and then randomly the indicator moves to the chart... so you cannot see the price action
The code is below. I am guessing it is something to do with SMA defaulting to the chart window... maybe
OrderFlowCumulativeDelta1 = OrderFlowCumulativeDelta(Close, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Type.BidAsk, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Period.Bar, 0);
SMA1 = SMA(OrderFlowCumulativeDelta1.DeltaClose, Convert.ToInt32(10));
SMA1.Plots[0].Brush = Brushes.LimeGreen;
SMA1.Panel=2;
AddChartIndicator(SMA1);
Comment