Skip to content

What is a trailing stop loss, and how does it work in MT4/5?

A trailing stop loss is a stop-loss that follows the price as a trade moves in your favour, staying a set distance behind the best price reached, and never moves back. In MT4/5 it is run by your desktop terminal, starts only once the trade is in profit by the trailing distance, and stops moving when the terminal is closed.

Fintrix Markets trading desk •

What is a trailing stop loss?

A trailing stop loss is a stop-loss that moves with the price. On a buy trade it sits a fixed distance below the highest price reached since entry; on a sell trade, a fixed distance above the lowest. When the price moves your way, the stop follows. When the price moves against you, the stop stays where it is. If the price falls back to it, the trade closes.

The US Securities and Exchange Commission's investor bulletin uses this example: you buy a stock at $20, it rises to $22, and you set a trailing stop $1 below the market price. The price peaks at $24, so the stop sits at $23. When the price drops back to $23, the order triggers, "though the execution price may deviate from $23".

The point of a trailing stop is to keep part of a move without picking an exit price in advance. A take-profit closes the trade at a level you chose before the move happened. A trailing stop lets the market decide when the move is over, by how far it pulls back.

Trailing stop vs stop loss: what is the difference?

Fixed stop-loss Trailing stop
Where it sits One price, chosen at entry A set distance behind the best price since entry
Moves when price goes your way No (unless you move it) Yes, automatically
Moves when price goes against you No No
What it protects The loss you accepted at entry Part of any open profit, once it has started trailing
Held where in MT4/5 On the trading server Run by your desktop terminal; only the stop level it last set is on the server
Works with the terminal closed Yes Only the last stop level it set
Fills exactly at its level No: it becomes a market order No: same as a stop-loss

The last row matters for both. A trailing stop is still a stop order. When it triggers, it closes the trade at the next available price, which can be worse than the stop level in a fast market or after a weekend gap.

How does the trailing stop work in MT4/5?

MetaTrader's trailing stop follows three rules, set out in the MT4 and MT5 help pages.

1. It does nothing until the trade is in profit by the trailing distance. The MetaTrader 5 help: "As soon as the profit in points becomes equal to or larger than the indicated level, an automatic command is generated to place a Stop Loss at the indicated distance from the current price." So the first stop it sets is at about your entry price. Until then, only the stop-loss you set yourself protects the trade, and if you set none, nothing does.

2. It runs in your terminal, not on the server. Both the MT4 and MT5 help say the same: the trailing stop "will not work if the platform is off. In this case, only the Stop Loss level set by the Trailing Stop will trigger." Close the terminal, lose the connection, or let the computer sleep, and the stop freezes at its last level. The trailing stop is a desktop feature: the MT4/5 mobile apps do not offer it, and a stop set to trail on your desktop stops trailing when that desktop terminal closes, even if your phone is connected.

3. It is distance in points, and it moves in steps. You set the distance in points (on a 5-digit EUR/USD quote, 10 points = 1 pip; on gold quoted to 2 decimals, 100 points = $1). MT5 modifies the stop at most once every 10 seconds per position, and with several trailing positions on one symbol it processes them in turn. Each change is written to the terminal's Journal tab.

A worked example in pips

You buy 1 lot of EUR/USD at 1.08200 and set a trailing stop of 300 points (30 pips), with a fixed stop-loss of 30 pips at 1.07900. Long positions are closed on the bid, so the bid is what counts.

Bid Highest bid so far Stop-loss What happened
1.08350 1.08350 1.07900 In profit by 15 pips, less than 30: trailing has not started
1.08500 1.08500 1.08200 Profit reaches 30 pips: stop moves to the entry price
1.08750 1.08750 1.08450 Stop follows, 30 pips behind the high
1.08600 1.08750 1.08450 Price pulls back: stop stays put
1.08450 1.08750 Triggered Trade closes near 1.08450

