Almost every gold Expert Advisor belongs to one of three families: breakout, trend following or mean reversion. They buy and sell at opposite moments, win at very different rates, and each has one kind of market that hurts it. This guide compares the three on XAUUSD with numbers: how each one trades, the win rate each needs to break even, how long the losing streaks can be, what spread costs each style, and how to choose one that fits your account and your patience.
The three styles in one table
| Breakout EA | Trend-following EA | Mean-reversion EA | |
|---|---|---|---|
| Idea | Price leaves a range and keeps going | An established move continues | A stretched price returns to its average |
| Typical entry | Break of a session range, channel or squeeze | Indicator flip or pullback in the trend direction | Touch of an outer band with a rejection candle |
| Typical exit | Fixed R target or session end | Trailing stop, no fixed target | The average (middle band, VWAP, pivot) |
| Reward vs risk | Medium, about 1 to 2R | Large, 2R and more on winners | Small, often below 1R |
| Win rate it tends to show | Medium | Low | High |
| Market that hurts it | False breaks in a quiet range | Sideways chop | A strong one-way trend |
R means the amount risked on the trade. A 1.5R target on a 12 USD stop is an 18 USD move in gold.
How a breakout EA trades gold
A breakout EA defines a box first: the Asian session range, the first minutes after the New York open, a Donchian channel, or a period of low volatility. It then places or triggers an order when price closes outside the box. Gold suits this style because its volume arrives in bursts around the London and New York opens, so ranges formed in quiet hours often break with momentum.
The weak point is the false break: price pokes 2 or 3 USD outside the range, triggers the order and returns inside. Good breakout EAs reduce this with a buffer beyond the range, a closed-bar rule, a range-size filter and a limit of one trade per side per day. The Bollinger Squeeze EA is one example: it waits for the bands to contract and trades the expansion only in the direction of the EMA trend. The logic behind session ranges is explained in the London breakout guide.
How a trend-following EA trades gold
A trend EA does not try to catch the start of a move. It waits until a trend is visible (a Supertrend flip, price above the Ichimoku cloud, aligned moving averages), enters in that direction and trails the stop behind price. There is usually no fixed take profit, because the whole edge comes from a few trades that run far.
That shape has a cost: most trades end as small losses or near break-even, and long flat periods are normal. When gold moves sideways for two weeks, a trend EA is stopped out again and again. The Supertrend Rider EA shows the usual defences: it needs the higher timeframe to agree, takes part of the position off at 1R and trails the rest.
How a mean-reversion EA trades gold
A mean-reversion EA does the opposite of the other two. When price is stretched far from an average, it sells strength or buys weakness and targets the average itself. The target is close, so trades are short and wins are frequent.
The danger is the day gold does not come back. In a strong trend the upper band keeps moving up and every short is a loss. This is why honest mean-reversion EAs use a regime filter and a hard stop. The Keltner Reversion EA only fades the outer Keltner Channel when ADX is low (a ranging market) and the candle rejects the band. A mean-reversion EA with no stop loss, or one that adds to losers, is really a grid or martingale system; see martingale vs grid vs stop-loss EA.
Win rate means nothing without the reward size
The break-even win rate of any system is 1 ÷ (1 + R), where R is the average win divided by the average loss. This is why a 60% win rate can lose money and a 35% win rate can make it.
| Style (illustrative profile) | Average win | Break-even win rate |
|---|---|---|
| Mean reversion | 0.8R | 55.6% |
| Breakout | 1.5R | 40.0% |
| Trend following | 3R | 25.0% |
These profiles are examples, not results of any EA. The point is the comparison: a mean-reversion EA that wins 55% of the time with a 0.8R average win is slightly below break-even before costs, while a trend EA winning 30% with a 3R average win is above it. When you read a backtest, check both numbers together. The risk reward calculator shows the break-even win rate for any stop and target, with costs included.
Worked example: the same 1% on three styles
Account 10,000 USD, risk 1% = 100 USD per trade, gold near 4,200. Lot size = risk ÷ (stop distance × 100 oz), rounded down to the 0.01 lot step. A spread of 0.25 USD is assumed.
| Style | Stop | Lot | Risk | Target | Spread cost |
|---|---|---|---|---|---|
| Breakout | 12 USD | 0.08 | 96 USD | 18 USD move = 144 USD (1.5R) | 2.00 USD = 2.1% of risk |
| Trend | 30 USD | 0.03 | 90 USD | No fixed target; a 90 USD move = 270 USD (3R) | 0.75 USD = 0.8% of risk |
| Mean reversion | 6 USD | 0.16 | 96 USD | 5 USD move = 80 USD (0.83R) | 4.00 USD = 4.2% of risk |
Three things stand out. First, the dollar risk is nearly the same, but the lot size differs by a factor of five, so never compare EAs by lot size. Second, the mean-reversion trade risks 96 USD to make 80 USD, so its break-even win rate is 1 ÷ 1.83 = 54.5% before costs. Third, the tight stop pays the most spread relative to risk: 4.2% of every trade against 0.8% for the wide trend stop. Tight-stop styles depend far more on your broker's spread and on slippage; the XAUUSD spread guide has the full cost math. You can repeat the sizing for your own account with the XAUUSD lot size calculator.
Losing streaks: the part most people underestimate
A low win rate means long losing streaks even when the system is sound. The table shows the chance of seeing at least one streak of that length somewhere in 100 trades, assuming trades are independent (real trades cluster more, so treat these as a floor).
| Win rate | 5+ losses in a row | 8+ losses in a row | 10+ losses in a row |
|---|---|---|---|
| 35% (trend-like) | 99.5% | 69.0% | 36.8% |
| 45% (breakout-like) | 92.0% | 30.7% | 10.1% |
| 60% (reversion-like) | 45.9% | 3.6% | 0.6% |
At 1% risk, eight losses in a row is a drawdown of about 7.7%. With a 35% win rate that is more likely than not within 100 trades, so a trend EA has to be sized for it in advance; the 1% risk rule guide shows the drawdown at each risk level. Mean-reversion streaks are shorter, but each loss is bigger than each win, so two or three losses can erase a week of small gains.
How to tell the style from a backtest
- Average win ÷ average loss. Above 2 suggests trend following; about 1 to 2 breakout; below 1 mean reversion.
- Win rate next to it. Compare with the break-even table above, not with 50%.
- Largest loss vs average loss. If the largest loss is many times the average, the EA has no real stop or adds to losing positions.
- Holding time. Minutes to hours is typical for reversion and session breakouts; days for trend EAs on H4.
- Equity curve shape. Stairs with long flat sections is normal for trend; a smooth line with rare sharp drops is normal for reversion.
Run the test yourself on real ticks with realistic spread before trusting any report; the steps are in how to backtest an EA in MT5.
How to choose
- Small account or wide-spread broker: avoid tight-stop styles where spread is 4% or more of the risk; prefer H1 and higher.
- You cannot sit through 8 to 10 losses: a pure trend EA will be hard to keep running, however good its long-term numbers look.
- You want few trades and clear rules: a session breakout EA with one trade per side per day is the easiest to check by eye.
- You want to combine styles: a trend EA and a reversion EA overlap less than two trend EAs, but total risk still adds up. See running multiple EAs on one MT5 account.
Key takeaways
- Breakout EAs trade the move out of a range, trend EAs ride an existing move, mean-reversion EAs fade stretched prices back to an average.
- Break-even win rate = 1 ÷ (1 + R): about 56% at 0.8R, 40% at 1.5R, 25% at 3R.
- Low win-rate styles need room for long losing streaks; high win-rate styles need a hard stop because losses are larger than wins.
- Tight stops pay more spread per unit of risk, so mean-reversion and scalping styles are the most sensitive to costs.
FAQ
Which EA type is best for XAUUSD?
None is best in every market. Breakout EAs fit gold's session bursts, trend EAs need multi-day moves, and mean-reversion EAs need quiet ranges. Choose by the drawdown and losing streak you can accept, your spread, and how the EA behaved in the market type that hurts it.
Is a higher win rate better in an EA?
Not by itself. A 60% win rate with an average win of 0.8R is close to break-even, while 35% with an average win of 3R is positive. Always read the win rate together with the average win and average loss.
Why does a trend-following EA lose so many trades?
It enters every time a trend might be starting and most of those attempts fail quickly at a small loss. Its result depends on a small number of trades that run several times the risk, so a low win rate and long flat periods are part of the design.
Are mean-reversion EAs dangerous on gold?
They are risky when they have no stop loss or add to losing trades, because gold can trend for days without returning to the average. A mean-reversion EA with a hard stop on every order and a range filter has limited loss per trade like any other style.
Can I run a breakout EA and a mean-reversion EA together?
Yes, on a hedging account with a different magic number for each. They tend to lose on different days, which can smooth results, but both trade the same market, so set one total risk budget and divide it between them.
For education only, not investment advice. Trading gold and CFDs is high risk and you can lose your capital.