Trailing Stop Loss in MT5: How It Works, Plus Partial Close

A trailing stop loss is a stop loss that follows the price at a set distance as a trade moves your way, and never moves back. In MetaTrader 5 it runs inside your terminal, so it stops updating when the platform is closed or offline.

Module 9 · Lesson 2 of 5

What you'll learn

This lesson is part of the MT5 Power User module and builds on the stop loss and take profit lesson. New to the platform? Start with how to use MetaTrader 5.

What is a trailing stop loss?

A trailing stop loss is a stop loss that moves automatically behind the price, at a distance you choose, while a trade moves in your favour. If the price turns against you, the stop stays put. If the price reaches it, the position closes like any stop loss.

On a buy, the stop trails below the price and only moves up. On a sell, it trails above and only moves down.

Key terms

How does a trailing stop work in MT5?

In MetaTrader 5, a trailing stop does nothing until the trade's profit in points reaches the distance you set. Then it places the stop loss that distance behind the current price, and moves it each time the profit grows. If the profit shrinks, the stop stays where it is.

MetaQuotes' help on basic trading principles sets the rules:

How do you set a trailing stop in MetaTrader 5?

To set a trailing stop in MetaTrader 5, right-click an open position in the Trade tab, choose Trailing Stop, and pick a distance or set a custom level in points. The MetaTrader 5 help on executing trades describes the same steps.

  1. Open the position with a normal stop loss set.
  2. In the Toolbox, open the Trade tab and right-click the position.
  3. Choose Trailing Stop, then pick a distance or choose Set custom level and type it in points.
  4. Leave MT5 running and check the Journal for each move.
  5. To switch it off, choose Trailing Stop and select None.

Until the trade is far enough in profit, your original stop loss sets the exit.

How do you choose a trailing stop distance?

Choose a trailing distance by weighing two effects: a short trail stays close to the price but ordinary swings reach it, while a long trail survives more noise but gives back more of a move before it closes. Skilled traders size the distance against recent volatility.

One common yardstick is the average true range (ATR), the average size of recent candles, explained in the Bollinger Bands and ATR lesson. If ATR is 30 pips, a 10-pip trail is smaller than an average candle, so ordinary movement can reach it. Traders often set the distance as a multiple of ATR. ATR measures recent movement, so recheck it as volatility changes.

Market shape matters too. A trail has room to follow a market moving steadily in one direction, while in a sideways market ordinary swings reach it more often.

The money at stake is still stop distance × pip value × lots, so a wider trail on the same position puts more at risk.

What does a trailing stop do on a EURUSD trade?

A trailing stop follows price at a fixed distance once the trade is in profit by that distance, so it locks in gains as price rises but never moves back. You buy 0.40 lot of EURUSD at 1.08500, worth $4 per pip (a standard lot is about $10 per pip).

The pip value calculator works out the pip value for other pairs.

Prices are Bid prices; results are before costs.

Step Price Stop loss
Entry 1.08500 1.08200, the original stop
Profit reaches 30 pips 1.08800 1.08500, trail activates
Price rises 1.08900 1.08600
Price falls back to the stop 1.08600 Closed: +10 pips × $4 = +$40

The other outcome: the price never rises 30 pips and falls to 1.08200. The trail never activated, so the original stop closes the trade: −30 pips × $4 = −$120.

How do you partially close a position in MT5?

To partially close a position in MT5, right-click it in the Trade tab, choose Close Position, type a smaller volume in the Volume field and click Close. The rest of the position stays open, as MetaQuotes' help on executing trades describes.

  1. Right-click the position and choose Close Position.
  2. Type the volume to close, for example 0.20 of 0.40.
  3. Click Close, then check the remaining volume in the Trade tab.

The closing deal must respect the symbol's minimal volume and volume step, listed in its specification in Market Watch. With a 0.01 minimum and step, you can close 0.20 of 0.40, but a 0.01-lot position cannot be split.

On the MT5 mobile app, long-press the position in the Trade tab and choose Close position; MetaQuotes' Android help on managing positions says a position can be closed in full or in part.

In a hedging account the position's stop loss and take profit stay unchanged after a partial close. In a netting account a smaller opposite deal reduces your one position. The netting vs hedging lesson explains both.

