Series<double> s_high=new Series<double>(this, MaximumBarsLookBack.Infinite); s_high[0]=1; s_high[1]=2;
You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Comment