How to Set a Trailing Stop Loss on MT5: Desktop, Mobile, and Why It Stops Trailing (2026 Guide)

How to Set a Trailing Stop Loss on MT5: Desktop, Mobile, and Why It Stops Trailing (2026 Guide)

The desktop clicks for an MT5 trailing stop, what to do on the mobile app, why the trail dies when the terminal closes, and how wide to set it in points.

Quick answer

To set a trailing stop loss on MT5, open the Trade tab on the desktop terminal, right-click the open position, choose Trailing Stop, and pick a distance in points or use Set custom level. The trail activates once the trade's profit in points reaches that distance, then moves the stop loss behind price and never moves it back. It runs inside your terminal rather than on the broker's server, so it stops moving when MT5 is closed, and the official mobile help documents only stop loss and take profit on an open position.

To set a trailing stop loss on MT5, use the desktop terminal: open the Trade tab in the Toolbox, right-click the open position, choose Trailing Stop, and pick one of the preset distances or click Set custom level and type your own. The distance is in points, so on a five-digit EUR/USD quote, 300 points is 30 pips. On the MT5 mobile app you will not find the same menu; the official Android and iPhone help pages describe modifying a position as changing its stop loss and take profit, and nothing more.

The menu is the easy part. What catches people is where the trail lives. A normal stop loss sits on your broker's server. An MT5 trailing stop runs inside the terminal on your computer, and when you shut the laptop it stops moving. This guide covers the desktop steps, what the trail does tick by tick, the workarounds for mobile, the point-and-pip math that makes the presets useless on gold, the reasons the stop sometimes refuses to move, and a worked EUR/USD example with three trail widths on the same price path.

How to set a trailing stop loss on MT5 desktop, step by step

You need an open position or a pending order first. A trailing stop in MT5 attaches to one of those two things and cannot exist on its own.

  1. Open the Toolbox. Press Ctrl+T, or use View, then Toolbox. Click the Trade tab. Your open positions and pending orders are listed there.
  2. Put a normal stop loss on the position. Double-click the position (or right-click, Modify or Delete), enter a stop loss price, and click Modify. This step matters more than it looks, and the next section explains why.
  3. Right-click the position and choose Trailing Stop. A submenu opens with a list of preset distances in points.
  4. Pick a distance, or click Set custom level. The custom option opens a box where you type any number of points. MetaTrader's help describes the choice as selecting "the desired value of a distance between the Stop Loss level and the current price."
  5. Check the Journal tab. Each time MT5 moves your stop, it writes an entry to the journal, so this is where you confirm the trail is working.

To turn the trail off, open the same submenu and choose None. The Delete All option in that submenu switches off trailing stops on every open position and pending order at once, which is useful before you close the terminal on purpose, because it makes the state of each position obvious.

All of the above is from the MetaTrader 5 help page on opening and managing positions. The help does not list the preset values in its text, only in a screenshot, and brokers' builds can differ, so look at your own menu rather than trusting a number from a forum post.

What the trailing stop actually does once it is on

The MT5 trail does nothing at first. Per the MetaTrader 5 general concepts page, "as soon as the profit in points becomes equal to or larger than the indicated level," the terminal sends a command to place the stop loss at that distance from the current price. From then on the stop loss moves with price in your favor, and if profit shrinks, the order is left where it is.

Four consequences follow from that rule.

The trail does not protect you until the trade is in profit by the full distance. With a 300-point trail on a long EUR/USD bought at 1.08500, nothing happens until the bid reaches 1.08800. If price falls straight from your entry, the only thing standing between you and a large loss is the ordinary stop loss you set in step 2. Traders who skip that step and rely on the trail alone have an unprotected position until the trade moves in their favor.

The first move of the trailed stop lands at breakeven. When profit equals the trail distance, a stop placed that same distance behind price sits exactly at your entry. With a 300-point trail, the first stop placement is 1.08500 on a 1.08500 entry. Every later move locks in more.

