Backtest Performance Metrics
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
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_t | Monthly strategy return | percent |
| N | Number of months | count |
| r_f | Annual risk-free rate | percent |
| Peak | Highest portfolio value so far | money |
| MDD | Maximum drawdown | percent |
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 wealth | 1.0947 | |
| Annual return | 4.63% | |
| Annual volatility | 10.24% | |
| Sharpe | 0.30 | |
| Maximum drawdown | 9.59% | |
| Calmar ratio | 0.046295 ÷ 0.0959129 | 0.48 |
| Hit rate | 45.8% |
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.