This might be an easy one but I am having the hardest time figuring this one out. I am capturing the RSI and Stochastic values for the current bar (which works perfectly) but when I try to capture it for a previous bar I am getting the following error:
"Error on calling 'OnBarUpdate' 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."
Any ideas on how to fix this?
Kenson
Comment