backtest-engine

Documentation

Deterministic, event-driven backtesting with a look-ahead detector.

Real-data case study

SPY daily, 2016-11-21 to 2026-11-20. Walk-forward moving average, costs, buy-and-hold comparison, and a subtle full-sample look-ahead strategy caught by the detector.

Open the case study report

Source and package

github.com/IkerAbad/backtest-engine
pip install backtest-engine

Reproducibility

The report hash is committed in case_study.sha256 and verified in CI on Linux and Windows. The engine report in ../reports/example.html is verified on Linux, Windows and macOS.