Skip to content

How to Verify an Expert Advisor’s Stop Loss in MT5

Find the S/L in an MT5 order or position, work out when it appeared, and distinguish a broker-side stop from an exit managed by the EA.

Admin
How to Verify an Expert Advisor’s Stop Loss in MT5 · 22 November 2026

On a demo account, read the S/L column in the Trade tab. To see whether protection was present at entry, match the opening order to the journal. An input named StopLoss describes what the EA is configured to attempt. The S/L stored on the accepted order or position shows what the broker received.

Follow one trade from the order to the exit

  1. Record the MT5 build, EA file, preset, broker symbol and order ticket. On a buy, verify that the stop is below the entry price and the target above it. The directions reverse for a sell. Check the actual fill if the market gapped.
  2. In History, switch to Orders and locate the opening order. For a pending order, check S/L before activation and on the resulting position. For a market entry, match the deal with the original order and any later modifications.
  3. Use Experts and Journal to build the timeline. Record the order number, fill time and first accepted modification. At the exit, compare the reason with the fill price. Look for stop loss triggered when verifying a broker-side stop exit.

An exit level stored only inside the EA depends on the terminal and its connection. MT5’s standard trailing stop also needs the terminal to perform further updates. The last SL already accepted by the broker remains in place. Gaps and slippage can cause the execution price to differ from the stop level. MetaTrader 5 help on order types and stops.

What two US30 tests recorded

We tested the catalog files on RoboForex-ECN’s .US30Cash. Both tests used 0.01 lots, $2,000 starting capital and 2026 market history through November 20. Both ran in real-tick mode. MT5 reported 99% real tick quality for Scalping Index Pro and 100% for Range Reaper. These historical runs let us inspect order handling.

EA and setting Entries SL at entry SL added later No SL recorded
Scalping Index Pro · StopLoss=500 12,300 0 10,818 1,482
The Range Reaper · US30 45 45 0 0

Scalping Index Pro. With StopLoss=500 loaded, order #2 filled at 13:41:48 on January 13. The first position modified line with SL 49,539.1 arrived at 13:41:53, five seconds later. The journal recorded neither an initial nor a later SL for 1,482 of the 12,300 entries.

Range Reaper. On January 7 at 15:30:00, the tester accepted a Buy Stop at 49,581.4 with SL 49,514.4. The order filled at 15:31:36, at 49,581.7. The protection was already on the pending order and the execution price differed from the requested price. Times are in broker server time.

When S/L is blank or the server rejects the request

Check the broker’s exact symbol, session and limits on setting or updating stops. Inspect Invalid stops, Market closed and any rejected modification separately. If there is no confirmation, record the stop as unverified and check the next entry on demo. To report the problem to a developer, include the timestamp, order ticket and the nearby log lines. MT5 symbol properties. Strategy Tester guide · Range Reaper demo monitoring.

Share this article:

Comments (0)

Sign in to leave a comment

No comments yet

Be the first to leave a comment!

More EA guides and tests

EA reviews, demo trading results and MQL5 notes.

All blog articles