What is backtesting?

Definition

Backtesting simulates a trading or decision strategy on historical data. It applies the strategy's rules to past observations and calculates outcomes such as returns, losses, hit rate, drawdown and the number of opportunities that met the entry conditions.

A backtest is only as reliable as its data and assumptions. Look-ahead bias, overfitting, ignored fees, unrealistic fills and repeated experimentation can produce misleading results, so robust workflows add walk-forward validation and out-of-sample testing.

Acronyms and aliases

historical simulation synonymhistorical strategy testing synonym

Frequently asked questions

What does a backtest show?

It shows how a fully specified strategy would have performed on selected historical data under the simulation's assumptions.

Why can backtesting be misleading?

Poor data, overfitting, future information, unrealistic execution and omitted costs can make historical performance look better than it was.

Videos explaining backtesting