Error on calling 'OnBarUpdate' method for indicator 'GrowthRatioIndicatior2' on bar 0: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
I am using variables Close[0] - Close[3], but I also have
protected override void Initialize()
{
BarsRequired = 6;
in place.
Comment