How to Read an MT5 Stop-Out Line in the Journal
Reading your MT5 stop-out line removes the mystery from a liquidated account. Learn how to decode the Journal's raw server data to pinpoint exactly why your trade was closed.
This article
8sections 15min
- 01 What You'll Learn, minute 2, about 1 min
- 02 What Does an MT5 Stop-Out Line in the Journal Look Like?, minute 2, about 2 minThe MT5 Journal stop-out line looks like a string of raw server data detailing your exact account financials at the millisecond of…
- 03 Why Does the MT5 Journal Differ from Trade History?, minute 4, about 2 minThe Journal records raw, uneditable client-server socket events as they happen, while the Trade History tab aggregates finalized, completed…
- 04 How Does MT5 Choose Which Position to Liquidate First?, minute 6, about 2 minBy default, the MT5 server closes the open position carrying the largest floating loss first until your margin level recovers above the…
- 05 Was Your Stop-Out Caused by Spread Widening or Price Action?, minute 8, about 2 minBy cross-referencing the execution price in your Journal against historical tick data, you can prove whether adverse price movement or a…
- 06 Preventing Liquidation: Calibrating Leverage and Margin Distance, minute 10, about 3 minYou can prevent liquidation by sizing your positions so that your margin level stays comfortably above 500%, giving your equity enough room…
- 07 Conclusion, minute 13, about 1 minReading your MT5 stop-out line in the Journal removes the mystery from an account wipeout, converting an emotional loss into forensic…
- 08 Frequently Asked Questions, minute 13, about 2 minMargin level in MT5 is the percentage ratio of your account equity to your used margin (Equity ÷ Margin × 100). It serves as the primary…
An MT5 stop-out line in the Journal is an automated liquidation message formatted as: 'stop out #ticket buy/sell volume symbol at price, balance: X, equity: Y, margin: Z, margin level: N%'. It triggers when your equity drops to the broker's threshold, logging raw server data to confirm the forced termination of your position.
Staring at a wiped-out trading account is a gut punch. But before you blame the broker, the market, or bad luck, you need to look at the math. Your MT5 Journal holds the exact forensic proof of why your trade was killed, down to the millisecond. By learning how to read this raw server data, you can stop guessing what went wrong and start fixing your risk management. Here is exactly how to decode that dreaded stop-out line and prevent it from happening again.
What You'll Learn
- What Does an MT5 Stop-Out Line in the Journal Look Like?
- Why Does the MT5 Journal Differ from Trade History?
- How Does MT5 Choose Which Position to Liquidate First?
- Was Your Stop-Out Caused by Spread Widening or Price Action?
- Preventing Liquidation: Calibrating Leverage and Margin Distance
- Frequently Asked Questions
What Does an MT5 Stop-Out Line in the Journal Look Like?
The MT5 Journal stop-out line looks like a string of raw server data detailing your exact account financials at the millisecond of liquidation. It is not just a notification; it is the mathematical receipt of your account's insolvency.
Deconstructing the Journal Syntax and Order Parameters
When a stop-out occurs, the server fires a specific string of text into your terminal's log. For illustration, it looks like this: 2026.10.15 14:30:12.456 stop out #12345678 buy 1.00 EURUSD at 1.08500, balance: 1000.00, equity: 250.00, margin: 500.00, margin level: 50.0%

