ForexBestRobots.comCompare EAs →
EN

Trend strategy · Donchian 20/10

Donchian 20/10 Forex Strategy: Closed-Bar Breakouts and Channel Exits on Real GBP/USD Data

A precise GBP/USD H4 Donchian 20/10 model: real 2024–2025 quotes, frozen protective stops, channel exits, costs and an interactive trade replay.

Real GBP/USD H4 quotes for trade #1. The signal is complete at 2024-02-05 12:00 UTC; the entry marker is the next recorded opening quote at 2024-02-05 12:00 UTC. Subsequent H4 prices are hidden.
Real GBP/USD H4 quotes for trade #1. The signal is complete at 2024-02-05 12:00 UTC; the entry marker is the next recorded opening quote at 2024-02-05 12:00 UTC. Subsequent H4 prices are hidden.

A 20-period channel can identify a new closing breakout; a separate 10-period channel can define a later exit. The useful lesson is the complete sequence: what was known at the close, which quote comes next, where risk is frozen and why the position ends. This model uses real GBP/USD observations and keeps losing and unresolved paths visible.

1. Define one exact 20/10 model

This is one declared trend-following variant, not the original Turtle system or a universal platform default. A long candidate closes strictly above the highest High of the 20 preceding recorded H4 groups; a short candidate closes below their lowest Low. The 10-group channel controls a later closed-bar exit. Do not substitute a midpoint, current-inclusive channel or intrabar touch for these rules.

U20[t] = max(High[t−20] … High[t−1])
L20[t] = min(Low[t−20] … Low[t−1])
BUY: C[t] > U20[t] ∧ C[t−1] ≤ U20[t−1]
SELL: C[t] < L20[t] ∧ C[t−1] ≥ L20[t−1]

2. Read the UTC endpoint before reading the signal

H4 labels are end times: 00:00, 04:00, 08:00, 12:00, 16:00 and 20:00 UTC. Source Forexite minute labels are treated as minute ends; each H4 group contains records after its start through its end. Provider CET/CEST is converted with its seasonal offset. Empty intervals are not filled. Only signal groups with 240 consecutive minute observations can trigger an entry; partial earlier groups remain in the recorded-bar lookback.

3. Confirm a fresh close and use the next opening quote

For a long, the previous recorded close must not already have been above its own prior 20 upper boundary; reverse the comparison for a short. Equality is not a breakout. After the signal closes, the model uses the first recorded M1 opening quote whose interval starts at or after that endpoint. Cancel if it is more than five minutes late. There is one position, no pyramiding and no immediate reversal. Source quotes are fill proxies, not guaranteed executable Bid/Ask prices.

4. Freeze the protective stop and the initial R unit

Wilder ATR(14) uses H4 True Range, starts with the mean of its first 14 values and then updates with weight 1/14. The first 140 recorded groups are entry warm-up. At the signal, multiply ATR by 1.5 and round the distance upward to a whole GBP/USD pip. Place the initial stop that distance from the entry quote and keep it fixed. One R is this initial distance; account size and position sizing are not simulated. A price gap or costs can make a loss exceed 1 R.

Trade #3 is the first intraminute protective-stop example. The last H4 candle is partial; only source observations through 2024-02-13 13:31 UTC are used. The exact second of the stop is unknown.
Trade #3 is the first intraminute protective-stop example. The last H4 candle is partial; only source observations through 2024-02-13 13:31 UTC are used. The exact second of the stop is unknown.

5. Keep the 10-group exit separate from the fixed stop

A long queues an exit after a completed close strictly below the prior 10-group Low; a short does so above the prior 10-group High. Fill at the next recorded minute open. The 10-group line is not an intrabar trailing stop. The fixed protective stop can end the trade earlier: a minute opening at or beyond it uses that opening quote; otherwise a qualifying High/Low touch uses the stop level. A touch has a minute interval, not an invented exact second. No profit target is added.

6. Declare exposure, deadlines and re-entry

Queue an exit at the close of the 30th recorded H4 group held, counting the entry group as one. Reject Friday signal endpoints from 12:00 UTC onward and queue any open position flat at 20:00 UTC. Apply the same entry cutoff and 20:00 exit on December 31. A protective stop at the next opening quote takes precedence; otherwise scheduled exits precede a later range touch. After an exit in group i, skip entry decisions at i and i+1; a later candidate still needs a fresh breakout.

Trade #8 is the first Friday exit. The 20:00 UTC instruction is filled at the next recorded minute open. This is a declared quote-based execution assumption.
Trade #8 is the first Friday exit. The 20:00 UTC instruction is filled at the next recorded minute open. This is a declared quote-based execution assumption.

7. Treat missing paths as unresolved

If one or more minute intervals are missing while a position is open, its unseen stop path is unknown. Mark the trade unresolved at the next observed opening quote and reset the research position. The four affected trades are retained in the entry count and ledger. Net R, profit factor and drawdown below use only resolved paths. This reset convention also affects subsequent eligibility; the table is not a complete execution record or account equity curve.

