This worked ok in 7. Please help.
Here's the code....
private RSI DYNRSI;
private SMA DYNPrice;
private SMA DYNSignal;
private SMA DYNAverage;
private StdDev SDBB;
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"xyz";
Name = "xyz";
Calculate = Calculate.OnBarClose;
IsOverlay = false;
DisplayInDataBox = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
IsSuspendedWhileInactive = true;
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Line, "PriceLine");
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Line, "SignalLine");
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Line, "Average");
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Line, "Upper");
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Line, "Lower");
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Dot, "BaseLine");
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Dot, "HighLine");
AddPlot(new Stroke(Brushes.Gray), PlotStyle.Dot, "LowLine");
}
else if (State == State.Configure)
{
}
}
protected override void OnBarUpdate()
{
if (CurrentBar < 1)
{
return;
}
DYNRSI = RSI(Input,RSIPeriod,1);
DYNPrice = SMA(DYNRSI,PricePeriod);
DYNSignal = SMA(DYNRSI,SignalPeriod);
DYNAverage = SMA(DYNRSI, BandPeriod);
SDBB = StdDev(DYNRSI,BandPeriod);
Comment