CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

How to set a trailing stop in MT5 and MT4

This page shows step by step how to set the built-in MetaTrader trailing stop in MT5 and MT4, how to choose the distance, and where its limits are.

Extrade Pakistan editorial team ·

On this page
  1. What a trailing stop is
  2. Why the terminal must stay open
  3. How to set a trailing stop in MT5
  4. How to set a trailing stop in MT4
  5. Choosing the distance
  6. Running the trailing stop on a VPS
  7. Limits and risk
  8. Frequent questions

What a trailing stop is

A stop loss is an order that closes a position at a set price to limit a loss. A trailing stop moves that stop loss behind the price as the trade moves in your favour. It keeps a fixed distance from the current price and never moves back.

If you are new to stop orders, read Stop loss and take profit first.

trailing stopdistanceexit
A trailing stop moves up with the price at a fixed distance and never moves back; the position closes when the price falls to it. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

Why the terminal must stay open

The built-in trailing stop in MetaTrader is client-side. Your terminal on your computer watches the price and sends a new stop loss to the trade server each time the price moves far enough.

What this means in practice:

How to set a trailing stop in MT5

The trailing stop applies to an open position, not to a pending order.

To turn it off, open the same menu and choose None. The current stop loss stays on the server.

How to set a trailing stop in MT4

The steps in MetaTrader 4 are almost the same:

For other differences between the platforms, see MT4 vs MT5.

Choosing the distance

The distance is set in points. A point is the smallest price step of a symbol. On many symbols a pip is made of several points, so check the number of digits in the contract specifications before you type a value.

Things to know:

The Risk management page explains how stop distance and position size work together.

Running the trailing stop on a VPS

A VPS (virtual private server) is a remote computer that runs around the clock. If you run the full MetaTrader terminal on a VPS and set the trailing stop there, it keeps working while your own computer is off.

MetaTrader also offers its own virtual hosting service. Before you rely on it, read its description of what is moved to the hosted terminal. Some traders use an Expert Advisor for trailing instead, because it gives more control, such as trailing only after a set profit or by ATR.

Limits and risk

A trailing stop is still a stop loss. When the price touches it, the position closes at the next available price. In fast markets or at a price gap, the fill can be worse than the stop level. Leveraged CFD and forex trading can lose money fast, and a trailing stop does not remove that risk. You can practise the settings on a demo account first.

Frequent questions

Does the trailing stop work when MT5 is closed?

No. The terminal must stay open and connected. The last stop loss already sent to the server still stays in place.

Can I set a trailing stop on the MT5 mobile app?

The built-in trailing stop is a desktop terminal feature. The mobile apps do not run it.

Can I add a trailing stop to a pending order?

No. It applies only to open positions. Set it after the order is filled. See Pending orders.

Why does my stop loss not move?

The position is not yet in profit by the trailing distance, the terminal is offline, or the trailing stop was set in a different terminal.

Is a trailing stop the same in MT4 and MT5?

Yes, it works the same way in both. Only the window names differ: Terminal in MT4 and Toolbox in MT5.

Related pages