How to set stop loss and take profit in MT5 (desktop and mobile)

Quick answer
In MT5 desktop, set Stop Loss and Take Profit in the order window, or later via Trade tab → right-click the position → Modify or delete. You can also drag the SL/TP lines on the chart if "Show trade levels" is on. On mobile, long-press the position in the Trade tab and choose Modify position. Remember: a buy position's stop is checked against the Bid, a sell position's against the Ask, so a widening spread on XAUUSD can trigger a sell stop before the Bid chart reaches it.
A stop loss is the one order every trader should know how to place without thinking. In MT5 it takes a few clicks, but there are details that surprise people on gold: which price triggers the stop, why the platform rejects a stop as "invalid", and why the loss can be larger than planned. This guide covers desktop and mobile step by step.
What stop loss and take profit do
A Stop Loss (SL) closes your whole position automatically if price moves against you to a set level. A Take Profit (TP) closes it when price reaches a target. In MT5 both are always attached to an open position or a pending order.[2]
| Position | SL is placed | TP is placed | Both are checked against |
|---|---|---|---|
| Buy (long) | Below the current Bid | Above the current Bid | Bid price |
| Sell (short) | Above the current Ask | Below the current Ask | Ask price |
Source: MetaTrader 5 Help, trading principles.[2] A buy closes by selling at the Bid; a sell closes by buying at the Ask.
Desktop: set SL/TP when you open a trade
- Press F9 or right-click the chart and choose Trading → New Order.
- Choose the symbol (for example XAUUSD) and the volume.
- Enter Stop Loss and Take Profit. Depending on your settings these are a price or a distance in points from the order price. Leave a field at 0 to not set it.[1]
- Click Buy by Market or Sell by Market, or place a pending order.
Desktop: modify SL/TP on an open position
- Open the Toolbox (Ctrl+T) and go to the Trade tab.
- Right-click the position and choose Modify or delete.
- Enter the new Stop Loss and Take Profit, either as prices or as points from the opening price.
- Click Modify. The button stays inactive until the levels are valid.[1]
Drag levels on the chart
If Show trade levels is enabled (Tools → Options → Charts), your SL and TP appear as lines. Left-click a line and drag it up or down; when you release, the modification window opens so you can fine-tune the price. Dragging is disabled if "Disable dragging of trade levels" is ticked. You can also right-click on the chart and use the Trade submenu to place SL or TP at the cursor price.[1]
Mobile (Android and iPhone)
- New order: in Quotes, tap the symbol and choose New order. Fill Stop Loss and Take Profit. The Android app lets you set these in Price, Pips or an approximate Currency amount, and shows the equivalent in the other modes.[5]
- Modify later: open the Trade tab, long-press the position and choose Modify position. Use − / + or type the values, then tap Modify. Like desktop, the button is disabled until the values are valid.[6]
Menu names can differ slightly between app versions and between Android and iOS.
"Invalid stops": the stops level
Every symbol has a Stops level, a channel in points around the current price inside which you cannot place SL, TP or pending orders. If you try, the server returns "Invalid Stops".[3] In MQL5 this is the symbol property SYMBOL_TRADE_STOPS_LEVEL, "minimal indention in points from the current close price to place Stop orders". There is also SYMBOL_TRADE_FREEZE_LEVEL, a distance within which orders cannot be modified.[4]
Illustrative example: on a 2-digit XAUUSD symbol one point is $0.01. A stops level of 50 would mean your SL or TP must be at least $0.50 from the current price. Many brokers set 0, but some set more, and it can differ by account type. Check Market Watch → right-click XAUUSD → Specification for your account.[3]
Why gold stops can trigger "early"
MT5 charts normally plot the Bid. A sell position's stop is checked against the Ask, which sits above the Bid by the spread.[2] When the spread widens, for example around major US data, at the daily rollover or in thin markets, the Ask can jump up to your stop while the Bid line on the chart stays below it.
| Illustrative sell on XAUUSD | Bid (chart) | Ask | Spread | Stop at 4,028.00? |
|---|---|---|---|---|
| Normal conditions | 4,026.60 | 4,026.90 | $0.30 | Not triggered |
| Spread widens at news | 4,026.60 | 4,028.10 | $1.50 | Triggered (Ask ≥ 4,028.00) |
The same happens in reverse for a buy's take profit, which needs the Bid to reach it. Leave room for the spread when you place stops, especially on short trades and near news.
Slippage and gaps
When a stop triggers, it becomes a market order and closes at the next available price. In a fast market that can be worse than your stop. Over a weekend, or after a sudden event, the market can open beyond your stop, and the fill is at the first price available. A stop limits loss in normal conditions; it does not guarantee a maximum loss. If a market operation cannot be executed, MT5 keeps the order and it triggers again at the next valid tick.[2]
This is why sizing matters more than any single stop. Use the money-at-risk formula in how to calculate XAUUSD lot size in MT5, and keep each trade's risk small, as explained in the 1% risk rule.
A pre-trade stop checklist
- Is the stop on the correct side of price (below Bid for a buy, above Ask for a sell)?
- Is it outside the broker's Stops level?
- Have you allowed for the spread, and for news times?
- Have you calculated the money at risk at this stop with your lot size, and is it within your plan?
- Do you know your broker's pip convention? See what is a pip in gold.
More platform guides are in the MetaTrader section, and the maths of loss limits in Risk management.
Frequently asked questions
Why does MT5 say "Invalid stops"?
Usually because your stop loss or take profit is too close to the current price. Each symbol has a Stops level, a distance in points inside which SL, TP and pending orders cannot be placed. Check it in the symbol's Specification and move the level further away. It can also happen if the SL is on the wrong side of the price.
Why was my sell trade stopped out when the chart never reached my stop?
MT5 charts usually show the Bid price, but a sell position's stop loss is checked against the Ask. If the spread widens, for example around news, the Ask can reach your stop while the Bid line on the chart stays below it.
Can I move my stop loss after opening a trade?
Yes. On desktop use Modify or delete from the position's context menu in the Trade tab, or drag the SL line on the chart. On mobile, long-press the position and choose Modify position. The broker's Stops level still applies.
Does a stop loss guarantee my maximum loss?
No. A stop loss becomes a market order when triggered and fills at the next available price. In fast markets or when the market gaps, for example at the weekly open, the fill can be worse than your stop price.
Should I set the stop in price or in points?
Either works. MT5 desktop lets you enter a price or a distance in points, and the mobile app offers price, pips or an approximate currency amount. Writing the stop as a price and checking the money at risk with the lot-size formula avoids pip confusion on gold.
Sources
- MetaTrader 5 Help: Executing Trades (setting and modifying Stop Loss / Take Profit, managing stop levels from a chart)
- MetaTrader 5 Help: General trading principles, Take Profit and Stop Loss trigger rules
- MetaTrader 5 Help: Market Watch, symbol specification (Stops level)
- MQL5 Reference: Symbol properties (SYMBOL_TRADE_STOPS_LEVEL, SYMBOL_TRADE_FREEZE_LEVEL)
- MetaTrader 5 Android Help: Opening and Closing Positions (Take Profit and Stop Loss modes)
- MetaTrader 5 Android Help: Modifying a Position
Sources were checked on the date shown above. Broker pages, where cited, are examples of published specifications only, not recommendations. Regulator lists change often, so always check the official portal directly.