Worked example: adding a partial close

Same trade. At 1.08800 you close 0.20 lot: +30 pips × $2 = +$60 before costs. The other 0.20 lot keeps the trailing stop at $2 per pip.

What the price does next Full 0.40 lot kept 0.20 lot closed at 1.08800
Never reaches 1.08800; stop hit at 1.08200 −$120 −$120 (no partial close happened)
Rises to 1.08900, stop hit at 1.08600 +$40 +$60 + $20 = +$80
Rises to 1.09500, stop hit at 1.09200 +$280 +$60 + $140 = +$200
Reaches 1.08800, then gaps through the 1.08500 stop to 1.08400 −$40 +$60 − $20 = +$40

A partial close, also called scaling out, banks part of the move and keeps the rest of the position working; the trade-off is a smaller share of any further move.

A buy at 1.08500 with its stop at 1.08200; when price reaches 1.08800 the stop steps up to 1.08500 and 0.20 of the 0.40 lot is closed, at 1.08900 the stop moves to 1.08600, and price then falls back to that stop
The trailing stop moves only after price has gone the trail distance your way, then follows it up and never moves back; the partial close takes 0.20 lot off at 1.08800.

How does a stop loss differ from a trailing stop?

A fixed stop loss stays at the level you set until you move it, while a trailing stop moves that level behind the price as the trade improves. A partial close is different again: a one-off action that takes part of the position off the market. Each only carries out a decision you made earlier.

Fixed stop loss Trailing stop Partial close
What it does Closes the whole position at your level Moves the stop behind the price Closes part of the volume now
Moves by itself? No Yes, only in your favour No, it is a single action
Where it runs in MT5 Broker's server Your trading platform Executed once as a deal
Works with MT5 closed? Yes No, the last level stays Not applicable
Trade-off Can fill past your level in a gap Normal swings can hit it Gives up part of a further move

How do you get the most from a trailing stop?

Get the most from a trailing stop by sizing the distance to volatility, keeping MetaTrader 5 running and connected, and knowing that a triggered stop executes as a market order. Set those three right and the trail moves your stop up each time the price makes a new high on a buy, or down on a sell.

Moving a stop to your entry price, the break-even stop, is covered in Module 10, Trade Management.

Try it on demo

On a MetaTrader 5 demo account, open a 0.02-lot EURUSD buy with a 300-point trailing stop. Close 0.01 lot and check the remaining volume. Then close MT5 for a few minutes, reopen it and compare the stop level.

—
—
—

—
—

—
—
—
—
—
—

1.10000

Quick check

  1. In MetaTrader 5 on a computer, the trailing stop is run by
  2. You set a 300-point trailing stop on a buy of EURUSD at 1.08500. When does it first move your stop loss?
  3. The price rises to 1.08900 and then falls. Where is the trailing stop from the question above?
  4. You hold 0.40 lot at $4 per pip and close 0.20 lot 30 pips in profit. The closed part made
  5. You close MT5 while a trailing stop is active. What happens?

Frequently asked questions

Does a trailing stop work when MT5 is closed?

No. MetaTrader 5 runs the trailing stop in your platform, not on the server. If the platform is closed or offline, only the last stop loss level it set stays, and it no longer moves.

What is a good trailing stop distance?

A good distance sits outside the instrument's ordinary swings on your timeframe. Many traders set it as a multiple of the average true range, since a trail smaller than a typical candle is easily hit, then check the money at risk.

Can you use a trailing stop on a sell trade?

Yes. On a sell, the trailing stop sits above the price and only moves down as the price falls. If the price rises back to it, the position closes.

Can a trailing stop loss still lose money?

Yes. Until the trade is in profit by the trailing distance, your original stop decides the loss, and a triggered stop can fill worse than its level in a gap.

What does partial close mean in MT5?

Partial close means closing only part of a position's volume, for example 0.20 lot of a 0.40 lot buy, while the rest stays open. In MT5 you type the smaller volume in the Close Position window.

Sources

Practise what you learned

Open an account to use MetaTrader 5. Start on a demo account before risking real money.

Open Account