Trailing stop loss in forex: how it works, methods and pitfalls
A trailing stop follows price as a trade moves your way and never moves back. Here is how the main methods work, where the order actually lives, and why MetaTrader trailing stops stop working when you close the terminal.
- A trailing stop moves your stop loss in the direction of a winning trade by a set rule and never moves it back against you.
- The main methods are a fixed pip distance, a multiple of ATR, and trailing behind swing highs or lows; each trades protection against room to breathe.
- In MetaTrader 4 and 5 the built-in trailing stop runs in your terminal, so it stops adjusting when the terminal is closed; cTrader runs trailing stops on the server.
- A trailing stop is still a stop order: in a gap or fast market it can be filled worse than its level.
- Trailing too tightly is the most common mistake, because normal pullbacks close good trades early.
A trailing stop loss is a stop that moves with a trade as it goes in your favour, staying a set distance (or a set rule) behind price, and never moving back. If you buy EUR/USD with a 30-pip trailing stop, the stop rises 1 pip for every pip price rises above its best level so far, and stays where it is when price falls. If the market then reverses by 30 pips from its high, the stop is hit and the trade closes, keeping whatever gain was locked in.
It is one of the simplest ways to protect open gains without fixing a take-profit level in advance. It also has some practical traps that catch beginners, the biggest being that in MetaTrader the built-in trailing stop only works while your trading terminal is open and connected.
What a trailing stop does
An ordinary stop loss sits at a fixed price until you move it. A trailing stop is a rule for moving it automatically. The order types guide covers stops in general; this guide is about trailing them.
Two properties define every trailing stop:
- It only ratchets one way. For a long (buy) position the stop can move up but never down. For a short (sell) position it can move down but never up.
- It follows the best price reached, not the current price. The distance is measured from the highest price since entry for a long, or the lowest for a short. Once price pulls back, the stop waits.
The purpose is to let a winning trade keep running while gradually reducing the amount you could give back. The cost is that the stop will often close a trade during an ordinary pullback that later resumes in your direction. Every trailing method is a compromise between those two outcomes.
A trailing stop is not a replacement for an initial stop. The initial stop goes where the trade idea is invalidated, as the stop placement guide explains, and the position is sized from that distance. Trailing only starts to matter once the trade has moved in your favour.
Worked example: a fixed-pip trailing stop on a long
This is an illustrative example with round numbers.
You buy 0.5 lots of EUR/USD at 1.1000 with an initial stop at 1.0970, 30 pips away. On EUR/USD one standard lot is worth about $10 per pip, so 0.5 lots is about $5 per pip and the initial risk is 30 × $5 = $150. You add a 30-pip trailing stop.
- Price rises to 1.1020. The best price is now 1.1020, so the stop moves to 1.0990. Your risk is now 10 pips, or $50.
- Price rises to 1.1030. The stop moves to 1.1000, your entry price. The trade can no longer lose on price alone, though spread and commission still apply.
- Price climbs to 1.1065. The stop follows to 1.1035, locking in 35 pips, about $175.
- Price pulls back to 1.1045. The best price is still 1.1065, so the stop stays at 1.1035.
- Price falls to 1.1035 and the stop triggers. The trade closes at or near 1.1035 for a gain of about 35 pips, around $175 before costs.
If price had instead pulled back to 1.1040 and then rallied to 1.1150, the stop would have kept rising behind it. The trailing stop does not know where the move will end; it simply gives the market 30 pips of room from the best price reached.
The profit and loss calculator converts pip moves like these into account currency for any pair.
Worked example: a short trade
The mirror image applies to a short. Suppose you sell GBP/USD at 1.2700 with a 40-pip trailing stop, so the initial stop is 1.2740.
- Price falls to 1.2650. The lowest price so far is 1.2650, so the stop moves down to 1.2690.
- Price falls further to 1.2610. The stop moves to 1.2650, locking in 50 pips.
- Price bounces to 1.2640. The stop stays at 1.2650.
- Price rises to 1.2650 and the stop is hit.
One detail matters for shorts: a short position is closed by buying, so it is stopped out on the ask price, not the bid you see on most charts. If the spread widens, for example around the daily rollover or a news release, the ask can reach the stop even when the chart's bid line never does. The spread widening guide explains when that tends to happen.
The main trailing methods
Fixed-pip trailing
The stop follows the best price by a fixed number of pips, as in the examples above. This is what the built-in trailing stop in most platforms does.
Strengths: simple, easy to set, and predictable. Weaknesses: the market does not move in fixed pip amounts. A 30-pip trail might be sensible on EUR/USD during a quiet week and far too tight on GBP/JPY during a volatile one. A fixed distance also ignores market structure, so the stop can end up sitting just above an obvious support level where it is likely to be hit.
If you use a fixed trail, base the distance on something: a recent typical range for the pair and timeframe, rather than a round number that feels right.
ATR-based trailing
The Average True Range, or ATR, measures how much a market typically moves per bar over a recent period, commonly 14 bars. An ATR trail keeps the stop a multiple of ATR behind price, for example 2 × ATR.
Example: on a daily chart, EUR/USD's 14-day ATR is (illustratively) 70 pips. A 2 × ATR trail is 140 pips behind the best price. If volatility rises and ATR increases to 90 pips, the trail would widen to 180 pips, although most traders only ever let the stop ratchet in the direction of the trade, never back.
Strengths: the distance adapts to current conditions, so the stop is roughly as likely to be hit by noise in quiet and busy markets. Weaknesses: you need to recalculate it, usually once per bar, and the built-in trailing stop in most platforms cannot do this, so it means a manual update, an indicator plus discipline, or an automated script.
Common multiples run from about 1.5 to 3 × ATR. Smaller multiples protect more of the gain and get stopped out more often; larger ones give more room and give back more at the end.
Structure-based trailing
Instead of a distance, the stop is moved behind each new swing point. In an uptrend, each time price makes a new higher low and then moves above the previous high, the stop is raised to just below that new higher low, with a buffer for spread. In a downtrend, the stop is lowered to just above each new lower high.
Example: you are long AUD/USD on a 4-hour chart. Price forms a higher low at 0.6620 and then breaks above the previous high. You move the stop to 0.6610, 10 pips below the swing low. A few days later price forms a new higher low at 0.6680 and makes another new high, so the stop moves to 0.6670.
Strengths: the stop sits where the trend would actually be in question, which is the same logic as the initial stop. Support and resistance and swing points are visible to everyone, so the reasoning is easy to review afterwards. Weaknesses: the stop moves in steps, sometimes a long way behind price, and identifying swing points involves some judgement. It also has to be done by hand or with custom code.
The chandelier exit
The chandelier exit is a specific ATR-based trail. For a long trade, the stop is set at the highest high of a recent period minus a multiple of ATR; for a short, at the lowest low plus a multiple of ATR. A commonly quoted setting is the highest high of the last 22 bars minus 3 × ATR. The name comes from the idea of the stop hanging down from the high, like a chandelier from a ceiling.
It behaves much like the ATR trail above but anchors to the highest high of a window rather than the best price since entry. It is used mainly by trend-following swing traders; the trend-following guide covers the wider approach.
Indicator and time-based trails
Some traders trail behind a moving average (for example, closing the trade if price closes below the 20-period moving average) or tighten the stop after a set number of bars if the trade has not moved. These are variants of the same idea: a mechanical rule that moves the exit as the trade develops.
Where the trailing stop actually runs: terminal-side vs server-side
This is the part most beginners never check, and it matters.
A normal stop loss attached to a position is stored on the broker's trading server. If you close your laptop, it stays in place and triggers whether you are online or not. A trailing stop is different, because something has to keep recalculating and moving the stop. Where that logic runs depends on the platform.
MetaTrader 4 and MetaTrader 5: trailing runs in your terminal
In both MT4 and MT5, the built-in trailing stop (set by right-clicking a position and choosing Trailing Stop) is handled by your client terminal, not the broker's server. The terminal watches price and sends a modification to the server each time the stop needs to move. If the terminal is closed, or loses its connection, the trailing stop stops adjusting. The last stop-loss level the terminal sent stays on the server and will still trigger, but it will not move any further until the terminal is running and connected again.
In practice that means:
- If you set a 30-pip trailing stop in MT4 or MT5, then shut down your computer for the night, the stop is frozen wherever it was when you logged off.
- If your internet drops for an hour during a strong move, the stop does not follow price during that hour.
- The same applies to trailing logic inside an expert advisor: an EA only runs while the terminal hosting it is running.
This is why traders who rely on trailing stops in MetaTrader often run the terminal on a virtual private server that stays online around the clock. The MT4 vs MT5 guide and the expert advisors guide cover the platform side.
cTrader: trailing runs on the server
In cTrader, trailing stops are handled on the server side, so the stop continues to trail when your platform is closed. That is a meaningful difference for anyone who holds positions overnight. The cTrader and TradingView guide covers the platform more generally.
TradingView and other platforms: check your setup
When you trade through TradingView or a broker's own web or mobile platform, how trailing stops work depends on how the broker has implemented them. Some run on the server, some in the client, and some brokers do not offer them through every interface. The TradingView vs MetaTrader 5 guide notes that order handling differs between broker integrations.
Before relying on a trailing stop overnight, check your platform's documentation or ask the broker one direct question: does the trailing stop keep moving when I am logged out? Then test it on a demo account: open a position, set a trail, log out, and see whether the stop has moved when you log back in after price has moved.
Moving the stop to break-even
A break-even move is a one-off step rather than a continuous trail: once the trade has moved a set distance in your favour, you move the stop to the entry price so the trade can no longer lose on price.
Common triggers are a move equal to the initial risk (1R), or price clearing a nearby structure level. Example: you buy USD/JPY at 150.00 with a 40-pip stop at 149.60. When price reaches 150.40 (1R in your favour), you move the stop to 150.00.
A few points to keep in mind:
- Break-even is not cost-free. You still pay the spread, commission and any swap, so a stop exactly at entry closes at a small loss. Some traders set it a pip or two beyond entry to cover costs.
- Moving to break-even early increases the number of stopped-out trades. A trade that pulls back to entry before moving on is common. If your break-even rule is too eager, you will turn a meaningful share of eventual winners into scratches, which changes your win rate and your average win. The risk-reward guide shows how those two numbers interact.
- It removes the risk of a full loss, not of all loss. A gap through the break-even stop can still produce a loss, as described below.
Many traders combine the two: a break-even move at 1R, then a trailing method from there.
Gaps and slippage
A trailing stop is still a stop order. When it triggers it becomes a market order and is filled at the next available price, which in a fast market or a gap can be worse than the stop level. The slippage guide covers why.
Example: you are long EUR/USD and your trailing stop has reached 1.1020 by Friday's close, with price at 1.1050. Over the weekend there is unexpected news and the market opens on Monday at 1.0980. There was no trading between 1.1050 and 1.0980, so your stop cannot be filled at 1.1020. It is filled at or near the opening price, around 1.0980, which is 40 pips worse than the stop and a loss rather than the locked-in gain you expected.
The same thing can happen intraday around major releases, when prices can jump several pips between quotes. The gap and weekend risk guide explains how to size positions with this in mind. Some providers offer a stop type that is filled at its exact level even through a gap, usually for an extra charge; check the terms if that matters to you.
How trailing stops fit different trading styles
Trailing stops suit some styles better than others, as the scalping vs day trading vs swing trading guide explains in more detail.
- Scalpers rarely trail, because their targets are only a few pips and there is no room for a meaningful trail behind them.
- Day traders often use a break-even move and sometimes a short trail on a lower timeframe, closing everything before the end of the day.
- Swing traders are the heaviest users, often trailing behind daily swing points or a multiple of daily ATR. They are also the most exposed to the MetaTrader terminal issue, because their positions are open overnight and at weekends when the terminal is most likely to be closed.
Position sizing still comes first
A trailing stop changes how much of a gain you keep. It does not change how much you risk at the start. Size the position from the initial stop distance, using the position sizing guide or the position size calculator, and only then think about how to trail.
A common error is to open a larger position than the initial stop allows on the grounds that "the trailing stop will protect it". The trailing stop only starts protecting once price has moved in your favour; until then, the full initial risk is in play.
Common mistakes
- Trailing too tightly. A trail tighter than the normal pullbacks of the timeframe you trade will close most trades on routine noise. If many of your trailing exits are followed by price moving on in your direction, the trail is probably too tight for the market you are trading.
- Assuming a MetaTrader trailing stop works offline. It does not keep moving when the terminal is closed or disconnected. Use a server-side platform, a terminal kept running on a VPS, or update the stop manually.
- Using the same fixed distance for every pair. Thirty pips means something very different on EUR/CHF than on GBP/JPY. Scale the distance to the pair's typical range, or use ATR.
- Trailing from the first pip. Starting the trail immediately at full tightness effectively replaces your well-placed initial stop with a tighter one. Let the trade move first, or start trailing only after a break-even trigger.
- Moving the stop backwards. Widening a trailing stop when price approaches it defeats the purpose. A trailing stop that moves both ways is just a stop you keep moving.
- Forgetting the bid/ask side. Long stops trigger on the bid and short stops on the ask. Wider spreads at rollover or news can trigger a short's trailing stop that looks untouched on the chart.
- Ignoring gaps. A locked-in gain is only locked in if the stop can be filled near its level. Over weekends and major news, it may not be.
- Never testing the rule. Different trailing methods produce very different results on the same entries. The backtesting guide explains how to compare them using realistic costs.
Frequently asked questions
Does a trailing stop work when MT4 or MT5 is closed?
No. In MetaTrader 4 and 5 the built-in trailing stop is run by the client terminal, so it only moves while the terminal is open and connected. The last stop-loss level it set stays on the server and will still trigger, but it will not trail any further until you reopen the terminal. Traders who need it to run continuously often keep the terminal on a VPS.
Is a cTrader trailing stop server-side?
Yes, cTrader handles trailing stops on the server, so they continue to adjust when your platform is closed. For any other platform or broker integration, check the documentation or test it on a demo account, because implementations differ.
What is a good trailing stop distance?
There is no single right distance. It should be wider than the normal pullbacks on the timeframe you trade. Many traders use a multiple of ATR, often between 1.5 and 3, or trail behind swing points, because both adapt to the market rather than using a fixed number of pips for every pair and condition.
Should I move my stop to break-even?
It is a choice with trade-offs rather than a rule. Moving to break-even removes the risk of a full loss on that trade (gaps aside), but it also increases the number of trades closed at entry that would have gone on to reach the target. Test your break-even rule on past trades before relying on it.
Can a trailing stop be filled at a worse price?
Yes. When it triggers it becomes a market order, so in a fast market or a gap it can be filled beyond its level. A weekend gap can turn a locked-in gain into a loss.
Is a trailing stop the same as a take-profit?
No. A take-profit closes the trade at a fixed target in your favour. A trailing stop has no fixed target; it follows price and closes the trade only when price reverses by the trailing amount. Some traders use both, with the take-profit as a ceiling and the trailing stop protecting gains on the way there.
Not investment advice. This is general information and education, written without knowledge of your circumstances. It is not a recommendation to buy or sell any instrument. Past performance is not a reliable indicator of future results. Trading leveraged products carries a high risk of losing money. Risk warning