Why does my backtest get stuck after a few years? How can I prevent this?