Quant research and backtesting
Backtest
Also called backtesting, historical simulation, strategy simulation
A simulation that replays historical data through a trading rule to estimate the profit and loss it would have made, given only the information available at each moment.
How it works
A backtest is a model of the past, and every result depends on its assumptions. At each timestamp the simulator may use only data that existed then, decide orders from that data, and fill those orders at prices and sizes the market would really have offered, after fees, spread, market impact and the delay between signal and order. It then books positions, financing and borrow costs into an equity curve. A good backtest is mainly a tool for rejecting ideas; a strong one is weak evidence, because researchers usually try many variants and keep the best, so the reported Sharpe ratio is inflated by selection. Historical data also cannot show how your own orders would have moved prices or changed other traders' behaviour.
Worked example
A rule buys a stock when its 20-day return is in the bottom decile and sells after 5 days. The frictionless backtest shows 18% a year with about 50 round trips a year. Charging a 5 basis point half-spread and 1 basis point of fees on each side costs 2 x 6 = 12 basis points per round trip, or 50 x 0.12% = 6% a year, leaving 12% before any market impact.
Related terms
Put it to work in a timed game.
Practise with Find the BugSources
- en.wikipedia.org/wiki/Backtesting
- davidhbailey.com/dhbpapers/backtest-pseudo.pdf
- researchaffiliates.com/insights/journal-papers/702-a-backtesting-protoc…
Last checked November 2026.