protected override void Initialize()
{
Add (PeriodType.Minute, 5);
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
Overlay = true;
}
protected override void OnBarUpdate()
{
Plot0.Set(SMA(BarsArray[1], 20)[0]);
}
But if I lay the indicator on my chart, the indicator plots nothing.
Thank you
Comment