I'm using the very useful Highlow indicator quite extensively and it's generally working well but at times it will freeze and produce the following error message:
"Error on calling 'On Bar Update Method' for Indicator 'Highlow'. You are accessing an index with a value that is invalid since it's out of range, ie accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart."
I have no idea what happens here (there are always more than 5 bars on my charts) and it would be great if this bug could be removed.
When the indicator freezes I remove it manually and reapply it immediately. Sometimes this works and sometimes it freezes again shortly afterwards. When I reapply it a few hours later it always works fine.
Thanks
PS: The code is attached
Comment