Skip to main content

Advanced Backtesting

This example demonstrates the full backtesting stack: L2 orderbook replay, probabilistic fill models, market impact, latency simulation, Markov regime detection, and walk-forward parameter optimization.

Regime-Adaptive Market Maker with L2 Simulation

Walk-Forward Optimization

Find optimal parameters with out-of-sample validation:

Calibration Analysis

Evaluate prediction accuracy on resolved markets:

Comparing Fill Models

See how different fill models affect your backtest results:
Deterministic fills are optimistic (100% fill rate). Probabilistic and GLFT models produce fewer fills but more realistic PnL estimates. Compare all three to understand the sensitivity of your strategy to fill assumptions.