Add(PeriodType.Minute,1);
if (cumVol == null && BarsInProgress == 1) cumVol = new DataSeries(this, MaximumBarsLookBack.Infinite); if (cumVol != null && BarsInProgress == 1 && cumVol.ContainsValue(0)) Print("dataseries for bar " + CurrentBar + " is " + cumVol[0]);
Error on calling 'OnBarUpdate' method for indicator 'RelativeVolume' 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.
But it showed the example of initializing the secondary DataSeries with an indicator, and I am wanting to manually fill in the values. I suspect my initialization is incorrect, but I don't have any other reference to go by.
Comment