8. Read 2024 and 2025 separately

The protocol was fixed and preserved before this replay. 2024 is the primary calculation; 2025 applies the same rules with continuous indicator history. Neither is an unseen or live forward test. With an allowance of 2 pips, 57 resolved 2024 trades sum to +1.41 R, while 68 resolved 2025 trades sum to −11.75 R. There are one and three unresolved paths respectively. The small 2024 margin disappears near 3 pips. These observations do not establish a profitable system.

Assumed total cost per completed trade · pips: 2.0 pip.

PeriodEnteredResolvedUnresolvedNet RProfit factorClosed-trade drawdown · R
202458571+1.411.0312.55
202571683-11.750.7314.46
2024 + 20251291254-10.350.8814.92

All performance metrics below use resolved trades only. R is not an account return.

Cumulative net R of 125 resolved trades at a 2 pip allowance. Four unresolved paths are marked and excluded. This partial sequence is neither a complete equity curve nor an account return.
Cumulative net R of 125 resolved trades at a 2 pip allowance. Four unresolved paths are marked and excluded. This partial sequence is neither a complete equity curve nor an account return.

9. Change the cost allowance, not the market history

One GBP/USD pip is 0.0001 USD per GBP. The control is a fixed total round-trip allowance per resolved trade: net pips=gross pips−allowance; net R=net pips÷initial risk pips. It changes net statistics, not entries, stop levels, exit reasons or quotes. The default is 2 pips; 0/1/2/3/5 are comparison points, not broker measurements. Actual spread, commission, slippage and overnight financing vary and are not reconstructed. Sums in pips and R use different weighting when risk distances differ.

10. Follow the first trade without knowing its outcome

The first resolved trade is a short entered on 5 February 2024 at 12:00 UTC, using 1.2572 and 55 pips of initial risk. Its fixed stop is 1.2627. In the entry snapshot the later candles and result are hidden. The completed path exits by the 10-group rule on 7 February at 08:00, using 1.2625: −53 gross pips, or −1.000 R after the 2 pip allowance. Other illustrations use the first intraminute stop and the first Friday exit, selected chronologically to explain mechanisms.

Trade #1, retrospective completed path. The fixed stop stays unchanged. The channel 10 exit uses the next opening quote at 2024-02-07 08:00 UTC; later prices are excluded.
Trade #1, retrospective completed path. The fixed stop stays unchanged. The channel 10 exit uses the next opening quote at 2024-02-07 08:00 UTC; later prices are excluded.

11. Inspect one trade in two explicit modes

Choose a trade by number, UTC entry time and direction. “At entry” shows only completed H4 history known by the signal and the next opening-quote marker. “Complete path” adds the exit and its reason through the stated information cutoff. If an exit occurs within a H4 group, the last candle is partial and contains only observations available by that cutoff. The cost slider has its own value and explanation; it never advances the market clock.

12. Use the results as a reproducible research example

The download contains the frozen protocol, original-source hashes, UTC minute inputs, complete ledger and a standalone replay. A separate SQL and 48-digit Decimal calculation confirmed all 129 entry paths, resolved exits and unresolved reset statuses. This verifies the implementation against this dataset; it does not remove missing data, quote-side uncertainty or selection risk. Check your platform’s candle clock, prices, costs and protective-order behaviour, then test a separately documented version on demo before considering real exposure.

Frequently asked questions

Does 20/10 mean 20 days and 10 days?

Here it means 20 and 10 recorded H4 groups. Market closures and partial groups make recorded-bar length different from elapsed calendar time.

Is the 10-group boundary a trailing protective stop?

No. It triggers a close-based exit instruction, filled at the next recorded minute open. The initial ATR-based protective stop stays fixed.

Can the cost slider create a different trade?

No. It subtracts a fixed round-trip allowance from each resolved result. The trade calendar and price path do not change.

Why is a stop time shown as an interval?

Minute OHLC can establish a stop-level touch within that minute, but not its exact second. An opening-quote exit is shown separately.

Why are four results unresolved?

Their open positions cross unobserved minute intervals. The missing path might have triggered a stop. Inventing a fill or treating the path as safely continuous would overstate the evidence.

Does the small positive 2024 result prove an edge?

No. It excludes one unresolved path, is sensitive to costs, and is followed by a negative 2025 resolved subset. Both years are historical observations rather than an unseen forward test.

Data, calculation method and scope

Verified 733 original daily Forexite ZIPs cover both calendar years and adjacent boundary files. The retained dataset has 751496 minute observations and 3237 H4 groups; 3011 groups contain all 240 minutes. Source prices have four decimal places. UTC conversion uses CET/CEST, and the minute-end convention is a stated research assumption.

The locked trading protocol, input hash, independent calculation and every entered path are provided. Illustrations use first chronological examples and state their later information cutoff. The partial cumulative curve excludes unresolved paths explicitly. No broker spread, Ask series, actual fill or account return is asserted.

Primary references