It moves on a timer, one position at a time. The help states the trail cannot fire more than once every 10 seconds for a position. If you hold several positions on the same symbol with trails, MT5 processes one of them per tick, starting with the most recently opened. In a fast move, your stop can lag price by more than the distance you set.

One trail per position or pending order. If you set a trail on a pending order and it fills while you already hold a position on that symbol, the order's trail overwrites the position's trail. The help names an exception when the new deal is opposite in direction and equal or smaller in volume, so check the Trade tab after any pending order fills.

Why the trailing stop stops when you close MT5

This is the detail most people learn by losing money. The help page puts it plainly: the trailing stop "is executed in the trading platform rather than on the server like Stop Loss," and "it will not work, unlike the above orders, if the platform is off. In this case, only the Stop Loss level set by the Trailing Stop will trigger."

A laptop with its lid half closed on a dark desk, a glowing red stop line frozen on the screen behind a price line that keeps climbing past it.
The stop loss stays on the broker's server when MT5 closes, but the trail that moves it lives in your terminal and freezes where it last was.

Read the second sentence carefully, because it is also the good news. Whatever stop loss price the trail had reached is a real stop loss order on the broker's server. Close the terminal with your stop trailed up to 1.08850 and that stop still fires at 1.08850. What you lose is the ratchet: if price runs another 100 pips overnight, your stop stays at 1.08850 and gives most of it back on a reversal.

A thread on r/Metatrader titled "Didn't realize MT5 trailing stops work differently from normal stops" describes the same discovery, and the top reply names the cause: the two features sit next to each other in the menus, so closing MT5 after setting both "would seem like a completely reasonable thing" to do. Another reply suggests the test worth doing: put a demo trade into profit with a trail on, disconnect the terminal, and look at what stays on the position. Ten minutes on a demo account will show you exactly which part survives.

The same logic covers anything that takes the terminal offline: a laptop going to sleep, Windows applying an update overnight, a lost internet connection, or the broker's server dropping your session. In each case the stop loss already on the server stays live, and the trail stops moving it until the terminal reconnects.

How to set a trailing stop loss on MT5 mobile

MetaQuotes' help for the MT5 Android app says "modification of the current position implies changing its Stop Loss and Take Profit levels," and the iPhone help uses almost the same sentence. Neither page mentions a trailing stop. If you have been hunting through the long-press menu on your phone for one, the documented app has no such option to find.

A phone on a dark table showing a trade with only two editable price fields, one red and one green, while a ghosted ladder of rising stop lines floats unreachable above it.
The documented MT5 mobile modify screen sets a stop loss and a take profit, so on a phone the trail is either manual or runs somewhere else.

That leaves three ways to trail a stop when you trade from a phone.

Trail it by hand. Long-press the position, choose Modify, and move the stop loss to a new price. On the iPhone you can also set stop loss and take profit from the chart in Advanced Mode, by price, pips, or currency. Manual trailing is slower, but it has one advantage the automatic trail lacks: you can move the stop to a chart level, such as the latest swing low, instead of a fixed distance. The worked example below compares the two.

Set the trail on a desktop terminal that stays on. A trailing stop set on your home PC keeps working as long as that PC runs MT5 and stays connected, even while you watch the trade on your phone. The phone is a second window onto the same account; it is not the terminal that holds the trail. If the PC sleeps, the trail stops, whatever your phone shows.

Use an Expert Advisor that trails the stop. An EA running in a terminal can modify the stop loss on its own schedule, by a fixed distance, by ATR, or by swing points. That code still needs a terminal that is running, which brings up hosting.

Keeping the trail alive: VPS options and their limits

MetaQuotes sells a built-in virtual hosting service that runs a copy of your terminal in a data center. The MQL5 VPS page pitches it for "uninterrupted operation of robots," with plans listed from 15 USD per month on a monthly term down to 10 USD per month on a 12-month term, and a 24-hour free trial.

