"You only can access an indicator with the default input/bar series from within the 'Initialize()' method"
Parameters:
private DataSeries xgapSeries;
protected override void Initialize()
{
Add(PeriodType.Minute, 1);
...
xgapSeries = new DataSeries(this, MaximumBarsLookBack.TwoHundredFiftySix);
CalculateOnBarClose = true;
}

Comment