The odd issue is that the bar # reported is never hit because it is technically the lastBar + 1 (this is occuring within a Strategy backtest).
So I am unable to see what calculation is occuring because any attempt at catching bar # 1364 within the debugger doesnt occur. I placed if(CurrentBar == 1364) checks for breakpoint in both the strategy and the indicator, and neither are being hit. Setting a lower number (1363), is hit.
What is even stranger is that the error doesnt occur when first running the backtest, it occurs when moving the "Chart" backwards in time. So the indicator it is occurring on renders just fine, and as you scroll backwards it eventually disappears throwing the error.
Hoping for some help or a clue on what to dig into to figure this out.

Comment