Log says:
Strategy '[strategyname]': 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.
All I did was add an if statement within another if statement. Now it tells me that I'm trying divide by 0 or something. I literally changed nothing.

Comment