Margin level is equity divided by margin used, as a percentage. When it falls to the stop-out level, positions are closed by force, the largest loser first.
Margin level = equity ÷ margin used × 100 %. With no position open it has no value; with positions open, it falls as they lose.
Every account has a stop-out level — 50 % is common. When the margin level reaches it, the broker closes positions by force, starting with the one losing most, until the level recovers. Many brokers also send a margin call warning at a higher level.
01Why a learner should watch it
A stop-out closes a position at the worst moment, at a price nobody chose. A laboratory is the place to see it happen without paying for it: open too large a position, let the replay run against it, and watch the venue close it.
02In Bentrix
A laboratory workbench's stop-out level is fixed when the workbench is made; the venue checks it at every tick, at each market's own price, and closes positions as a broker would. The Journal records each forced close.