Skip to content
Wildflower
Join free
Measuring results

Free Trading School · Level 4 · Course 4.2

Ratios that compare return and risk

Lesson 10 of 14 in Measuring resultsModule 2: Pain and risk numbers

Testing · Measuring results

Ratios that compare return and risk

Wildflower Trading School · Lesson 4.2.2.5

Wildflower

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

  1. Work out the recovery factor of a log you've kept, before and after costs.
  2. Then write down the length of the test and the number of trades next to it.

Next: Reading an equity curve.

Quick check

  1. 1. Net profit $260, maximum drawdown $485. What is the recovery factor?

  2. 2. Why can a longer test show a bigger recovery factor with the same rules?

  3. 3. Which is a blind spot of the Sharpe ratio?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Reading an equity curve” is waiting next time.

Read the full notes

Ratios like the (net profit ÷ maximum drawdown) and the (average return above a risk-free rate ÷ how much returns vary) squeeze return and risk into one number, and each one leaves something out.

  • = net profit ÷ . 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.
  • : the average return, minus a , divided by the 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 numbers

Recovery factor of the course log

Made-up numbers · costs $5 a trade

  1. Before costs: $360 ÷ $460 = 0.78
  2. 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

  1. Average: 3.6R ÷ 20 = 0.18R
  2. 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
  3. Add them up: 6 × 3.3124 + 2 × 1.0404 + 9 × 1.3924 + 3 × 0.6084 = 36.312
  4. Divide by 19 (one less than the 20 trades, as a spreadsheet's sample standard deviation does): 1.9112 · square root: 1.38R
  5. 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

Drill

Made-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 on the , stepped through with on TradingView (other platforms have replay tools too). Each trade risked $100, written as 1R (). The rules had a at 1R, a at 2R and a , 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.