I posted previously on a much older bot, I was getting the infamous "OnBarUpdate" error.
HOWEVER, this time is very different and I cannot figure out what is going on!
First of all, the message is different:
"Strategy 'HeadAndShouldersStrategyUnlocked': Error on calling 'OnBarUpdate' method on bar 52727: 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."
What causes the error to shift from bar 1 to bar 52727?
Here is where things get weird: I *can* activate the bot on NQ 24 range without errors, but I *can't* activate it (and also get this error) on the 12 range.
Thoughts?

Comment