Join today
Strategies / Breakout / Donchian 55 Breakout

Donchian 55 Breakout

A close above the highest high of the last 55 bars opens a long, and a close below the 55-bar low opens a short. Positions exit on a close through the opposite 20-bar channel or at a 1% stop. Only one position is held at a time.

BreakoutLong & shortSwingGold1 hour
1.13Profit factor
1,598Net profit EUR
37.03%Win rate
1,639Trades
-1,051Max drawdown
0.97Avg trade

Best run of 16. Gold, 1 hour, spread 0.6, from run pf:2026-09-15-GOLD-1h.tsv:2.

Entry rules, long

  1. Members only
  2. No position is open

Entry rules, short

  1. Members only
  2. No position is open

Exit rules

  1. Stop loss 1% from entry
  2. Members only
  3. Close a short when price closes above the highest high of the previous 20 bars

Test conditions

PeriodUp to 2026-09-15
InstrumentGold, 1 hour
Spread0.6 points
Contracts1
Starting capital1,000,000
CostsSpread only. Commissions and overnight financing are not included.
BarsUp to 200,000 bars, fewer where the instrument has less history
Last tested2026-09-15

Parameters

positionSize
Contracts per trade
1
channelPeriod
Entry channel length
55
exitChannelPeriod
Exit channel length
20
stopLossPct
Protective stop, percent
1

Every run

Markets and timeframes tested

MarketTimeframePFTradesWin %NetMax DD
GoldBest run1 hour1.13 1,63937.031,598 EUR-1,051
Gold30 min1.10 2,65237.291,641 EUR-1,095
DAX 4030 minn/a 2,90235.251,642 EUR-5,496
Gold15 minn/a 2,71834.18361 EUR-1,579
Gold5 minn/a 2,66436.19311 EUR-1,163
DAX 4015 minn/a 2,84637.28-351 EUR-6,964
DAX 401 hourn/a 1,71333.39-1,560 EUR-7,384
S&P 5005 minn/a 2,82033.16-2,674 EUR-2,868
Nasdaq 1005 minn/a 2,80536.08-3,694 EUR-6,256
S&P 50015 minn/a 3,01035.38-4,044 EUR-4,363
S&P 5001 hourn/a 1,87033.64-4,087 EUR-4,349
S&P 50030 minn/a 2,94135.63-4,158 EUR-5,239
DAX 405 minn/a 2,80732.31-4,660 EUR-4,814
Nasdaq 10015 minn/a 3,08734.56-10,623 EUR-11,286
Nasdaq 10030 minn/a 3,05036.03-10,667 EUR-13,326
Nasdaq 1001 hourn/a 1,93130.45-12,450 EUR-14,962

Charts

Results by run

Profit factor by run

Above 1.0 made money, below 1.0 lost money.

0.00.51.01.52.01.0 = break-evenGold · 1 hour1.13Gold · 30 min1.10

Net profit against max drawdown

Net profitMax drawdown
0-20K-10K1K2KDAX 40 · 30 minGold · 30 minGold · 1 hourGold · 15 minGold · 5 minDAX 40 · 15 minDAX 40 · 1 hourS&P 500 · 5 minNasdaq 100 · 5 minS&P 500 · 15 minS&P 500 · 1 hourS&P 500 · 30 minDAX 40 · 5 minNasdaq 100 · 15 minNasdaq 100 · 30 minNasdaq 100 · 1 hour

The code

ProBuilder, rewritten to house standard

Every file in the library uses the same header, the same section order and the same variable names. The numbers above were produced by the original version before the rewrite, and the rewrite has not yet been compiled in ProRealTime.

// ============================================================
// Donchian 55 Breakout
// ProRealAlgos Strategy Library  |  prorealalgos.com
// Type: Breakout
// Direction: Long & short
// Timeframe tested: 1 hour
// ============================================================

// --- Settings ---
DEFPARAM CumulateOrders = false

// --- Parameters ---
positionSize = 1          // contracts per trade
channelPeriod = 55        // entry channel length
exitChannelPeriod = 20    // shorter exit channel length
stopLossPct = 1           // protective stop, percent of entry price

// --- Indicators ---
// Channels end on the previous bar so the breakout bar is not part of its own level.
channelHigh = Highest[channelPeriod](high)[1]
channelLow = Lowest[channelPeriod](low)[1]
exitHigh = Highest[exitChannelPeriod](high)[1]
exitLow = Lowest[exitChannelPeriod](low)[1]

25 more lines: the entry and exit rules.

Read this first

Known weaknesses

  • It lost money on most markets tested. All Nasdaq 100 and S&P 500 timeframes were negative, with Nasdaq 100 1 hour at EUR -12,449.60.
  • The best run on Gold 1 hour averaged EUR 0.97 per trade, which leaves almost no margin for extra costs.
  • Profit factor in the best run was 1.13 on 1,639 trades, and DAX 40 was only profitable on 30 minutes.

Indicators used

Donchian Channel

How to load it

  1. Copy the code with the copy button above the code block.
  2. In ProRealTime, open a chart of the instrument and timeframe you want to test, then open ProOrder > New trading system and choose "Create with programming".
  3. Paste the code, give the system a name and save it.
  4. Click "Backtest", set your own spread and position size, and run it before you consider trading it live.

Questions

About this strategy

Can I run the Donchian 55 Breakout in ProOrder?

Yes, it is a simple ProOrder system. The code was rewritten and has not been compile-checked, and the stats are from the version before that.

Where did it make money?

Mainly on Gold. Gold 1 hour made EUR 1,597.70 and Gold 30 minutes EUR 1,641.40. Index markets were mostly losing.

What drawdown should I expect?

At 1 contract, Gold 1 hour had a max drawdown of EUR 1,050.90. On Nasdaq 100 1 hour it reached EUR 14,961.70 while losing money.

Why 55 and 20 bars?

The long entry channel waits for a clear break of recent range, while the shorter exit channel gets out faster when the move fades.

Related

Strategies like this one

Turtle Trade

Uses the same indicator.

2.42 PF · 6,324 trades

Triple Band Market Model

Best run on the same market, Gold.

2.27 PF · 203 trades

SMA Cross 10/30

A similar profit factor.

1.14 PF · 2,495 trades

Classic breakouts behave differently across markets. See how we pick them in the ProRealAlgos community.

The ProRealAlgos community gets the full rules, the complete code and the automated portfolio.

Past backtest results do not guarantee future results. This is not financial advice. Curated and maintained by ProRealAlgos. ProRealTime™ is a trademark of ProRealTime SAS. prorealalgos.comStatsDocs