What problem does it solve? Trading strategies often fail in live markets because backtests suffer from look-ahead bias, survivorship bias, overfitting, and unrealistic transaction cost assumptions. This Skill provides implementation patterns for building backtesting systems that produce trustworthy performance estimates. ## Core Features & Use Cases - Event-Driven Backtester: Full order, fill, position, and portfolio simulation with slippage and commission modeling using Decimal precision. - Vectorized Backtester: Fast pandas/NumPy-based backtesting for simple signal strategies with automatic cost deduction and metrics. - Walk-Forward Optimization: Anchored or rolling train/test splits with grid search to prevent overfitting. - Monte Carlo Analysis: Bootstrap resampling to estimate drawdown distributions, probability of loss, and return confidence intervals. - Use Case: You have a momentum strategy idea. Use the vectorized backtester for a quick sanity check, then validate it with walk-forward optimization and Monte Carlo drawdown analysis before committing capital. ## Quick Start Ask the AI to build a walk-forward backtest for a moving-average crossover strategy on your OHLCV price data with realistic transaction costs.