Trend following strategy · Gold (XAUUSD)
Donchian Midline strategy for gold
Close crosses the 20-bar Donchian midline with the 50 EMA.
How Donchian Midline works on gold
Gold often trends for hours after London or New York opens, or after big US data. Trend rules confirm that direction with moving averages, channels or momentum filters before entering. The stop goes beyond recent volatility, so normal pullbacks do not knock the trade out.
The Donchian Midline rule is fully objective: given the same candles, it always produces the same signal. A signal only fires on the candle where its condition becomes true, so it can be tested fairly on historical data and run automatically on MetaTrader 5.
When it works best
- Clear higher highs and higher lows (or the reverse) on M15 and H1
- London and New York sessions, when liquidity is deepest
- Volatility at or above its recent average
When to avoid it
- Gold is ranging tightly before a major news release
- The Asian session is quiet and spreads are wider
- Higher timeframes point the opposite way
Risk management for Donchian Midline
Gold can move several dollars in minutes, so the stop is sized from volatility (ATR), not a fixed number of pips. A common, testable plan is a stop of 1.5×ATR(14) and a target of at least 1.5 times the risk. Risk only a small, fixed share of the account per trade, and never average down into a losing position.
Common mistakes
- Entering late, after the move is already stretched far from its average
- Using stops that are too tight for gold's volatility
- Taking every crossover in a sideways market
See how Donchian Midline is performing on gold right now
QuantForg replays Donchian Midline and 101 other strategies on recent real XAUUSD data, with spread included, and ranks them by results. Ask QuantForg AI to explain any strategy against the live market, or let the gold robot trade for you on your own MT5 account with risk limits on every trade.
Frequently asked questions
- What is the Donchian Midline strategy?
- Donchian Midline is a trend following strategy. Close crosses the 20-bar Donchian midline with the 50 EMA. Trend strategies try to join a move that is already under way and stay with it while it lasts. They accept small losses in choppy markets in exchange for larger wins when gold trends.
- Does Donchian Midline work on gold (XAUUSD)?
- It can, in the right conditions: clear higher highs and higher lows (or the reverse) on m15 and h1. No strategy works all the time. QuantForg tests Donchian Midline and 100+ other strategies on recent real XAUUSD data and shows how each one actually performed, so you can see when it is working.
- When should I avoid trading Donchian Midline?
- Be careful when gold is ranging tightly before a major news release; the Asian session is quiet and spreads are wider; higher timeframes point the opposite way.
- Can Donchian Midline be automated on MetaTrader 5?
- Yes. Its rules are fully objective, so software can evaluate them on every candle. QuantForg runs on MT5 with your own broker account, and every trade passes risk limits before it is sent.