Platforms · reviewed October 2026

How to Set a Stop Loss in MT5 (Server-Side)

A stop loss in MetaTrader 5 is an instruction attached to an order, and where that instruction lives decides whether it works. Placed with the entry, it is held by the broker and survives a closed terminal. Added by a script or managed by an expert advisor, it may exist only while the software is running. This guide covers both paths, how to confirm which one you are using, and the six errors that stop a stop from being accepted.

Key takeaways

  • Enter the stop in the order ticket before sending the order. That is what makes it server-side.
  • Adding a stop after entry also creates a server-side order, provided the platform sends it — check the trade tab, not just the chart.
  • An expert advisor that closes a position at a price is not a stop. It is a program that must be running.
  • Invalid stops are usually a stop level, freeze level or price-precision problem, not a platform fault.
  • Verify by closing the terminal: a server-side stop remains visible on the server and in the position record.

The word "stop loss" covers two different mechanisms that behave differently in exactly the situation where the difference matters. One is an order held by the broker's server. The other is a rule inside a program that is watching the price. Both are called a stop loss in the interface, and only one of them exists after a disconnect.

For a prop account the distinction is not academic. An unprotected position after a connection drop is the most common cause of a drawdown breach that the trader cannot explain, because from their side they had a stop and the account still lost more than planned.

Two kinds of stop, one word

MechanismWhere it livesSurvives terminal closedSurvives disconnect
Stop loss set on the orderBroker serverYesYes
Stop loss added later via the platformBroker serverYesYes
EA closing the position at a priceTerminal processNoNo
EA trailing logicTerminal processNoNo
Manual close when the level is hitThe traderNoNo

The first two rows are real stops. The last three are risk management behaviour that depends on something running, and a prop rule that requires a stop is satisfied only by the first two. A trader who "always uses a stop" but implements it as an EA exit has no stop in the rule's sense.

The test is simple and worth doing once: open a demo position with a stop, close the terminal, and reopen it. If the stop is still on the position, it is on the server. If the position is open with no stop, or the platform tries to re-attach one, the implementation was local.

Placing a stop with the order

This is the only method that guarantees protection from the instant the position exists. In the order ticket, the stop loss field is sent with the entry instruction, so the broker receives both together.

  1. Open the order ticket with New Order (F9), and choose the instrument, volume and direction.
  2. In the Stop Loss field, enter the price, not the distance. Some builds accept a distance in points if you type a number and the field shows a unit selector — check which one you are using.
  3. Confirm the risk against the position size: the platform shows the loss in account currency at the bottom of the ticket. If it does not match the intended risk, stop and recalculate.
  4. Send the order. The position appears in the Trade tab with the stop already listed.

Two details cause most of the trouble here. The first is entering a price in the wrong direction: a sell position needs a stop above the entry, and a buy needs one below. MT5 will reject an inverted stop rather than accept it, which is helpful, but the rejection message is not always clear.

The second is the price precision. If the instrument has five digits and the stop is entered with four, the value can be interpreted as a different price entirely. Use the chart's drag handle or the +/- buttons to set the level rather than typing a rounded number.

Adding a stop after entry

Adding a stop to an open position is a server-side modification, not a new local rule. In the Trade tab, right-click the position, choose Modify or Delete, and set the stop loss field. The platform sends a modification request to the broker.

ActionWhat is sentWhat can go wrong
Right-click → Modify or DeleteA server modification requestRejected if the price is too close to the market
Drag the stop line on the chartThe same request, triggered by the dragDrag may not register if the chart is not in one-click mode
Set via the position's context menuThe same requestSilent failure if the platform is disconnected

The third row is the dangerous one. If the terminal is disconnected, the modification does not reach the server and the position stays unprotected, while the interface may still show a line on the chart. The confirmation is a change in the position record — the stop column in the Trade tab should update. If only the chart changed, nothing was set.

A practical habit is to add the stop before the position is in profit, and to confirm it in the Trade tab rather than on the chart. That single check removes most of the ambiguity.

Modifying and trailing a stop

