M12 Backtesting Engine & Optimization
What you will learn: build a trustworthy backtester and optimize without fooling yourself.
Learn first: M11 Strategy Generator (Strategy Research & Design)
Module exam
When you have finished the topics, a timed exam on the whole module earns a certificate you can share and anyone can check.
See the module examChapters
C01 Backtesting Fundamentals Chapter quiz
- What a backtest is, and what it is not · Coming soon
- Vectorised vs event-driven backtesting · Coming soon
- Data requirements for honest tests · Coming soon
C02 Biases & Pitfalls Chapter quiz
- Look-ahead, survivorship and data-snooping bias · Coming soon
- Overfitting and the "too good to be true" curve · Coming soon
- Unrealistic fills, ignored costs and slippage · Coming soon
C03 Building the Engine Chapter quiz
- Architecture: data handler, strategy, portfolio, execution, broker simulator · Coming soon
- The event loop · Coming soon
- Fill, commission and slippage models · Coming soon
- Multi-asset support and corporate actions · Coming soon
C08 Costs, Capacity & Realism Modelling Chapter quiz
- Spread, commission and tax models by asset class · Coming soon
- Market-impact models and capacity estimates · Coming soon
- Borrow costs, funding costs and margin · Coming soon
- Latency, partial fills and queue position · Coming soon
- Multi-currency and multi-calendar issues · Coming soon
C04 Evaluating Results Chapter quiz
- Metrics and the strategy tear-sheet · Coming soon
- Trade-level analysis · Coming soon
- Statistical significance: deflated Sharpe ratio, probability of backtest overfitting · Coming soon
C05 Optimization Chapter quiz
- Grid, random and Bayesian search · Coming soon
- Parameter-stability heatmaps · Coming soon
- Walk-forward optimisation · Coming soon
- Time-series cross-validation: purged k-fold and CPCV · Coming soon
C06 Robustness Testing Chapter quiz
- Monte Carlo trade reshuffling and bootstrapping · Coming soon
- Noise injection and parameter perturbation · Coming soon
- Out-of-sample and incubation periods · Coming soon
C07 From Backtest to Live Chapter quiz
- Paper trading and forward testing · Coming soon
- Live vs backtest divergence analysis · Coming soon
C09 Backtesting Platforms & Tools Chapter quiz
- Open-source libraries vs commercial platforms (links M28.C13) · Coming soon
- Data vendors and survivorship-free datasets · Coming soon
- Reproducibility: pipeline, configs and run logs · Coming soon
- Reviewing someone else's backtest: a red-flag checklist · Coming soon
C10 Backtesting Labs Chapter quiz
- Lab: build a vectorised backtester from scratch · Coming soon
- Lab: bias injection — add look-ahead and survivorship bias, then detect it · Coming soon
- Lab: overfit on purpose, then fix with walk-forward · Coming soon
- Lab: reproduce a published result and compare · Coming soon
- Lab: cost and slippage sensitivity analysis · Coming soon
- Lab: audit someone else's backtest report · Coming soon
Module Pack coming soon
Labs, the project, tools and reading list for this module are still being written.