My indicator is not plotting the first 20 minutes of the session. Just to narrow things down, I removed Close[0] and put in just a plain number... same result. First 20 minutes are missing. the indicator is plotting data from a secondary dataseries. Here's pertinent code:
(screenshot attached)
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.ControlDarkDa rk), PlotStyle.Line, "Plot0"));
Add(symbol, PeriodType.Minute, 1);
}
protected override void OnBarUpdate()
{
// only process secondary [1] bar series (SPY)
if (BarsInProgress != 1)
return;
if (CurrentBar < 1)
return;
Values[0].Set( Close[0] );
}
Comment