Moving a stop is the same request as adding one. Two constraints apply: the new level must be beyond the minimum stop distance, and on a buy the stop cannot be moved above the current market price.

The built-in Trailing Stop function is a client-side tool in the standard MetaTrader implementation. It adjusts the stop when the price moves in your favour, and it runs in the terminal. That means it stops trailing when the terminal closes, although the last stop it set remains on the server. This is an important distinction: trailing stops placed by the built-in tool do not disappear, they simply stop following.

ToolRuns whereEffect when the terminal closes
Built-in trailing stopTerminalLast stop remains; no further trailing
EA trailing logicTerminal, inside the EANo further trailing; stop stays where it was last set
Manual modificationServerUnchanged

Because the built-in trail leaves the last stop in place, it is safer than an EA exit that closes on a condition. The failure mode is a stop that is too far away, not a position with no stop at all. For a prop account that is the difference between a wider loss and an unprotected one.

Confirming it is server-side

Verification takes a minute and should be done once per platform and broker combination, because the behaviour can differ between them.

  1. Open a demo position with a stop loss.
  2. Close the terminal completely, not just the window.
  3. Reopen it and log in. The position should show the stop without the platform re-attaching one.
  4. Check the History tab after the position closes: the order record should show the stop as part of the position.
  5. Optionally, disconnect the internet while a position is open and move the price through the stop on a demo with an active feed — the broker should close it.

The fourth step is the one that matters for a review. If a firm later asks whether a position had a stop, the history is the evidence, and a stop that was set on the server appears there as an order-level field rather than as a separate close.

A quick structural check is also possible: on a server-side stop, the position's stop column in the Trade tab shows a price, and modifying it produces a confirmation dialog. If the interface shows a dotted line that cannot be modified, it is a drawing rather than an order.

Six reasons a stop is rejected

Message or symptomCauseFix
Invalid stopsStop is inside the broker's minimum distanceMove the stop beyond the stop level shown in the symbol specification
Invalid pricePrecision or direction errorUse the chart handle; check the stop is on the correct side
Off quotesPrice moved between request and executionRetry, or use a stop-limit order if the platform supports it
No changesThe requested stop equals the current oneNothing to fix; the stop is already set
Market closedAttempt during a session breakSet the stop when the market is open
Trade disabledThe firm has disabled modification at that momentContact support; do not trade unprotected

The first row is by far the most common, and it has a strategic implication. During a news release, brokers often widen the minimum stop distance and the freeze level, which means a stop that was valid ten minutes ago may be rejected now. That is one more reason to be flat before the window rather than trying to adjust protection inside it.

The freeze level is related but distinct: it is the distance within which a position cannot be modified or closed at all. If the price is inside the freeze level, the platform refuses the request regardless of the stop distance. Traders usually meet this for the first time at the worst possible moment, which is why the symbol specification is worth reading before a volatile week.

Stops inside an expert advisor

An EA can place a real server-side stop, and it can also simulate one. The difference is whether it sends a stop as part of the order or monitors the price and closes the position.

ImplementationCode patternProtection when offline
Stop sent with the orderOrder send with a stop price parameterYes
Stop added after entryA modification request in the same tickYes, once the request succeeds
Stop simulated by the EACompare price to level, then closeNo
Trailing handled by the EAModification requests on each tickLast stop remains, trailing stops

The third row is the one to eliminate. Any EA that closes a position on a price condition should also send a real stop at entry, so that the simulated logic is an optimisation on top of a guaranteed floor. A simple rule for reviewing any purchased EA: if the code never sends a stop price and never sends a modification request, it has no server-side protection at all.

The fourth row is acceptable. A trailing implementation that sends modification requests leaves the last stop on the server, so a disconnect freezes protection at the last level rather than removing it. The position may give back more than intended, but it does not run unhedged to the account floor.

What prop rules require

Most challenge rulebooks do not require a stop loss for every position, but the ones that do check it from the trade history. A position with no stop in the record is a breach even if the trader intended one.

