Testing reports can show ratios that squeeze return and risk into a single number. This lesson looks at two well-known ones: the recovery factor and the Sharpe ratio. By the end, you'll know how each one is worked out, using our log, what each one shows, and where each one can mislead you.
1 of 8
What you'll learn
- Work out recovery factor. Divide net profit by maximum drawdown.
- Check what it misses. It grows with test length and rests on one drawdown.
- Read a Sharpe ratio. Return above a risk-free rate, divided by how much returns vary.
- Spot where Sharpe misleads. It counts big wins as risk and is shaky from few trades.
- Compare like with like. Compare ratios only from tests built the same way.
Exercise
- Work out the recovery factor of a log you've kept, before and after costs.
- Then write down the length of the test and the number of trades next to it.
Quick check
1. Net profit $260, maximum drawdown $485. What is the recovery factor?
2. Why can a longer test show a bigger recovery factor with the same rules?
3. Which is a blind spot of the Sharpe ratio?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
Ratios like the A test’s net profit divided by its maximum drawdown. It shows how many times over the trades made back their worst fall.More in the glossary (net profit ÷ maximum drawdown) and the A ratio named after the economist William Sharpe: the average return above a risk-free rate, divided by how much the returns vary. It counts swings up and down alike.More in the glossary (average return above a risk-free rate ÷ how much returns vary) squeeze return and risk into one number, and each one leaves something out.
- A test’s net profit divided by its maximum drawdown. It shows how many times over the trades made back their worst fall.More in the glossary = net profit ÷ The biggest fall from a high point in an account’s balance over a test or a stretch of trading.More in the glossary. Above 1, the log made more than its worst fall.
- It grows with the length of a test, rests on one drawdown that a different order of trades could change, and doesn't show how many trades it came from.
- A ratio named after the economist William Sharpe: the average return above a risk-free rate, divided by how much the returns vary. It counts swings up and down alike.More in the glossary: the average return, minus a The return you could get with almost no risk, such as on short-term US government debt. Ratios like the Sharpe ratio take it off a return first.More in the glossary, divided by the A measure of how spread out a set of numbers is. The more the closes differ from their average, the bigger it is.More in the glossary of the returns. Reports use returns over periods, such as months; TradingView's strategy tester uses monthly returns and a 2% a year risk-free rate by default. See Spread: how far results wander.
- It counts big wins as risk, can miss a rare big loss that a short test didn't include (Fat tails: rare days that matter most), and is shaky from few trades.
- Compare ratios only between tests built the same way, and read them with the equity curve and the drawdown. More: How to read backtest results.
Worked examples
Made-up numbersRecovery factor of the course log
Made-up numbers · costs $5 a trade
- Before costs: $360 ÷ $460 = 0.78
- After costs: $260 ÷ $485 = 0.54
After costs, the log made back just over half of its worst fall.
A per-trade Sharpe-style ratio (simplified)
Made-up numbers · the 20 results in R: six +2, two +1.2, nine −1, three −0.6 · no risk-free rate
- Average: 3.6R ÷ 20 = 0.18R
- Distance from the average, squared: +2 → (1.82)² = 3.3124 · +1.2 → (1.02)² = 1.0404 · −1 → (−1.18)² = 1.3924 · −0.6 → (−0.78)² = 0.6084
- Add them up: 6 × 3.3124 + 2 × 1.0404 + 9 × 1.3924 + 3 × 0.6084 = 36.312
- Divide by 19 (one less than the 20 trades, as a spreadsheet's sample standard deviation does): 1.9112 · square root: 1.38R
- 0.18 ÷ 1.38 = 0.13
About 0.13 per trade. Dividing by 20 instead of 19 gives 1.35R and still about 0.13. A report's Sharpe ratio uses monthly returns and a risk-free rate, so it isn't comparable.
Your turn
DrillMade-up numbers · net profit $900 · maximum drawdown $600
The course log (made-up numbers)
Every lesson in this course measures the same 20 made-up trades from a hand Running a strategy’s exact rules over past prices to see which trades they would have taken.More in the glossary on the A small futures contract on the S&P 500, traded at CME Group. Each point is worth $5, and its smallest step of 0.25 is worth $1.25.More in the glossary, stepped through with A chart feature that hides the candles after a point you choose, then shows them again one at a time, so you can practise on past prices without seeing ahead.More in the glossary on TradingView (other platforms have replay tools too). Each trade risked $100, written as 1R (A result measured in units of the amount at risk. If a trade risks 4 points, 1R is 4 points and a 6-point gain is +1.5R.More in the glossary). The rules had a An order that closes a trade if price reaches a level you set against it. It aims to limit the loss, but in a fast market it can fill at a worse price.More in the glossary at 1R, a An exit order that closes a trade when price reaches a level you choose in your favour.More in the glossary at 2R and a A rule that closes a trade if it hasn’t done what it was meant to within a set time, such as a number of candles, whatever the price is.More in the glossary, so results are +$200, −$100, or something between when the time exit closed a trade first.
In order, before costs: +200, −100, −100, +200, +120, −100, +200, −100, −60, −100, −100, −100, +200, −60, +200, +120, −100, +200, −60, −100. Costs, used from Gross and net results on: a made-up $5 a trade.
Trading is risky. You can lose money. The trades here are made up, and this lesson explains how results are measured. It isn't advice.