Please help. Thanks.
AddPlot(Brushes.Orange, "Plot");
AddLine(Brushes.Red, 0, "Zero"); //Plots the zero line.
}
else if (State == State.Configure)
{
}
}
protected override void OnBarUpdate()
{
//Add your custom indicator logic here.
double close0 = Close[0];//Close today
double nco = Close[5];//Close 5 bars ago
if (CurrentBar < 5)//Makes sure there is at least 5 bars at start of calculation
{
return;
}
Plot[0] = close0 - nco; //Plots NetChangeOsc (NOTE change to new panel)
}
[Browsable(false)]
[XmlIgnore]
public Series<double> Plot
{
get { return Values[0]; }
}

Comment