Skip to main content
Blog home
Newsletter
News
Video
Podcast
Reading list
Wright Brief
Sign In

What is Backtesting in Quant Finance?

A plain-language explanation of Backtesting in Quant Finance, with a worked example, common pitfalls and the questions people ask most.

Listen to this article
Audio · ~3 min
Add as a preferred source on Google

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

  1. Universe: the stocks that could have been bought on each date, as known at the time.
  2. Signal and rules: how stocks are scored, how many are held and how they are weighted.
  3. Rebalancing: when the portfolio is updated.
  4. Costs and frictions: brokerage, taxes, market impact and the price actually obtainable.
  5. 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.

Further reading

  1. Harvey, C. and Liu, Y. (2015). Backtesting. Journal of Portfolio Management 42(1).
  2. Lopez de Prado, M. (2018). Advances in Financial Machine Learning. Wiley.
Browse the full Quant Glossary →

Disclaimer: Investment in securities market are subject to market risks. Read all the related documents carefully before investing. Registration granted by SEBI, membership of a SEBI recognized supervisory body (if any) and certification from NISM in no way guarantee performance of the intermediary or provide any assurance of returns to investors.

The content in these posts/articles is for informational and educational purposes only and should not be construed as professional financial advice and nor to be construed as an offer to buy/sell or the solicitation of an offer to buy/sell any security or financial products. Users must make their own investment decisions based on their specific investment objective and financial position and using such independent advisors as they believe necessary.

Wryght Research & Capital Pvt (Brand name: Wright Research) is a SEBI Registered Portfolio Manager Reg No: INP000007979 (Validity: Apr 03, 2023 – Perpetual) and a SEBI Registered Research Analyst No: INH000017295 (Validity: Jul 03, 2024 – Perpetual), with its registered office at 103, Shagun Vatika Prag Narayan Road, Lucknow, UP, 226001 India and CIN: U67100UP2019PTC123244. Past performance may or may not be sustained in future. Performance provided there in is not verified by SEBI. Investment in securities is subject to market and other risks, and there is no assurance or guarantee that the objectives of any of the strategies of the Portfolio Management Services will be achieved. Registration granted by SEBI, enlistment as RA with Exchange and certification from National Institute of Securities Markets (NISM) in no way guarantee performance of the intermediary or provide any assurance of returns to investors. Please read the Disclosure document carefully before investing. Securities quoted are for illustration only and are not recommendatory. Charts shown are for illustration only. For more information and disclosures, visit our disclosures page here.

Found this useful? Share it.
Wright PMS · Portfolio Management Service

Put this research to work

The same 300+ factor research engine behind this article — applied to a professionally managed portfolio, end to end.

300+
Factors tracked
2L+
Investors
₹1,200+ Cr
Invested
SEBI
Registered PMS