The trade closes about 25 pips above entry, or about $250 on 1 lot before commission and any slippage, while the best price was 55 pips above entry. The 30 pips between the high and the exit is what the trailing stop gives back: that is the price of letting the market choose the exit.

How far should a trailing stop be?

No distance suits every trade, because two costs pull against each other. A tight trail gives back little when the move ends but is easily hit by normal back-and-forth. A wide trail survives the noise but gives back more when it finally triggers. Where that balance sits depends on how much the instrument moves, which is why a fixed number of pips that works on one market or one month can be far too tight or too loose on another.

Four common ways to set the distance:

Method How it works Strength Weakness
Fixed points or pips The same distance on every trade (the MT4/5 built-in trail) Simple, built in Ignores how volatile the market is right now
Percentage A set percentage of price Scales with price level Ignores volatility; rarely used for forex
ATR multiple A multiple of the average true range, e.g. 2 or 3 times the daily ATR Adjusts to current volatility Needs a calculation or an expert advisor
Chart structure Under the most recent swing low (or above the swing high for a sell) Tied to levels the market respects Moves irregularly; needs judgement or code

The ATR method has a well-known version, the Chandelier Exit, developed by Charles Le Beau. StockCharts' ChartSchool sets out its default: a long exit "three ATR values below the 22-period high", with ATR measured over the same 22 days. The stop hangs from the highest high, so it rises with new highs and widens or narrows as volatility changes.

To use an ATR distance with the MT4/5 built-in trail, convert it to points. If gold's daily ATR is $80, a 2x ATR trail is $160, which is 16,000 points on a 2-decimal gold quote. That is a hundred times more points than the same number of "dollars" sounds like, so check the figure you type into the Custom field before you confirm it.

What do real price moves show about trailing distance?

To see the trade-off on real prices, we replayed the MT4/5 trailing rule over two 2026 gold rallies on our own price feed. Each trade buys gold at a daily close, uses an initial stop-loss at the trailing distance, starts trailing once the profit equals that distance, and moves the stop up with each hourly high. The distances are two fixed dollar amounts and one, two and three times the 14-day ATR on the entry day.

This is an illustration of how the mechanism behaves, not a test of a strategy: two hand-picked episodes say nothing about how any distance performs in general.

August 2026: a steady rally. Bought at 4,054.84 at the close on 3 August. Daily ATR: $80.28. Gold peaked at 4,696.88 on 25 August.

Trailing distance Exit date Exit price Versus entry Below the peak
$20 4 Aug 4,064.38 +$9.54 $20
$50 6 Aug 4,254.09 +$199.25 $50
1x ATR ($80) 6 Aug 4,223.81 +$168.97 $80
2x ATR ($161) 28 Aug 4,536.33 +$481.49 $161
3x ATR ($241) 28 Aug 4,456.05 +$401.21 $241

March to April 2026: a volatile rally. Bought at 4,471.56 at the close on 24 March, the day after gold fell to 4,098.87. Daily ATR: $177.44, more than twice August's. Gold peaked at 4,890.20 in April.

Trailing distance Exit date Exit price Versus entry Below the peak
$20 25 Mar 4,581.15 +$109.59 $20
$50 25 Mar 4,552.33 +$80.77 $50
1x ATR ($177) 2 Apr 4,623.02 +$151.46 $177
2x ATR ($355) 29 Apr 4,535.32 +$63.76 $355
3x ATR ($532) 30 Oct 3,939.25 −$532.31 Never trailed

Prices are per ounce; on 1 lot (100 ounces), multiply by 100. Exits ignore slippage and commission.