The practical requirements are consistent across firms.

  • A stop must exist at entry, not added after the position is in difficulty.
  • The stop must be held by the broker, not by an EA that may not be running.
  • The stop must be visible in the trade history if the account is reviewed.
  • The stop must not be removed to avoid a loss, which some plans treat as a separate conduct issue.

None of these is difficult to satisfy, and all of them are satisfied by the order-ticket method. The reason traders fail them is not complexity; it is the habit of entering first and adding the stop afterwards, which is exactly the window where a fast move can take the account past its limit.

A five-step routine

  1. Calculate the lot size from the stop distance before opening the ticket.
  2. Enter the stop in the ticket, not after the fill.
  3. Check the displayed loss matches the intended risk.
  4. After the fill, confirm the stop appears in the Trade tab's stop column.
  5. If the platform is disconnected at any point, re-check the position before doing anything else.

Five steps, about fifteen seconds. The routine is worth building into the habit precisely because it is unglamorous: the failures it prevents are not visible until the day they cost an account, and by then the account is gone.

Stops on hedged and netting accounts

How a stop behaves depends on whether the account holds positions separately or nets them into one. The same instruction produces different results on the two models.

ActionHedging accountNetting account
Buy while shortTwo positions, two stopsShort reduced or closed
One stop triggeredThat leg closes; the other staysThe net position closes
Modify a stopApplies to the selected ticketApplies to the single position
Partial closePossible on either legReduces the net volume

The first row is where expectations break. A trader who buys to hedge a short on a netting account does not create a protected pair; they reduce the position, possibly to zero. If the intent was to hold both legs with separate stops, the account cannot express it, and the risk plan has to be rebuilt around one position with one stop.

The second row matters for the same reason. On a hedging account, a stop on one leg does not close the other, so a trader who expected the whole idea to exit may find half the position still open. On a netting account the stop covers the net exposure, which is simpler but leaves no way to protect the legs separately.

Several prop plans prohibit hedging outright, which resolves the ambiguity in one direction. Where hedging is permitted, check both the account model and the plan wording: a plan that permits hedging on a netting account is offering something the platform will not let you do.

Stops with partial closes and multiple positions

Partial closes change the relationship between the stop and the risk. A position of two lots with a stop $500 away risks $1,000; closing one lot halves the risk, but the stop remains a single instruction for the remaining volume.

ActionRisk after the actionStop behaviour
Open 2 lots, stop $500 away$1,000One stop on both lots
Close 1 lot$500Stop still applies to the remaining lot
Move the stop to break-even~$0 plus costsModification applies to the whole remaining position
Open a second position in the same instrumentSum of both stopsTwo independent stops on a hedging account

The fourth row is where the daily loss budget is usually miscalculated. Two positions in the same instrument are two risks, and their sum is what the daily limit sees. A trader who thinks in terms of one trade with one stop will underestimate the day's exposure by the size of the second position.

Partials also interact with a rule that requires a stop at entry. Closing half the position does not remove the stop; it reduces the volume the stop protects. If the plan requires every position to carry a stop, the remaining volume must still have one, and the modification record should show it.

A simple discipline keeps this manageable: before adding to a position, write the total risk including the existing stop, and confirm it still fits the daily budget. Adding is a new decision, not a continuation of the first one.

Stops around news and gaps

A stop is a market order once triggered, which means the fill can be worse than the level. Around scheduled releases, that difference can be several times the intended risk, and no platform setting changes it.

ConditionStop behaviourEffect on risk
Normal liquidityFills close to the levelRisk as planned
Widened spreadFills at the bid or ask, which may be far from the midRisk larger than planned
Gap through the levelFills at the first available price beyond the stopRisk multiples of planned
Inside the freeze levelModification and closure refusedCannot act at all

The third row is why news rules exist. The firm cannot price a gap, so it restricts the periods in which a gap can catch an open position. The trader's equivalent is to reduce size before a release, or to be flat.

The fourth row is the one traders discover accidentally: a stop that is technically set can be un-modifiable while the price sits inside the freeze level, which means the protection is fixed at exactly the moment it might need widening. Checking the freeze level before a volatile week is worth more than adjusting the stop during it.