Check what it moves before you pay. The MetaTrader 5 help on virtual hosting migration says a full migration copies "account connection data, as well as all open charts, signal copying parameters, running Expert Advisors and indicators, and email settings." Trailing stops are not on that list, and the same page says "charts without Expert Advisors are ignored." Our reading of the help is that a terminal trailing stop set with the right-click menu stays on your own machine and does not travel to the built-in VPS. If you want the trail running in the cloud, it has to be an EA running on a migrated chart. Test this on a demo account before trusting it with a funded one, because the documentation does not settle it either way.

The other route is a general-purpose Windows VPS that you rent yourself. You log in remotely, run the full MT5 terminal there, and set the trailing stop with the normal right-click menu. The terminal never closes, so the trail keeps working. You pay for the server and you are responsible for its updates and restarts, and a restart takes the trail down exactly as a laptop lid would.

Points, pips, and why the presets are wrong for gold

MT5 measures the trail in points, and a point is the smallest price step the symbol is quoted in. The MQL5 symbol properties reference defines SYMBOL_POINT as the "symbol point value," which you can see in the terminal by right-clicking the symbol in Market Watch and opening its Specification.

What a point is worth depends on how many digits your broker quotes:

  • EUR/USD at five digits (1.08500): one point is 0.00001, a tenth of a pip. A 300-point trail is 30 pips.
  • USD/JPY at three digits (150.250): one point is 0.001, again a tenth of a pip. 300 points is 30 pips.
  • XAUUSD at two digits (2650.45): one point is 0.01, one cent. 300 points is a 3.00 move in the gold price.

The trap is the third line. A 300-point trail that sits 30 pips behind EUR/USD sits 3 dollars behind gold, and gold's normal bar range on most intraday timeframes is far larger than that. Check it against the 14-period ATR on your trading timeframe: if the trail in price units is smaller than one ATR, ordinary noise inside a single bar can close the trade. A preset picked by habit from forex trading is the most common reason an MT5 trail on gold or an index CFD closes almost as soon as it activates. If you trade gold, our XAUUSD stop loss calculator guide works through the dollar math per lot.

One r/Metatrader poster got tired of MT4's "pip-based trailing stop" and had a replacement coded, and MT5's built-in trail has the same design. A fixed distance ignores what the market is doing: a 30-pip trail is loose in the Asian session and tight around a central bank decision. That is a real limit of the built-in tool, and the main reason traders move to EAs or manual trailing.

"Invalid stops" and other reasons the trail does not move

When the trail looks dead, the cause is usually one of these.

The trade never reached activation. Profit has to equal or exceed the trail distance before anything happens. A 500-point trail on a trade that peaked 420 points in profit never fired. The Journal tab will show no modifications.

The terminal was off or disconnected. Covered above. Check the time of the last journal entry against when your laptop went to sleep.

The stop sits inside the stops level. Brokers set a minimum distance between the current price and any stop loss. MetaTrader's Market Watch specification help defines the stops level as a "channel of prices (in points) from the current price, inside which one can't place Stop Loss, Take Profit and pending orders," and says an order placed inside it gets the "Invalid Stops" message. A trail narrower than the stops level asks for exactly that, so every modification is refused. Open the symbol's Specification and set the trail wider than the stops level, with room for the spread.

The freeze level. The MQL5 reference defines SYMBOL_TRADE_FREEZE_LEVEL only as "distance to freeze trade operations in points." Some brokers set it to zero, others do not. When it is set, your broker can refuse modifications while price is close to the order, which can make a tight trail skip a move right when you want it.

Ten-second throttling. The trail updates at most once every 10 seconds per position. On a spike, price can run well past where you expected the stop to be before the next update.

Two positions, one symbol. MT5 processes one trailing position per tick on a symbol, starting with the newest. With several trailed positions on the same pair, the older ones update less often.

How wide should the trail be?

