split logic for backtest triggering and result showing