Backtesting Methodology: The Right Process
A properly designed backtest simulates the actual live trading experience as faithfully as possible. Key requirements: use only information that would have been available at the time of each trade (no lookahead bias); adjust for corporate events (stock splits, dividends, mergers, delistings) correctly; include transaction costs (commissions, bid-ask spread, market impact for larger positions); include realistic execution assumptions (market-on-close prices rather than idealized intraday fills for end-of-day strategies); exclude survivorship bias (include all stocks that existed in each period, not just those that survived to today).
Walk-forward testing is the gold standard validation approach. Split the historical data into in-sample (optimization period) and out-of-sample (validation period) segments. Optimize strategy parameters on in-sample data, then evaluate on the untouched out-of-sample period. Repeat this process across multiple non-overlapping windows. If the strategy degrades severely out-of-sample relative to in-sample performance, it is likely overfit. Genuine strategies show modest but consistent degradation out-of-sample; overfit strategies show dramatic collapse.