EA Settings & Configuration

What's a Trailing Stop and
How Does It Help Gold Trading?

A trailing stop is a dynamic exit that automatically follows price in your favour — locking in profit as XAUUSD moves, without requiring manual adjustment.

Scenario 1
No Stop Loss
No protection. Full reversal loss.-$160
Scenario 2
Fixed Stop Loss (−30 pips)
Protected from blow-up but missed the move.−$60
Scenario 3
Trailing Stop (30 pips)
Locked in profit automatically.+$180
WINNER

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.

What Is a Trailing Stop in Forex and Gold Trading?

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.

How a Trailing Stop Works on XAUUSD Step by Step

Here is a concrete example using XAUUSD with a 50-pip trailing stop on a long trade:

  1. Entry: $2,300.00. Initial trailing stop set 50 pips below entry at $2,299.50.
  2. Price rises to $2,302.00. Trailing stop moves to $2,301.50.
  3. Price rises to $2,305.00. Trailing stop moves to $2,304.50.
  4. Price hits session high of $2,308.00. Trailing stop is now at $2,307.50.
  5. Price reverses to $2,307.50. Stop triggered. Trade closes at approximately $2,307.50.
  6. Profit: $2,307.50 − $2,300.00 = $7.50 per pip equivalent = approximately 750 pips at XAUUSD pip value.

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.

Fixed Stop Loss vs Trailing Stop: Which Is Better for Gold?

This is a strategic question, not a technical one. The answer depends on your EA strategy type:

Strategy TypeBest ExitReason
Scalping (M1/M5, 5–30 pip targets)Fixed TPMoves too small for meaningful trailing
Session Breakout (M15/H1, 50–200 pip moves)Trailing StopCaptures extended trend continuation
Swing Trading (H4/Daily, multi-day holds)Trailing StopProtects week-long moves against reversals
High-Frequency (many small trades)Fixed TP + SLSpeed 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.

What Trailing Stop Distance Should You Use on XAUUSD?

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:

  • M1 scalping: Trailing stop 20–30 pips. Average XAUUSD noise on M1 is 8–15 pips — your trail must be wider than noise to avoid premature exits.
  • M5 scalping: Trailing stop 25–40 pips. Noise increases slightly on M5 as candles are larger.
  • M15 breakout: Trailing stop 40–70 pips. This is the sweet spot where session breakout EAs operate and where trailing adds most value.
  • H1 swing: Trailing stop 80–120 pips. Allows for significant intraday fluctuation while protecting multi-session trend profits.
  • H4/Daily swing: Trailing stop 150–300 pips. Gives multi-day moves room to breathe without exiting on normal pullbacks.

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.

Trailing Stop vs Breakeven Stop: Understanding the Difference

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:

  1. Trade enters. Fixed stop loss at -30 pips (protects from catastrophic loss).
  2. Trade reaches +25 pips. Breakeven trigger: stop moves to 0 pips (entry). Trade can no longer lose.
  3. Trade reaches +50 pips. Trailing stop activates: stop now follows price at 30-pip distance.
  4. Price reaches +120 pips. Stop is now at +90 pips.
  5. Price reverses to +90 pips. Exit at +90 pips profit.

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.

How Pro-Scalper EAs Implement Automatic Trailing Stops

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:

Goldie Sniper EA PRO
Uses a session-aware trailing distance. During London/NY overlap (highest volatility), the trail widens by 20% to avoid being stopped out by increased noise. During Asian session, the trail tightens since moves are smaller. The EA reads the session from the broker's server time and adjusts automatically.
Goldie Razor V2 and V2.8.4
Uses a partial-close-then-trail mechanism. At the first profit target (configurable, default 50 pips), 50% of the position closes at fixed TP, locking in guaranteed profit. The remaining 50% then activates a trailing stop at 40-pip distance, allowing it to run extended moves while the first half's profit is secured.
Blind Sniper X PRO
As a low-frequency sniper EA taking 1–3 trades per day with larger target sizes, Blind Sniper uses a wider trailing stop of 60–90 pips to allow high-conviction setups to fully develop before exiting.
Hybrid Scalper Pro
In semi-manual mode, the trailing stop is entirely under trader control — you can activate or modify trail distance on any open trade from the EA control panel without closing and reopening positions.

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.

Common Trailing Stop Mistakes Gold Traders Make

Having coached hundreds of EA traders, we see the same trailing stop errors repeatedly. Here are the five most common:

01
Setting the trail too tight
A 10-pip trailing stop on XAUUSD means any normal candle will stop you out. The average M15 candle body on gold is 25–45 pips. Your trail must be wider than normal noise to do its job.
02
Activating the trail too early
If you activate trailing stop at only +5 pips of profit, the stop is still below entry — you can still lose. Set a minimum profit threshold before trailing activates (usually 1.5× spread minimum).
03
Using MT5's built-in trailing instead of EA trailing
MT5's built-in trailing stop only works when the terminal is open. Close your computer, and the trail freezes. Always use EA-side trailing logic for live accounts.
04
Not widening trail during news events
During major data releases, XAUUSD spreads widen 3–10×. A tight trailing stop during these windows will almost certainly trigger on spread alone, not on real price movement. Pause or widen trail before scheduled events.
05
Overriding the trail manually
Traders see price approaching their trailing stop and manually move it further away to "give it more room." This defeats the purpose — you are removing the protection the trail was designed to provide. Trust the system.

Trailing Stop Configuration in MetaTrader 5

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:

  • TrailingStop or TrailPips — the trailing distance in pips
  • TrailingStep — the minimum movement before the stop updates (prevents micro-adjustments)
  • BreakevenPips — profit level at which stop moves to entry first
  • BreakevenOffset — small buffer above entry to account for spread at breakeven
  • TrailingActivation — profit threshold at which trailing begins (after breakeven)

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.

Why Trailing Stops Improve Long-Term EA Performance on XAUUSD

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.

Backtesting Trailing Stop Parameters: How to Find the Optimal Distance

The only reliable way to find your EA's optimal trailing stop distance is through MT5 Strategy Tester optimisation. Here is the process:

  1. Open Strategy Tester, select your EA, set symbol to XAUUSD, timeframe to your operating timeframe.
  2. Enable optimisation mode. Set TrailingStop parameter range from 20 to 150, step of 5.
  3. Set optimisation criterion to profit factor (not total profit — profit factor is more robust).
  4. Run on at least 2 years of tick data.
  5. Sort results by profit factor. Note the top three trailing distances and run forward tests on out-of-sample data (the most recent 6 months).
  6. The distance that holds up in both in-sample and out-of-sample periods is your optimal setting.

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.

Trailing Stop Questions — Answered

Goldie Razor V2.8.4

M15 breakout + H4 EMA filter — built for XAUUSD on MT5

View Goldie Razor →