A backtest that cheats off tomorrow won't fail code review. So I fired a spike into the future

The scariest bug in a backtest (the thing that estimates a strategy's returns on past price moves) isn't a crash. It's accidentally using tomorrow's price. It's called lookahead bias, and if you let…