# Gold Donchian Breakout

A free MT5 EA for XAUUSD using Donchian channel breakouts with H4 EMA, ADX, and tick-volume filters.

Canonical: https://prismaticalgos.com/compendium/algo/12724-gold-donchian-breakout
Record ID: 12724
Catalog rank: 1813 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/market/product/198826
Evidence label (unverified): backtest_shown

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: XAUUSD, XAUUSDm, XAUUSDc, GOLD#
- timeframes: M5
- sessions: Not specified
- market_regime: any

## Indicators

- Donchian Channel: {"period": 20}; applied to: close
- H4 EMA: {"period": null}; applied to: close
- ADX: {"period": null}; applied to: close
- ATR: {"period": null}; applied to: close

## Recorded long-entry rules

- M5 candle closes above Donchian channel upper band
- H4 EMA direction and distance conditions met
- Tick-volume confirmation

## Recorded short-entry rules

- M5 candle closes below Donchian channel lower band
- H4 EMA direction and distance conditions met
- Tick-volume confirmation

## Recorded exit rules

- Stop loss uses H4 ATR with price-percentage bounds
- Take profit is a multiple of initial stop distance, default 1R
- At +0.5R, EA attempts to move the stop to break-even when trading conditions permit

## Recorded filters

- Oversized candles
- Extended breakouts
- MaxSpread in GOLD price dollars
- FridayCloseHour uses broker server time
- MaxSymbolPositions counts manual and other-EA positions on the same symbol
- Use a unique MagicNumber for each EA/chart

## Risk controls

- Stop loss: H4 ATR with price-percentage bounds
- Take profit: Multiple of initial stop distance, default 1R
- Position sizing: Default MaxLot is 0.01; account capital, contract size and minimum volume must be considered together
