I have inserted in the strat the instructions from the 'Help guide - Strategies' as below, but the result can be seen in the attachment: despite supposedly printing the blue SMA in a separate panel, it still overlays it on price.
As for the indicators I am trying to use in my strat, cumulative delta and momentum plot in separate panels, while T32 is plotted on the price panel, so I have to drag and drop momentum and T32 over the cumulative delta panel, then change the momentum from line to bars by hand to get to the screenshot attached.
The part of the strat below has been generated with the builder.
Can someone please help? The help guide is obviously either missing important info, or it assumes that whoever reads a page is aware of what it missing and that is not me.
Thank you
}
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Tick, 1);
Brush1 = new SolidColorBrush((Color)ColorConverter.ConvertFromS tring("#FFCCCCCC"));
Brush1.Freeze();
}
else if (State == State.DataLoaded)
{
OrderFlowCumulativeDelta1 = OrderFlowCumulativeDelta(Close, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Type.BidAsk, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Period.Session, Convert.ToInt32(0));
T31 = T3(OrderFlowCumulativeDelta1.DeltaClose, Convert.ToInt32(T3Period), 3, 0.7);
Momentum1 = Momentum(T31, 1);
Momentum2 = Momentum(T31, 1);
T32 = T3(OrderFlowCumulativeDelta1.DeltaClose, Convert.ToInt32(T3Period), 3, 0.7);
T33 = T3(Close, Convert.ToInt32(T3PeriodPrice), 3, 0.7);
OrderFlowCumulativeDelta2 = OrderFlowCumulativeDelta(Close, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Type.BidAsk, NinjaTrader.NinjaScript.Indicators.CumulativeDelta Period.Session, 0);
T34 = T3(OrderFlowCumulativeDelta2.DeltaClose, Convert.ToInt32(T3Period), 3, 0.7);
Momentum3 = Momentum(T34, 1);
Momentum4 = Momentum(T34, 1);
T35 = T3(Close, Convert.ToInt32(T3PeriodPrice), 3, 0.7);
Momentum5 = Momentum(T31, 1);
Momentum6 = Momentum(T31, 1);
//IsOverlay = false;
Momentum2.Plots[0].Brush = Brushes.Chocolate;
OrderFlowCumulativeDelta1.Plots[0].Brush = Brushes.Transparent;
OrderFlowCumulativeDelta1.Plots[1].Brush = Brushes.Transparent;
OrderFlowCumulativeDelta1.Plots[2].Brush = Brushes.Transparent;
OrderFlowCumulativeDelta1.Plots[3].Brush = Brush1;
T32.Plots[0].Brush = Brushes.Yellow;
T35.Plots[0].Brush = Brushes.Yellow;
// This is the Help guide instruction
AddChartIndicator(SMA(20));
// Set the plots color for the added indicator
ChartIndicators[0].Plots[0].Brush = Brushes.Blue;
// Set the added indicator to new panel
ChartIndicators[0].Panel = 1;
//End of help guide instruction
//ninZaBarStatus1.Plots[0].Brush = Brushes.Transparent;
//ninZaBarStatus1.Plots[1].Brush = Brushes.Transparent;
AddChartIndicator(Momentum2);
AddChartIndicator(OrderFlowCumulativeDelta1);
AddChartIndicator(T32);
AddChartIndicator(T35);
Comment