Let's break down the anatomy of this log string:
- Timestamp: The exact server time (down to the millisecond) the closure was executed.
- Ticket ID: The unique identifier (
#12345678) for the specific position being liquidated. - Direction and Volume: Whether it was a
buyorsell, and the lot size (1.00). - Symbol and Price: The asset traded (
EURUSD) and the exact price at which the server forced the exit (1.08500).
Deciphering Equity, Margin, and Margin Level Percentage
The second half of the stop-out line is a financial snapshot captured at the exact moment of execution. This is where you find out why the trade was closed.
Your balance reflects your closed trades, but your equity shows your real-time account value including floating losses. The margin is the funds locked up to hold the position. The most critical number is the margin level percentage. This is calculated as: Equity ÷ Margin × 100.
If your broker's stop-out threshold is 50%, and your equity drops to half of your used margin, the server automatically pulls the plug. You can find these logs by opening the Toolbox (Ctrl+T), navigating to the 'Journal' tab, or by digging into your hard drive at AppData/Roaming/MetaQuotes/Terminal/[Instance ID]/logs to review historical text files. Understanding these metrics is just as crucial as knowing how to check your Free Margin before trading to avoid "Not enough money" errors.
Why Does the MT5 Journal Differ from Trade History?
The Journal records raw, uneditable client-server socket events as they happen, while the Trade History tab aggregates finalized, completed transactions for your account statement.
Server-Side Execution Logs vs. Client-Side Account Records
Think of the MT5 Journal as a flight data recorder. It logs every single connection attempt, price quote error, and automated server-forced close trigger. It functions as an uneditable communication stream. If your internet disconnected right before a massive price drop, the Journal will show the disconnect, the subsequent price gap, and the server-side stop-out message that fired while your terminal was offline.
Your Trade History tab, on the other hand, is just your bank statement. It shows the end result—a closed trade with a negative profit—but it strips away the forensic context of how the trade was closed.
Locating DEAL_REASON_SO in the MT5 History Tab
If you look at a liquidated trade in your History tab, you might notice the order comment says [so]. Behind the scenes, MT5 categorizes this trade using an internal enumeration called DEAL_REASON_SO.
Pro Tip: If you are using an automated strategy or copying trades, it is vital to know whether your EA closed the trade or the broker's server did.

If your EA's internal logic failed and the broker had to step in, the History tab will flag it with DEAL_REASON_SO. However, the Journal provides the actual mathematical proof of your account solvency at that moment. This distinction is especially important when you are trying to review connector activity in MT5 History after an automated bot goes rogue.
How Does MT5 Choose Which Position to Liquidate First?
By default, the MT5 server closes the open position carrying the largest floating loss first until your margin level recovers above the stop-out threshold.
Margin Call Warnings vs. Automated Stop-Out Thresholds
Traders often confuse a margin call with a stop-out. A margin call is simply a warning. When your margin level drops to a specific threshold (often 100%), your MT5 terminal balances turn red. You can no longer open new positions, but your existing trades remain active.
A hard stop-out is the execution phase. As mandated by regulators like the Financial Conduct Authority (FCA), retail CFD accounts must be closed out when equity falls to 50% of the required margin. When that barrier is breached, the server does not ask for permission; it acts immediately to prevent your account from going into a negative balance.
The Largest Floating Loss Liquidation Algorithm
If you have five open trades and your margin level hits 50%, MT5 does not close all five trades at once. The server prioritizes liquidation based on a specific algorithm.
- It scans your open tickets.
- It identifies the single position with the largest floating unrealized loss.
- It terminates that specific ticket.
- It instantaneously recalculates your total margin level.
If closing that massive loser frees up enough margin to push your margin level back above 50% (for illustration, up to 65%), the server stops. The remaining four trades stay open. If the margin level is still at 48% after the first closure, the server immediately targets the next largest loser, firing another stop-out line into your Journal until the account is mathematically safe.
Was Your Stop-Out Caused by Spread Widening or Price Action?
By cross-referencing the execution price in your Journal against historical tick data, you can prove whether adverse price movement or a sudden spread spike caused your liquidation.
Forensic Analysis of Rollover Spreads and Overnight Swaps
Many traders wake up to a stopped-out account, look at a daily chart, and see that the price never crossed their stop-loss level. They immediately assume the broker manipulated the feed. In reality, the culprit is usually midnight spread expansion.

During daily rollover (typically 21:00–23:00 server time, or 5 PM EST), banking liquidity dries up. The spread between the bid and ask price can widen massively. If you are holding a short position, you are closed at the Ask price. If the Ask price inflates by 40 pips due to low liquidity, your floating loss spikes, your equity plummets, and a stop-out triggers—even if the Bid price on the chart barely moved.
Similarly, triple swap Wednesday can be a silent killer. If you are heavily leveraged, the sudden deduction of three days' worth of overnight financing charges can drain your equity directly into the stop-out zone.
Cross-Referencing Tick History Against Journal Timestamps
To figure out exactly what happened, you need to conduct a step-by-step verification:
- Open your MT5 Journal and find the exact millisecond timestamp of the stop-out.
- Note the execution price logged by the server.
- Open your MT5 Market Watch, right-click, and select 'Ticks'.
- Export the broker's tick data for that specific minute.
Compare the Journal's stop-out price against the actual bid/ask spread recorded on the server tick chart. If the Ask price spiked to match your stop-out price precisely at 23:59:59 server time, you were liquidated by rollover spreads. Understanding how symbol sessions and server time impact liquidity is crucial for surviving overnight holds.
Preventing Liquidation: Calibrating Leverage and Margin Distance
You can prevent liquidation by sizing your positions so that your margin level stays comfortably above 500%, giving your equity enough room to absorb drawdowns.
How Leverage Directly Contracts Pip Distance to Stop-Out
Leverage is a double-edged sword that dictates exactly how much breathing room your trades have. There is an inverse relationship between your leverage and the adverse pip movement required to exhaust your usable equity.
For illustration, imagine you have a $1,000 account and you buy 1 standard lot of EUR/USD at 1.0850.
- At 1:100 leverage: Required margin = (1.0 × 100,000 × 1.0850) ÷ 100 = $1,085. You cannot even open this trade without a margin call.
- At 1:500 leverage: Required margin = (1.0 × 100,000 × 1.0850) ÷ 500 = $217. You have $783 in free equity.
While higher leverage frees up equity, it tempts traders into opening massive positions. If you open 3 lots with 1:500 leverage, your margin is $651. Your remaining equity is $349. At $30 a pip, an adverse move of just 11 pips will trigger a stop-out.

Warning: Never size your positions based on maximum margin usage. Calculate your lot size so your margin level remains above 500% during normal market conditions.
Managing Liquidation Buffers with Configurable Account Controls
Intermediate traders must take control of their account parameters to build wider liquidation buffers. This means optimizing your trading environment to match your specific risk profile.
Using a customizable platform like NX Flex, you can adjust your leverage between 1:50 and 1:500. Because this can be changed later in the client portal and applies to new positions, you maintain ongoing flexibility. If you are a client who cannot pay or receive swap, you can toggle swap-free terms on. This applies for up to 14 days per position. If a position stays open longer, the swap is charged for every night it was open, then daily until it closes.
Furthermore, if you are being stopped out by spread widening, you can configure your account for a 0.0 pip markup (where only the raw market spread applies). By tightening your spread and managing your leverage, you directly increase the distance between your entry price and the server's stop-out threshold.
Conclusion
Reading your MT5 stop-out line in the Journal removes the mystery from an account wipeout, converting an emotional loss into forensic trading data. By analyzing the exact timestamp, margin level percentage, and execution price logged by the server, you can pinpoint precisely whether adverse price movement, midnight spread expansion, or swap accumulation triggered your liquidation.
Moving forward, conduct an immediate post-mortem on your log entries whenever a margin event occurs, cross-referencing your tickets with historical tick data. Take full control over your risk parameters by sizing positions so your margin level remains well insulated from broker stop-out thresholds. Utilizing customizable platforms like NX Flex allows you to set account leverage from 1:50 to 1:500; if you cannot pay or receive swap, you can also select swap-free options.
Trading CFDs involves risk of loss; better terms do not change market risk.
Frequently Asked Questions
What does margin level mean in MT5?
Margin level in MT5 is the percentage ratio of your account equity to your used margin (Equity ÷ Margin × 100). It serves as the primary health indicator of your account; if this percentage drops to your broker's stop-out threshold (such as 50%), the server will automatically close your trades.
Why did my trade close automatically in MT5?
Your trade closed automatically because your account equity fell below the broker's mandatory stop-out threshold, triggering a forced liquidation to prevent a negative balance. You can verify this by checking your MT5 Journal for a log entry detailing your margin level at the exact millisecond of closure.
How do I find my MT5 Journal logs?
You can view your MT5 Journal logs directly in the platform by pressing Ctrl+T to open the Toolbox and clicking the 'Journal' tab. For historical data from previous days, you can locate the raw text files on your computer by navigating to AppData/Roaming/MetaQuotes/Terminal/[Your Instance ID]/logs.
Can widened spreads cause a stop-out?
Yes, widened spreads can cause a stop-out even if the bid price on your chart hasn't moved. If you hold a short position and the ask price spikes due to low liquidity during the midnight rollover, your floating loss will temporarily increase, which can drain your equity and trigger liquidation.
Contents
