Margin level is equity divided by used margin times 100. While closures run, equity shifts with spread, floating loss, swap and commission, and used margin falls as each position closes, so the next margin level is recalculated.
Which positions may close after a stop out
The least profitable open trades close first. This applies to both buy and sell orders, regardless of order type. Closure continues until margin level is restored above the stop-out threshold.
Profitable positions can remain open if the closures restore margin level above 20%. In the help example, the losing position closed and the profitable one stayed open. Positions are not treated differently by direction.

Which case matches your account?
Read all cases and sources
Used margin $77.55, equity $15.51, several open positions
Margin level is 20.00%. The least profitable position closes first. After that closure used margin falls, margin level is recalculated, and if it rises above 20% the profitable positions stay open. Check the new equity and used margin in the terminal to confirm the recalculated level.
Trading with a Deposit Bonus and expecting a terminal margin call alert
The help article notes the margin call notification is not shown in the terminal when trading with a Deposit Bonus. Calculate margin level from equity and used margin yourself and watch for the 20% stop out, which can close the least profitable positions without that alert. Confirm equity and margin fields in the platform.
What changes the margin level while the broker closes trades
Margin level = (Equity / Used Margin) × 100. Equity moves with floating profit or loss, spread, swap and commission, and with deposits or withdrawals. Used margin changes when positions open or close.
During a stop out, each closure cuts used margin, which mechanically lifts the margin level if equity holds. Closing at the spread also affects equity. Recalculation happens after each closure, so the order of closures matters.

Stop out and margin call at a glance
| Item | Value |
|---|---|
| Stop out level (all listed account types, MT4/MT5) | 20% |
| Margin call level | 40% |
| Formula | (Equity / Used Margin) × 100 |
| Order closed first | Least profitable open trade |
| Terminal margin call alert with Deposit Bonus | Not received in the terminal |
The 20% stop out and 40% margin call thresholds
JustMarkets sets stop out at 20% for Standard, Cent, Pro and Raw Spread on MetaTrader 4 and MetaTrader 5. Margin call is at 40%.
The South African professional account page lists margin call 40%, stop out 20% and maximum leverage 1:3000 for Pro and Raw Spread. Leverage is an account condition, not the stop-out percentage.
Worked margin example: least profitable position closed
From the help example: used margin $77.55, equity $15.51. Margin level = (15.51 / 77.55) × 100 = 20.00%. The losing USDCAD order closes, leaving used margin $27.55.
Recalculated margin level = (15.51 / 27.55) × 100 = 56.30%. That is above 20%, so the profitable EURUSD order remains open. These dollar figures are the help article's example.

What can differ by account and what to verify
With a Deposit Bonus, the help article notes clients do not receive the margin call notification in the terminal. Watch the account margin level directly instead of relying on the alert.
Check your account type in the terminal. The threshold is 20% across the listed types, but confirm the displayed margin call and stop out before relying on the figures.