Neither row is a reason to trade without a stop. A stop that fills badly is still better than a position with no exit condition, because the bad fill has a boundary and the unprotected position does not.

Troubleshooting a stop that did not trigger

A stop that exists but does not execute is rare, and almost always explainable from the platform record. Work through these in order.

SymptomLikely causeWhere to check
The level was touched but nothing happenedThe stop was a chart line, not an orderTrade tab: is a stop price listed?
The stop filled far past the levelA gap or thin liquidityHistory: requested versus filled price
The stop moved without you moving itTrailing stop or an EA modificationJournal: the modification entry and its time
The position closed earlyA margin call, not the stopHistory: the close reason and the margin level
No stop at all after a restartIt was managed locally by an EAJournal: was a stop ever sent to the server?

The fourth row is the one traders misattribute. A position closed by the broker because margin was exhausted is not a stop execution; it is a forced liquidation, and it usually happens at a worse price than the stop would have produced. If the account was carrying several positions, the liquidation may also have closed positions that were not in difficulty.

The fifth row is the definitive test for local management. If a restart leaves the position open with no stop, nothing was ever on the server, whatever the chart showed. That is the case to fix before trading again, because the next disconnect will produce the same outcome with a larger position.

The platform journal records modification requests and executions with timestamps. Reading it once after a surprising close tells you which of these five cases applies, and each case has a different fix.

Two of the five are worth fixing permanently rather than case by case. If the stop was a chart line, the fix is to always use the order ticket. If the stop was managed by an EA, the fix is to require a server-side stop at entry and treat the EA logic as secondary. The other three are market or broker conditions that cannot be fixed, only planned around — by smaller size, wider stops or staying flat.

Common questions

How do I set a stop loss in MT5 before entering?

Open the order ticket with F9, enter the instrument, volume and direction, then type the stop price in the Stop Loss field. The ticket shows the resulting loss in account currency. Sending the order with that field filled places the stop on the broker's server at the same moment as the entry.

Is an MT5 stop loss server-side or client-side?

A stop placed on the order, or added by modifying the position, is a server-side order. A price level drawn on the chart is not an order at all. An EA that closes a position at a price is client-side logic and stops working if the terminal closes.

Why does MT5 say invalid stops?

Usually because the stop is inside the broker's minimum stop distance, or because the price precision is wrong. Check the symbol specification for the stop level and the freeze level, and set the level with the chart handle rather than typing a rounded price.

Does the built-in trailing stop keep working when the platform closes?

No. The built-in trail runs in the terminal, so it stops adjusting when the terminal closes. The last stop it set remains on the server, which means the position stays protected at that level rather than unprotected.

How can I check that my stop is really on the server?

Place a demo position with a stop, close the terminal completely, and reopen it. If the stop is still shown on the position without the platform re-attaching it, it is held by the server. The history tab should also record it as part of the position.

Can I remove a stop loss after placing it?

Yes, by setting the stop field to zero, but check the plan terms first. Some prop firms treat removing a stop to avoid a loss as a conduct issue, and the trade history will show the removal.

What is the freeze level?

The distance from the current price within which positions cannot be modified or closed. It is a broker setting, not a platform one, and it often widens around major releases. If the price is inside the freeze level, a stop modification is refused until it moves out.

Does a stop loss guarantee the price I set?

No. A stop becomes a market order when triggered, so the fill can be worse than the level, sometimes substantially after a gap. Only a guaranteed stop, where offered, fixes the price, and those are rarely available on evaluation accounts.

Want the rulebook traded for you?

Flat $220, any firm, any account size, retries covered. We read the terms before accepting the job.

Related reading

MetaTrader 5 is a product of MetaQuotes and is named for identification only. ElitePropX is an independent service and is not affiliated with, endorsed by or sponsored by any proprietary trading firm. Platform behaviour and broker settings vary; verify stop levels and freeze levels with your broker. Trading involves substantial risk of loss.

Pass your challenge today@voraspas