Stop-Out Buffer Calculator
Measure the equity loss remaining to an entered stop-out threshold using one explicitly selected basis: margin-level percentage, equity money, or free-margin money.
Enter the stop-out scenario
Use the threshold basis and value shown for the exact broker, platform, account type and entity you are checking.
Entered-threshold buffer
Account Margin Health 1.0.0.
How the threshold basis changes the calculation
Equity-money basis: Threshold equity = Entered money level
Free-margin-money basis: Threshold equity = Used margin + Entered money level
MetaTrader documents percentage levels through margin level. Its MT5 tester describes money-mode levels through equity, while the MQL4 reference describes absolute mode through free margin.
The selected basis is therefore part of the input contract. The page never guesses which convention a broker uses.
Assumptions and limits
- The page does not confirm the broker threshold, margin-call setting or platform mode.
- Used margin is held constant even though liquidation, currency conversion, pending orders and position changes can alter it.
- Execution price, spreads, slippage, gaps, commissions and close-out sequence are excluded.
- Touching the entered threshold is a mathematical comparison, not proof of the exact server action or timing.
- A positive buffer is not a safety assurance or recommendation to keep positions open.
Frequently asked questions
- MetaTrader documents percentage levels through margin level, while money mode is described through equity in MT5 testing and through free margin in the MQL4 absolute mode.
- The entered percentage is compared with equity divided by used margin times 100.
- The entered account-currency threshold is compared directly with equity.
- The entered threshold is compared with equity minus used margin.
- It is current equity minus the equity level equivalent to the selected threshold, assuming used margin stays fixed.
- No. It subtracts one entered loss while holding used margin fixed and does not model close-out sequence or changing prices.
- The page cannot verify server rules, execution timing, spreads, gaps, slippage or which position may close first.
- No. It is a conditional arithmetic difference from an entered threshold, not a safety assurance.
Sources and methodology
- MetaTrader 5 Help — Advanced Testing Settings — Official percentage and equity-money descriptions for Margin Call and Stop Out levels.
- MQL4 Reference — AccountStopoutMode — Official percentage-ratio and free-margin absolute calculation modes.
- MQL5 Reference — Account Properties — Official stop-out mode, call level and stop-out level account fields.
Continue margin planning
Verify margin rules with the broker
Confirm the exact platform, broker entity, account type, symbol specification, threshold basis and close-out rules before relying on a margin scenario.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

