Can't figure out a solution for the following error. I've searched the community and tried implementing the solution below but to no avail. This hadn't been an issue until recently. Any suggestions? Note that the backtest attached with the code is incorrect as the code backtest errors out (but builds/compiles just fine).