I'm likely doing something wrong for this simple request but I'm just trying to load this custom indicator that uses the OrderFlowCumulativeDelta indicator and print out the values. But, my output window is just saying:
Error on calling 'OnBarUpdate' method on bar 20: 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've attached the custom indicator and my simple script. Can you offer a hand?
Thank you.
Comment