No single distance is right, because the trail's job depends on the market's normal swing. Too tight, and routine pullbacks close you early. Too loose, and the trail activates late and gives back most of the move. The way to see it is to run several widths over the same price path.

A staircase of glowing red stop markers climbing behind a rising price line, with one marker too close to the line being knocked off by a small wobble and another far below left behind.
Trail width decides whether ordinary pullbacks close the trade early or a reversal takes back most of the gain.

Here is an illustrative EUR/USD long. Entry is 1.08500, the regular stop loss is 1.08200 (300 points, 30 pips, below entry), and the path is invented for the example to show the mechanics. It is not a backtest and the outcomes below say nothing about which width works in general. To keep the arithmetic simple, assume each bar reaches its high before its low.

Bar High Low 300-point trail after the bar
1 1.08560 1.08420 not active, stop 1.08200
2 1.08680 1.08540 not active, stop 1.08200
3 1.08830 1.08640 active, stop 1.08530
4 1.08910 1.08760 1.08610
5 1.08890 1.08700 1.08610
6 1.09080 1.08850 1.08780
7 1.09150 1.08960 1.08850
8 1.09040 1.08900 1.08850
9 1.09010 1.08820 stopped at 1.08850

The trade reaches 330 points of profit on bar 3, which clears the 300-point activation, so MT5 places the stop at 1.08530. Each new high drags the stop up 300 points behind it. Bar 7's high of 1.09150 pulls the stop to 1.08850, and bar 9's dip to 1.08820 takes it out. The result is 35 pips of profit on a trade that peaked at 65.

A 300-point trail on an illustrative path: it activates on bar 3, ratchets up behind each new high, and exits at 1.08850 for 35 pips.

Now run the same bars with two other widths, extending the path by two bars (bar 10: high 1.08950, low 1.08700; bar 11: high 1.08880, low 1.08520).

A 150-point trail activates on bar 2, when the high of 1.08680 is 180 points in profit, and places the stop at 1.08530. Bar 3's high of 1.08830 pulls it to 1.08680, and bar 3's own low of 1.08640 takes it out. Result: 18 pips, and the trade is gone before the move that followed.

A 600-point trail needs price at 1.09100 to activate, which happens only on bar 7. The stop goes to 1.08550. Bar 9's dip to 1.08820 does not reach it, so the trade is still open, but bars 10 and 11 slide back and bar 11's low of 1.08520 takes the stop at 1.08550. Result: 5 pips, on a trade that was 65 pips up.

Same path, three trail widths: the tight trail exits on the first pullback and the loose one gives back nearly all of the move.

On this path the middle width did best, but swap the path and the order changes. A steady trend with shallow pullbacks rewards the tight trail; a choppy one punishes it. What carries over is the method for picking a starting width:

  1. Measure the noise. Put a 14-period ATR on the timeframe you trade and convert it to points.
  2. Start wider than one ATR. A trail narrower than one bar's typical range gets hit by that range. Two to three ATR is a reasonable place to start testing, and your journal should decide where you end up.
  3. Check the stops level. The trail has to be wider than the symbol's stops level plus the spread, or MT5 will be refused.
  4. Make the first stop match the risk you sized for. The trail does not cover the period before activation, so the regular stop from entry is what your position size should be built on. Our stop loss in forex guide covers sizing the lot from that distance.

Fixed-distance trail or moving the stop to structure

The MT5 trail follows a fixed number of points. Many traders trail by structure instead: on a long, after each new higher low forms, they move the stop to just under that low. On the path above, bar 6's new high confirms bar 5's low of 1.08700 as a higher low, so the stop moves to 1.08690, one pip under it. No later bar clears bar 7's high, so no newer swing low is ever confirmed and the stop stays there until bar 11's low of 1.08520 takes it, for 19 pips. That is one invented path, so read the 19 as arithmetic, not as a verdict on the method.