What the two tables show:

  • The widest trail did best in August and worst in March. In August, the pullbacks inside the rally were smaller than 2x and 3x ATR, so those stops rode the move to late August. In March, gold rose $418.64 from entry before turning, which was less than the 3x ATR distance of $532.31. Under the MT4/5 rule the trail never started, the stop stayed at its initial level, and the trade went on to close at a loss in October.
  • Fixed dollar distances mean different things in different months. $50 was well under one day's average range in both episodes, so it was hit within three days each time. The same $50 is 0.6x ATR in August and 0.3x ATR in March.
  • Once a stop has started trailing, its exit is the trailing distance below the peak (before slippage). Choosing a distance is choosing how much of a move you are willing to return in exchange for staying in it.

Academic work treats this as a question without a general answer. Kaminski and Lo (2014) set out a framework for measuring whether a stop-loss rule adds or subtracts value, and the answer depends on how the market's returns behave over the period, which is what the two tables show in miniature.

Can a trailing stop gap or slip?

Yes. A trailing stop sets an ordinary stop-loss on the server, and a stop-loss becomes a market order when it triggers. The SEC bulletin warns that a stop's execution price "can deviate significantly from the stop price". Over a weekend or through a data release, the first available price can be well past your trailing level. On our feed in 2026 the largest weekend gap on gold was $92.55, larger than the 1x ATR distance in August.

A trailing stop also does not adjust for news. If it sits just below the price into an interest rate decision, a brief spike in the wrong direction can close the trade before the move you were trailing resumes.

How do you keep a trailing stop working when your computer is off?

Because the MT4/5 trailing stop lives in the desktop terminal, it needs the terminal running and connected. Three ways traders handle it:

  1. Leave the desktop terminal running on a computer that does not sleep, with a stable connection.
  2. Run the terminal on a virtual private server (VPS), a remote computer that stays on. MetaQuotes offers its own virtual hosting service from inside the platform; a third-party VPS works too.
  3. Use an expert advisor (EA) that moves the stop with its own rules, for example an ATR or swing-low trail. An EA also runs inside the terminal, so it needs the terminal on as well. It changes the rule, not the hosting.

Whichever you use, the stop level already on the server stays active if the terminal goes offline. Your trade is never left with no stop because the trail stopped, unless you never set a stop in the first place.

How do you set a trailing stop in MT4/5?

On the desktop terminal:

  1. Open a position, and set a normal stop-loss on it. (For the basic steps, see the Help Centre link below.)
  2. In the Toolbox (MT5) or Terminal (MT4) window, open the Trade tab.
  3. Right-click the position and choose Trailing Stop.
  4. Pick a distance from the list, or choose Custom and type the distance in points.
  5. Keep the terminal running. Each time the stop moves, a line appears in the Journal tab.

To switch it off, choose None in the same menu. Delete All removes trailing stops from every position and pending order. In MT5 you can also attach a trailing stop to a pending order; it applies once the order fills.

What changing the distance does: a smaller number moves the stop closer to the price, so it starts trailing sooner and gives back less at the exit, but normal pullbacks hit it more often. A larger number does the opposite. The trail will not start until the trade has moved your way by the full distance.

Key takeaways

  • A trailing stop follows the price by a set distance as the trade moves your way and never moves back.
  • In MT4/5 it starts only once profit equals the trailing distance, runs in the desktop terminal, freezes at its last level when the terminal is off, and is not available in the mobile apps.
  • It is still a stop order: it can slip and gap, and once it is trailing, its exit is at least the trailing distance below the best price reached.
  • Distance is a trade-off between noise and give-back. Measured in ATR it adapts to volatility; a fixed number of pips does not.
  • On two real 2026 gold rallies, the same distances produced opposite rankings. No single distance is right for every market or every month.

Sources

Put your knowledge to work

Open a Fintrix Markets account, or log in and trade CFDs on forex, gold, indices and more.

Get up to US$4,000 in bonuses!

Make your first qualifying deposit count with 40% bonus credit added automatically. Keep reloading with 20% bonuses on subsequent deposits.

  • 40% first deposit bonus
  • 20% reload bonus
  • Up to 1000:1 gold leverage
  • 28 days swap-free

Available to the first 1,000 eligible clients. T&Cs apply