Skip to main content

Backtest Performance Metrics

BeginnerQuantitative FinanceAlso known as: backtesting trading strategies, maximum drawdown, Sharpe ratio of a backtest, Calmar ratio, hit rate

Finds: the headline numbers for a backtest.

When to use it: Use it to summarize a backtest in a few numbers. Return and Sharpe show reward per unit of risk, drawdown shows the worst pain an investor would have lived through, and hit rate shows how often the strategy made money. A good backtest result is not proof of a good strategy: look for overfitting, look-ahead bias, survivorship bias and costs before trusting it.

The formula

Rann\displaystyle R_{ann}=(∏(1+rt))12/N−1,  Sharpe=12rˉ−rfσ12,  MDD=max⁡Peak−ValuePeak,  Calmar=RannMDD\displaystyle =\left(\prod(1+r_{t})\right)^{12/N}-1,\; Sharpe=\frac{12\bar{r}-r_{f}}{\sigma\sqrt{12}},\; MDD=\max\frac{Peak-Value}{Peak},\; Calmar=\frac{R_{ann}}{MDD}

In words: Annual return = (product of (1 + monthly return))^(12 / months) − 1; Sharpe = (average monthly return x 12 − risk-free rate) / (monthly sd x sqrt 12); Maximum drawdown = largest fall from a previous peak; Calmar = annual return / maximum drawdown

What each symbol means

r_tMonthly strategy returnpercent
NNumber of monthscount
r_fAnnual risk-free ratepercent
PeakHighest portfolio value so farmoney
MDDMaximum drawdownpercent

Worked example

A strategy's 24 monthly returns are in the calculator. The risk-free rate is 2% a year.

Wealth path (starting at 1)1.0000, 0.9844, 0.9993, 0.9911, 1.0035, 0.9697, 0.9578, 0.9589, 0.9967, 1.0447, 1.0047, 0.9848, 1.0149, 0.9523, 0.9445, 0.9488, 0.9982, 1.0302, 1.0266, 1.0216, 1.0208, 1.0833, 1.0757, 1.0730, 1.0947
Final wealth1.0947
Annual return4.63%
Annual volatility10.24%
Sharpe0.30
Maximum drawdown9.59%
Calmar ratio0.046295 ÷ 0.09591290.48
Hit rate45.8%
The answer

The strategy grew 1 to 1.0947, which is 4.63% a year. Annual volatility was 10.24%, giving a Sharpe ratio of 0.30. The worst drawdown was 9.59%, so the Calmar ratio is 0.48. It made money in 45.8% of months.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

Annual return4.63%
Annual volatility10.24%
Sharpe0.30
Maximum drawdown9.59%
Hit rate45.8%

Keep going