Structure trailing has two practical advantages on MT5. It works from the mobile app, because it is a manual Modify, and it does not depend on a terminal staying on, because every new stop is a server-side stop loss the moment you confirm it. The cost is attention: you have to check the chart at each new swing.

The general mechanics and failure modes of trailing stops across platforms are in our trailing stop loss guide, and where the first stop should go is covered in where to place a stop loss.

The risks a trailing stop does not remove

A stop loss on MT5, trailed or not, closes your position at market when it triggers. MetaTrader's help says that if the market operation cannot be executed when the stop loss activates, "it will trigger again at the next tick." In a fast market or over a weekend gap, the next available price can be well past your stop, so the stop sets where the exit starts, and the price you get can be worse.

Leverage makes that matter more. The CFTC's forex fraud advisory warns that "margin trading can make you responsible for losses that greatly exceed the dollar amount you deposited" and that the forex market "is volatile and carries substantial risks." A trailing stop changes where you exit in a normal market. It does not cap the loss in an abnormal one, and it does nothing at all if the terminal holding it is off. Size every position from the regular stop and the account risk you have chosen, as our risk management guide lays out.

Common mistakes

  • Setting only a trailing stop. Before activation, the trail does nothing. Always set a regular stop loss from entry first.
  • Closing the laptop and assuming the trail is running. It is not. Only the last stop loss level the trail placed stays live on the server.
  • Using a forex preset on gold or indices. 300 points is 30 pips on EUR/USD and 3 dollars on two-digit gold. Convert the trail to price and compare it with ATR.
  • Trailing inside the stops level. The broker refuses the modification and the stop does not move. Read the symbol's Specification.
  • Expecting the built-in VPS to carry the trail. The migration list covers charts with EAs, signals, and settings. Use an EA for the trail, or keep a terminal running elsewhere.
  • Judging a trail width on one trade. One path will crown any width. Log the exits over many trades before you change it.

FAQ

How do I set a trailing stop on MT5 mobile?

The official Android and iPhone help pages describe modifying a position as changing its stop loss and take profit, with no trailing option. On a phone you can move the stop loss by hand with Modify, or watch a trade whose trail is set on a desktop terminal or VPS that stays running.

Does the MT5 trailing stop work when the platform is closed?

No. The trailing stop runs in the trading platform, according to MetaTrader's help, so it stops working when the platform is off. The last stop loss price it set stays on the server and can still trigger.

Is the MT5 trailing stop in points or pips?

Points. On a five-digit forex quote, 10 points make one pip, so 300 points is 30 pips. On two-digit gold, one point is one cent, so 300 points is a 3-dollar move.

Why is my MT5 trailing stop not moving?

The usual causes are a trade that has not yet reached the activation profit, a terminal that was closed or disconnected, a trail distance inside the broker's stops level, or the 10-second update limit during a fast move. The Journal tab shows every modification MT5 made.

Can I put a trailing stop on a pending order in MT5?

Yes. A trailing stop can be attached to an open position or a pending order. When the order fills, its trail replaces the trail on any existing position in that symbol, with an exception for an opposite deal of equal or smaller volume.

Does the MetaTrader VPS keep my trailing stop running?

The migration help lists account details, charts with running Expert Advisors, indicators, signal settings, and email settings, and says charts without EAs are ignored. Trailing stops are not on the list. To trail in the cloud, use an EA that manages the stop, and test it on a demo account first.

What is a good trailing stop distance on MT5?

There is no fixed answer. Measure the 14-period ATR on your trading timeframe, start the trail wider than one ATR, keep it above the stops level plus spread, and adjust from your own trade log.

From the chart to the trail

The trail distance and the first stop both come from the chart: how far price normally swings, and where the trade idea is proven wrong. Quant AI reads a chart screenshot and marks the support and resistance levels it finds, which gives you candidate stop prices and a sense of the swing size before you type a number into MT5. Whether the level is real, how wide to trail, and how much to risk stay your call, and no stop on any platform removes gap risk.