Advertisement IC Markets

Server-side stops vs virtual stops in MT4 and MT5

Compare ECN/Raw spread brokers, analyze execution speeds, report slippage, and evaluate commission structures for high-frequency traders.
Post Reply
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Server-side stops vs virtual stops in MT4 and MT5

Post by Fairman »

Server-side stops vs virtual stops in MT4 and MT5

When you set a stop loss in MT4 or MT5 through the normal order window, the stop is sent to the broker's server and sits there. If your platform crashes or your internet drops, the stop is still active. That's a server-side stop.

Some EAs and trading tools use what's called a virtual or hidden stop instead. The stop isn't sent to the server. The EA watches price itself and sends a close order when price reaches the stop level. The idea is to hide your stop from the broker or other participants.

There are real risks with virtual stops. If your platform, VPS, or internet goes down, the EA can't watch price, and your position has no stop at all. Execution may be slower, because the close order is sent only after the EA sees the price, adding a delay that can mean slippage in fast markets. Some EAs use a backup server-side stop placed further away for exactly this reason.

As for hiding your stop, for most retail size it doesn't make much difference. Your stop isn't large enough to be a target.

I'd use server-side stops by default and only consider virtual stops if there's a specific reason, with a backup stop in place.
It’s Fairman :geek:
Recommended broker for automated trading & scalping IC Markets
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Re: Server-side stops vs virtual stops in MT4 and MT5

Post by Fairman »

A detail people miss: if you use virtual stops, the broker's stop level and freeze level rules don't apply in the same way, because there's no pending order to modify. That can seem like an advantage, but it also means nothing prevents the EA from trying to close at a moment when the market is moving fast and the close gets filled at a much worse price. Server-side stops can also slip in fast markets, but at least they're in the queue from the start rather than waiting for a signal from your machine.
It’s Fairman :geek:
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Re: Server-side stops vs virtual stops in MT4 and MT5

Post by Fairman »

I'd test what happens with a virtual stop EA if you restart the platform mid-trade. Some EAs store the stop level in memory, so after a restart they lose track of where the stop was and the position runs unprotected. Better written ones save state to a file or global variable and pick it back up. It's easy to check on a demo: open a trade, close the platform, reopen it, and see whether the EA still knows its stop. That five minute test can save you from an ugly surprise.
It’s Fairman :geek:
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Re: Server-side stops vs virtual stops in MT4 and MT5

Post by Fairman »

Think about partial closes with virtual stops too. If the EA manages a virtual stop and you partially close the position by hand, the EA might not handle it well. Some EAs track a ticket, and in MT4 a partial close creates a new ticket for the remainder. The EA might lose track of the position and stop managing it. Testing partial closes on a demo with your specific EA saves a nasty surprise. If the EA uses magic numbers to find its trades rather than tickets, it usually copes better, but it still needs testing because some EAs reset their stored stop when the ticket changes.
It’s Fairman :geek:
FXS Prop Desk
Posts: 1689
Joined: Wed Oct 07, 2026 9:52 am

Re: Server-side stops vs virtual stops in MT4 and MT5

Post by FXS Prop Desk »

The difference becomes very important during disconnections. A virtual stop managed by an EA only works while the platform is running and connected. If the computer crashes, the position is unprotected.

Some traders use both: a virtual stop for the actual exit, and a wider server-side stop as a safety net. That keeps the advantage of hiding the stop from the broker, if that is the goal, while still protecting the account in case of problems.
FXS Official Team | The Idea Lab & Strategy
Shadow Trader
Posts: 5594
Joined: Wed Sep 09, 2026 5:19 pm

Re: Server-side stops vs virtual stops in MT4 and MT5

Post by Shadow Trader »

The usual claim is that demo and live run on the same engine, so results carry over. The price feed may be the same, but fills are a different matter, and the gap tends to flatter the strategy.

On demo there is typically no real counterparty behind the order. The server can fill at the quoted price instantly, at the requested size, with no regard for liquidity. Live orders face market depth, requotes, and partial fills when size is large.

Slippage on demo is frequently missing or symmetrical, while live slippage on a fast scalp tends to lean against the trader, because market orders hit the worse side of a moving price. Stops are another place the difference hides: demo stops often fill exactly at the level, while live stops fill at the next available price.

A small edge per trade is hurt most, since it may be smaller than the friction demo ignores.

Treating demo as a test of logic and timing, not of profitability, keeps expectations honest.

How big was the gap when going from demo to live, and which part of it was the biggest surprise?
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Re: Server-side stops vs virtual stops in MT4 and MT5

Post by Fairman »

A middle option I like is placing the hard stop on the server at a wider level and managing the tighter exit by hand or through the EA. That way, if something fails, the position still has a limit on the loss. The server stop also covers you if the VPS restarts or the connection drops for a few minutes. It's a compromise between hiding the stop and being protected, and in practice it covers most of the risk that people worry about with virtual stops. The extra cost is a slightly worse worst case, but the protection against failures is usually worth far more than that.
It’s Fairman :geek:
Post Reply