Part 2: Stops that move · Chapter 5 of 14 · 8 min
The stop on the last candles' low
The Donchian exit closes a buy when the price breaks the low of the last N candles (a sell, the high). On the 80-candle breakout with N = 10, 20 and 40 it makes +0.70, +0.87 and +0.81 R (errors ±0.54-0.85) against +0.74 for the 3 R target; the average win rises from 2.6 to 4.1 R and wins fall from 46% to 35%. On random entries it makes +0.17, +0.22 and +0.17, more than almost any other exit: it is the exit that best exploits the sample's wide movements. It stays inside the band of chance and inside the error.
Exiting when the channel breaks
The Donchian exit (named after the man who used it to follow trends) is simple: a buy closes when the price falls below the low of the last N candles; a sell, when it rises above the high of the last N candles. It is the same channel that opens a breakout, used the other way round to close.
> stop (buy) = the higher of the initial stop and the low of the last N candles
The stop rises when the low of the last N candles rises, and never falls. Like the ATR trailing stop, it follows the price; unlike that one, its measure is the structure of the price (the low of a window) and not a fixed distance. It is updated at the close of every candle. The N candles before the entry also count in the calculation: for an 80-candle breakout, those of the channel just broken.
Testing it
We tested N = 10, 20 and 40 candles, with initial stop 1.5 ATR, no target and 96 candles at most.
| N | 80-candle breakout: mean R ± error | Winning | Average win | Average loss | Drawdown | Losing streak | Duration |
|---|---|---|---|---|---|---|---|
| 10 | +0.70 ± 0.54 (72 trades) | 46% | +2.56 R | −0.88 R | 6.8 R | 7 | 16 |
| 20 | +0.87 ± 0.80 (59) | 47% | +2.89 R | −0.95 R | 5.6 R | 6 | 27 |
| 40 | +0.81 ± 0.85 (55) | 35% | +4.11 R | −0.93 R | 7.7 R | 8 | 37 |
| 3 R target (the plan) | +0.74 ± 0.43 (79) | 46% | +2.79 R | −0.99 R | 6.1 R | 6 | 14 |
| N | 20-candle breakout: mean R ± error | Winning | Drawdown | Losing streak | Random entries: mean R (wins) | Random series: 80-candle breakout (5th-95th) |
|---|---|---|---|---|---|---|
| 10 | +0.30 ± 0.34 (166) | 36% | 13.9 R | 8 | +0.17 (29%) | +0.03 (−0.18 / +0.37) |
| 20 | +0.46 ± 0.63 (139) | 32% | 15.2 R | 12 | +0.22 (26%) | +0.03 (−0.31 / +0.46) |
| 40 | +0.27 ± 0.66 (119) | 23% | 25.2 R | 13 | +0.17 (21%) | +0.01 (−0.37 / +0.55) |
| 3 R target | +0.15 ± 0.26 (178) | 30% | 16.3 R | 13 | +0.04 (29%) | +0.01 (−0.24 / +0.24) |
Read the chart in words
Daily gold chart with, below, four similar cumulative R curves, with the plan's dashed one on top at the end.
Five readings.
- The result is similar to that of the ATR trailing stop (+0.70-0.87 against +0.71 and +0.69) and a little above the 3 R target (+0.74) for N = 20 and 40, but the errors (±0.54-0.85) are larger than the distance.
- There is no sharp peak. The three values of N give +0.70, +0.87 and +0.81 on the 80-candle breakout: a plateau and not a summit. It is a good sign, unlike the target (chapter 2) where the plan's value sits isolated on top.
- A long N means big and rare wins: with N = 40 the average win is 4.11 R and wins are 35%; drawdown and losing streak grow (on the 20-candle breakout from 13.9 to 25.2 R and from 8 to 13).
- With a short N the stop rises early above the initial one: with N = 10 the average loss is −0.88 R and the duration 16 candles.
- On random entries it is the exit that pays most (+0.22 with N = 20, the best of the twenty-nine tested in the book). When an exit pays even on entries with no idea the merit is not the entry's: it comes from convexity (chapter 3) and from the sample's wide movements, and it is inside the band of chance (+0.12 on average on the random series, from −0.14 to +0.43).
What it is for
The Donchian exit works when the entry looks for a movement that continues: the breakout entry and the opposite breakout exit form a two-step rule, both in the same language. It is also simple to calculate and to check by eye on the chart (a horizontal line rising in steps).
Three cautions.
- It gives back part of the gain: the stop sits at the low of the last window, which is below the maximum reached; the larger N is, the more you give back.
- The result depends on N as the trailing stop depends on k: a small value gets touched by noise, a large one gives back a lot.
- It is not better than the target with this data: the difference cannot be told from the error.
What to do
- Use the same N as the entry or a fraction of it: it is easier to remember and to check (here N = 20 for an 80 entry).
- Write that the stop never falls and where it starts (initial stop).
- Do not change N after seeing a sample: the three values give close results, and that is the sign of a robust choice.
- Look at drawdown and losing streak with a long N: big wins are paid for with long streaks.
- Compare with random entries: if an exit pays there too, remember that it exploits the sample.
Procedure in four steps
- Set N and the initial stop.
- At every close move the stop to the low (high) of the last N candles if it is more favourable than the current one.
- Close when the price touches it or when the maximum duration runs out.
- Compare mean R, wins, drawdown and losing streak with the fixed target and with random entries.
Exercises
Chapter exercises
1. With N = 20, where does a buy's stop sit?
2. The 80-candle breakout makes +0.70, +0.87, +0.81 R with N = 10, 20, 40. What do these close values say?
3. With N = 40 the average win is 4.11 R and wins are 35%. What price is paid compared with N = 10?
4. On random entries the exit on the low of 20 makes +0.22 R. How do you read it?
Have a question or want to share your exercise?
Post in the community, or join the free signals room on Telegram.
Educational content, not financial advice. Trading involves risk.