Indicator 'test': Error on calling 'OnBarUpdate' method on bar 23: 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.
I tried many things but drawing a blank
Any ideas anyone
Thank you in advance
PS: problem seems to be when i had line 95 and 96
Comment