if I'm offline and I have no data loaded, I get this error when I have the Price Line indicator
Indicator '': Error on calling 'OnRender' method on bar 0: 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.
this is how I fixed it, LINE 102, I added CurrentBars[0] < 1
protected override void OnRender(ChartControl chartControl, ChartScale chartScale) { if (BarsArray[0] == null || ChartBars == null || CurrentBars[0] < 1) return;
Comment