A trailing stop is a dynamic exit that automatically follows price in your favour — locking in profit as XAUUSD moves, without requiring manual adjustment.
Trailing stop captured 0% of the move vs −$0 loss with fixed SL and -$160 with no stop at all
A trailing stop is an order type that moves your stop loss automatically in the direction of profit as price advances in your favour. Unlike a fixed stop loss that stays at one level, a trailing stop follows price higher (on long trades), locking in incremental profit every time price makes a new high. On XAUUSD — where session moves of 150–400 pips are routine — trailing stops can capture 60–80% of a trend move automatically, without the trader needing to adjust anything manually.
A trailing stop is an order that attaches a stop-loss level to a trade — but instead of staying fixed at a price you set manually, it moves automatically as price moves in your favour. On a long XAUUSD trade, if you enter at $2,300 and set a 50-pip trailing stop, your initial stop is at $2,299.50. If price rises to $2,301.50, the stop automatically moves to $2,301.00. If price reaches $2,305, the stop is now at $2,304.50. It only moves in one direction — upward on a long — so if price reverses, the stop stays at its highest level until it is triggered.
This is fundamentally different from a fixed stop loss, which remains at the price you set regardless of where price goes. With a fixed stop, you have a defined risk — but also a defined cap on what you can protect. With a trailing stop, your risk decreases as price moves your way, because the stop is now above your entry price, meaning any close is at worst a breakeven or profitable exit.
For XAUUSD specifically, this matters enormously. Gold is one of the most volatile major instruments — it is common for a London session breakout to run 200–300 pips before reversing. A fixed take-profit at 50 pips captures a fraction of that move. A trailing stop at 50 pips, by contrast, automatically captures the entire move minus 50 pips — delivering 150–250 pips profit from the same setup. This is why understanding why gold's big moves reward trailing stops is so central to gold EA strategy.
Here is a concrete example using XAUUSD with a 50-pip trailing stop on a long trade:
Critically, the trader did not need to intervene at any point. The EA managed the trail automatically from entry to exit. This is a core component of the trailing stop as part of the exit logic component in any properly built gold EA.
On MetaTrader 5, trailing stops can be implemented in two ways. The first is the platform's built-in trailing stop, which only runs when the terminal is open — it stops updating if MT5 is closed. The second, preferred approach for EA trading, is to code the trailing logic directly into the EA itself, so it runs on the broker's server regardless of whether your local terminal is open. All Pro-Scalper EAs use server-side trailing logic for this reason.
This is a strategic question, not a technical one. The answer depends on your EA strategy type:
| Strategy Type | Best Exit | Reason |
|---|---|---|
| Scalping (M1/M5, 5–30 pip targets) | Fixed TP | Moves too small for meaningful trailing |
| Session Breakout (M15/H1, 50–200 pip moves) | Trailing Stop | Captures extended trend continuation |
| Swing Trading (H4/Daily, multi-day holds) | Trailing Stop | Protects week-long moves against reversals |
| High-Frequency (many small trades) | Fixed TP + SL | Speed matters more than capturing full move |
The hybrid approach — using a fixed take-profit for 50% of the position and a trailing stop for the remaining 50% — is increasingly common in professional EA design. This captures guaranteed profit on the first half while giving the second half room to run. Goldie Razor V2 uses exactly this approach: partial close at the first target, trailing stop on the remainder.
On pure scalping strategies, trailing stops often reduce performance because the trailing distance is necessarily wider than the target — which means the EA sometimes gives back more than it captured. For Goldie Sniper EA PRO, which operates on M1 with tight 10–20 pip targets, a fixed TP outperforms trailing in backtests because the moves are simply too small for trailing to add value.
The single most important trailing stop parameter is the distance — measured in pips — between the current price and where the stop sits. Set it too tight and you get stopped out by normal noise before the trend has a chance to run. Set it too wide and the stop becomes nearly meaningless, allowing price to reverse so far that you give back most of your profit.
The correct distance depends entirely on the timeframe you are trading:
These are starting points. You should verify against your specific EA's backtest data — look at average candle size on your trading timeframe in the MT5 Strategy Tester and set trailing distance to at least 1.5× that figure. This connects directly to adjusting trailing distance during volatile periods — in high-volatility sessions like London open, widening your trail by 20–30% can prevent premature exits.
These two mechanisms are frequently confused but serve different functions:
A breakeven stop is a one-time adjustment: when your trade reaches a predefined profit threshold (for example, +30 pips), the stop loss moves to your entry price. You can no longer lose on this trade — at worst you exit at breakeven. But the stop does not continue to move further. If price then runs another 200 pips and reverses, you exit at breakeven, not at +170 pips.
A trailing stop is a continuous adjustment: it follows price upward beyond breakeven, locking in incrementally more profit as the trade advances. When price reverses and hits the trail, you exit with locked-in profit — not at breakeven.
The professional EA design combines both mechanisms in sequence:
This layered approach is described in detail when exploring incorporating trailing stops into your risk formula — the formula for net risk changes at each stage of this sequence.
All Pro-Scalper EAs implement trailing stops server-side — meaning the logic runs on the broker's server, not on your local MetaTrader 5 terminal. This is critical because it means trailing continues even if your internet connection drops, your computer shuts down, or your VPS restarts briefly.
Here is how each EA handles trailing differently:
It is worth reading about the case for always using a stop loss in the context of trailing stops — the argument is even stronger for trailing than for fixed stops, because trailing provides upside participation while maintaining the protection function.
Having coached hundreds of EA traders, we see the same trailing stop errors repeatedly. Here are the five most common:
If you are using an EA that manages trailing internally, you configure it in the EA input parameters panel. Common parameter names you will see:
A trailing step of 5–10 pips prevents the EA from updating the stop on every single tick, which would generate excessive modification requests to the broker and could trigger rate-limiting on some platforms.
The statistical case for trailing stops in gold EA trading comes down to two properties of XAUUSD price action:
First, XAUUSD has strong directional momentum once a breakout occurs. Studies of XAUUSD tick data across 2015–2024 show that when price breaks the Asian session high during London open with volume confirmation, the follow-through averages 180–320 pips before any significant retracement. A fixed TP at 50 pips captures only 15–28% of this move. A 50-pip trailing stop captures 76–84% of it.
Second, XAUUSD has fat tails — occasionally massive moves (400–800 pips in a session) that fixed TPs miss entirely. During these rare but extremely valuable events, trailing stops multiply their advantage dramatically. Over a 200-trade sample, even two or three caught 400-pip moves with trailing stops adds significant additional return that fixed TPs cannot capture.
This is closely related to the broader question of incorporating trailing stops into your risk formula — because capturing fat-tail moves changes the profit distribution and means your average winner is meaningfully larger than with fixed TPs.
The only reliable way to find your EA's optimal trailing stop distance is through MT5 Strategy Tester optimisation. Here is the process:
Avoid over-optimising to a single pip value. If the backtest shows 47 pips is marginally better than 50, use 50 — the difference is noise and round numbers are more stable over new market conditions.
Goldie Sniper, Goldie Razor V2 and V2.8.4, Blind Sniper, and Hybrid Scalper. Full suite for every market condition.
Not sure which EA fits your account size or trading style? Email us and we will help you choose.
Goldie Razor V2.8.4
M15 breakout + H4 EMA filter — built for XAUUSD on MT5