Home > Blog > Make Margin Level Your Main EA Risk Metric

Risk ManagementMargin Level

Make Margin Level Your Main EA Risk Metric

Published: 2026-11-29Read time: about 3 min
⏱ This article reflects information as of its publish date. EA performance figures (PF, DD, annual return) change with live trading and re-validation — check the latest on the EA pages. See the latest EA results →
Contents (5)
  1. Watch Margin Level, Not Balance
  2. How It Works: Margin Level and Stop-Out
  3. How to Calculate "How Many More Adverse Moves Can It Take?"
  4. Daily Check List
  5. Limitations and Cautions
  6. Summary

Watch Margin Level, Not Balance

Here is the conclusion first. On an account running an EA, the first number you check each day should be the margin level, not the balance.

The balance only reflects the results of closed trades. With an EA that holds floating losses for long periods without closing them, the balance can keep climbing while the account moves closer to stop-out. Balance does not decide forced liquidation. What decides it is the ratio of equity to required margin, which is the margin level.

This article shows how to use margin level to calculate how many more adverse moves your account can withstand. It also covers what this number cannot tell you.

Recommended Broker Comparison →

🎁 Download Free EA

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

* Privacy strictly protected. You can unsubscribe at any time.

How It Works: Margin Level and Stop-Out

Margin level is calculated as follows.

  • Margin level = Equity ÷ Required margin × 100

Equity is "balance + floating profit or loss". As floating losses grow, the margin level falls even if the balance stays the same. When it drops to the level set by your broker, a stop-out is executed. That level differs by broker and account type, so be sure to check the terms of your own account. We have summarized the conditions for each broker in our FX broker comparison.

How different can the balance and the equity including floating profit or loss look? Here are some figures from our backtest fact sheets. "Balance DD" is the decline measured only on closed profit and loss, and "Equity DD" is the decline on an equity basis, including floating losses.

EA (MT5 backtest)Balance DDEquity DD
GOLD KING v67.45%91.3%
GOLD NEURON9.7%78.2%
DONCHIAN ENGINE7.31%10.8%

GOLD KING v6 has a balance DD of 7.45%, but its equity DD is 91.3%. If you only watched the balance curve, you would not notice how deep it goes. By contrast, DONCHIAN ENGINE shows a small gap between balance DD and equity DD, which indicates a design that does not carry floating losses for long. The point is not which is better, but that the metric you need to watch is different.

Here is one forward figure as well. This comes from a forward test on an Exness demo account, not results from a live account with real money. It is also separate from the backtests in the table above. On this demo account, GOLD NEURON's DD has reached 39.38%.

How to Calculate "How Many More Adverse Moves Can It Take?"

Looking at the margin level figure on its own does not make it easy to judge whether you are in danger. So convert it into a "number of adverse moves". The figures below are hypothetical, for illustration only, and are not related to any particular EA.

  1. Find the equity at stop-out Required margin × stop-out level. If the required margin is 100,000 yen and the stop-out level is 50%, this is 50,000 yen.
  2. Find your buffer Current equity − the amount from step 1. If equity is 1,000,000 yen, the buffer is 950,000 yen.
  3. Decide the amount lost in one adverse move For an EA with an SL, use "the loss per stop-out of a trade". For an EA without an SL, use "the increase in floating loss if price moves against you by your assumed range". Let's say 20,000 yen.
  4. Divide 950,000 yen ÷ 20,000 yen gives a buffer of 47 adverse moves.

Compare this number with the maximum consecutive losses in that EA's backtest. For example, DONCHIAN ENGINE had a maximum of 11 consecutive losses. Whether your current buffer comfortably exceeds this can serve as one guideline.

Daily Check List

  • Set a time to check the margin level, and look at it at the same time every day
  • When the number of open positions increases, recalculate steps 1 to 4
  • With averaging-down or grid EAs, required margin also increases each time a position is added, so assume the number can drop sharply
  • If you run multiple EAs on the same account, calculate using the margin level of the whole account
  • If your buffer count falls below the maximum consecutive losses, reduce the lot size or stop the EA

For the steps to change EA settings, see how to set up an EA.

Limitations and Cautions

This calculation is useful, but there are things we cannot know and cannot protect against.

  • The consecutive loss count is only a historical value. There is no guarantee that the backtest maximum will not be exceeded in the future.
  • Gaps and sudden moves fall outside the calculation. Weekend gaps and slippage during news releases can produce a loss larger than your assumed "single loss". A stop-out is also not necessarily executed exactly at the set level.
  • Wider spreads also lower the margin level. Even if the market is not moving, floating losses increase when spreads widen.
  • A high margin level does not mean you are safe. Even with a large buffer, you can still lose a significant portion of your capital within that buffer. Margin level tells you the "distance to forced closure", not that "you will not lose money".

To compare balance DD and equity DD across EAs, see the list in our ranking of measured results for all EAs.

Summary

  • Stop-out is determined by margin level, not balance
  • Some EAs have a small balance DD but a deep equity DD (GOLD KING v6 shows a balance DD of 7.45% and an equity DD of 91.3% in backtesting)
  • Converting it into "how many more moves can it take" with buffer ÷ loss per adverse move makes judgment easier
  • Compare that number with the backtest's maximum consecutive losses, and if it falls below, reduce the lot size or stop
  • Gaps, slippage, and wider spreads are outside the calculation. Past consecutive loss counts do not guarantee the future

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

* Privacy strictly protected. You can unsubscribe at any time.

Have a question about EAs or FX?

You can post it on the Nattzy trading forum (free sign-up). Questions beyond this article are welcome too — EA settings, choosing a broker and more.

Ask on Nattzy ↗

Comments & questions