Initialize()
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
CalculateOnBarClose = true;
Overlay = true;
PriceTypeSupported = false;
OnBarUpdate()
Plot0.Set(Close[0]);
When the indicator is first added to a chart it renders fine.
however, if I use 'Format Data Series' and set the 'Bars Back' to anything less than 23, no indicator lines are drawn.
The same behavior applies to every time interval.
According to the info I logged, the OnBarUpdate event is firing for every bar, but the first 23 bars are ignored, and then the indicator begins plotting.
Is there a setting to force the indicator to draw on every bar when Bars Back is set?
Thx.
- Fred
Comment