Backtesting involves simulating a strategy’s performance using historical data to evaluate its behavior across different market conditions. It is a foundational step in quantitative research.
A proper backtest accounts for realistic assumptions, including transaction costs, slippage, rebalancing schedules, and survivorship bias. Without these, results may be overly optimistic.
Backtests help identify drawdowns, volatility, turnover, and factor sensitivities. They also reveal how strategies respond to crises and regime shifts.
However, backtesting alone is not sufficient. Overfitting to historical data can produce impressive past results that fail in live markets. This is why out-of-sample testing and robustness checks are essential.
Backtesting should be viewed as a risk assessment tool, not a guarantee of future performance.
What a backtest involves
- Universe: the stocks that could have been bought on each date, as known at the time.
- Signal and rules: how stocks are scored, how many are held and how they are weighted.
- Rebalancing: when the portfolio is updated.
- Costs and frictions: brokerage, taxes, market impact and the price actually obtainable.
- Metrics: return, volatility, maximum drawdown, turnover and consistency across years.
Biases that flatter results
- Look-ahead bias: using information, such as a restated figure or a later index membership, that was not available on the trade date.
- Survivorship bias: leaving out companies that were delisted, merged or renamed. Corporate actions such as demergers and ISIN changes make this easy to get wrong in Indian data.
- Data snooping: trying many versions and keeping the best one. See overfitting.
- Unrealistic trading: assuming fills at closing prices in stocks that are hard to trade in size.
Why costs matter: a simple calculation
If a portfolio trades an amount equal to six times its value in a year and each trade costs 0.30% all-in, costs take about 1.8% a year (6 x 0.30%). A strategy that shows 15% a year before costs is then closer to 13.2%, and the gap grows with turnover. See portfolio turnover and slippage modeling. The figures are an illustration, not Wright results.
How to read a backtest
- Are costs and taxes included, and at what level?
- Does it use point-in-time data and include stocks that later disappeared?
- How does it perform on data that was not used to design it?
- Do nearby parameter settings give similar results, or only the chosen one?
- Is hypothetical performance clearly separated from live performance?
Model returns shown on Wright pages for portfolios and baskets are illustrative and come with a disclosure; past performance does not indicate future results.
Frequently asked questions
What is backtesting in finance?
Backtesting simulates how a strategy would have performed on historical data. It helps assess behaviour across market conditions, but it is a hypothetical result, not a record of real trading.
Why do live results differ from a backtest?
Common reasons are trading costs and market impact that the backtest understated, biases in the historical data, a strategy that was tuned to the past, and a change in market conditions.
How long should a backtest be?
Long enough to include several different market environments and a meaningful number of observations. There is no fixed number, and a long backtest can still be misleading if it has biases.
Is a good backtest proof that a strategy works?
No. It shows only how the rules would have behaved on past data. Out-of-sample testing, costs and robustness checks are needed, and even then the future can differ.