drawguard.io logodrawguard.io
GuidesCompareLive demo
Guides

How to measure a grid EA's floating drawdown in MT5

Updated Oct 28, 2026 · 6 min read

Short answer: a grid EA's closed-trade report tells you where each basket ended, not how far underwater it went on the way. The number that matters is the grid's floating drawdown: the combined unrealised loss of its open positions at the worst moment. MT5 doesn't record that per EA, so something has to log the grid's open positions, by magic number, while the basket is open.

This guide shows why grid losses grow faster than most traders expect, what MT5 can and can't tell you after the fact, and how to track the depth of each grid as it happens.

Why does a grid's floating drawdown grow so fast?

A grid adds a position every fixed distance as price moves against it. Every new level is one more position that loses on the next step. The forum thread Grid trading drawdown calculation puts the loss at n(n+1)/2 for n levels of price movement: quadratic, while profit from the grid grows roughly linearly.

A worked example, ignoring spread, swap and commission. A buy grid on EURUSD opens 0.10 lots every 10 pips as price falls, and 0.10 lots is worth about $1 per pip:

Price has fallenOpen positionsFloating loss
50 pips (5 levels)6about $150
100 pips (10 levels)11about $550
200 pips (20 levels)21about $2,100

Doubling the distance from 100 to 200 pips almost quadruples the loss. If the EA also increases lot size at each level (martingale), it grows faster still. Then the basket closes when price bounces, and the history shows a small profit.

What does MT5 show for an open grid?

For each open position, MT5 gives you the profit and swap right now (POSITION_PROFIT, POSITION_SWAP in the MQL5 docs), the magic number and the comment. The Toolbox → Trade tab sums them as the account's floating result. What it doesn't give you:

  • No per-grid total. The sum is for the whole account. Two grids and a trend EA are one number.
  • No memory of the worst point. Once the basket closes, its positions move to history with the final result. The peak loss isn't stored anywhere you can read.
  • No per-EA equity. The Trading Report rebuilds equity as balance plus floating profit or loss at the time the report is generated. It is account-level and not split by EA. For why balance and equity drawdown differ so much on a basket, see balance vs equity drawdown.

A closed-trade drawdown per magic number, built from history, shows realised swings only. Take a basket that dropped $2,100 and closed at −$40: in the history, that is a −$40 trade.

See it on a live demo portfolio

Three simulated prop accounts in DrawGuard. Drawdown broken down by symbol, magic number and comment. No sign-up needed.

Open the demo →

How do I track floating drawdown per grid?

The method is the same whatever tool you use:

  1. Give each grid its own magic number. If two grids share a magic, their baskets merge into one. A hedging account is needed so each grid keeps its own positions (on netting accounts there is one position per symbol).
  2. Sum the floating profit of that magic's open positions at regular intervals. POSITION_IDENTIFIER stays the same for the life of a position, so you can follow each level as the basket grows.
  3. Keep the lowest value as the basket's worst point. Compare it with the account's equity peak, not only the basket's own starting point.
  4. Compare it with your limit. A 5% daily loss limit on a 100,000 account is $5,000. A basket that reaches −$2,100 has used 42% of it before any other EA is counted.

You can do this yourself with a small EA that logs to a file. The weak spot is persistence: if the terminal restarts, a peak held in memory is gone.

How DrawGuard tracks this

DrawGuard records instead of reconstructing. A free EA on one chart sends the account's equity and every open position, with its symbol, magic number, comment and floating profit, every 60 seconds. It doesn't trade and doesn't touch your other EAs.

  • Each day, week and month shows what caused its drawdown, split by symbol, magic number and comment. A grid with its own magic shows up as its own line, and the comment lets you separate setfiles or baskets that share a magic.
  • Charts filter by magic number, so you can look at one grid's effect on the account's equity and drawdown.
  • Attribution for a finished period is kept, so you can look back at which grid caused last month's worst day.
  • Drawdown is measured three ways: from peak equity, from the starting balance (static), and from where the day, week or month opened.
  • On paid plans, alerts email you when drawdown crosses a limit you set, for example warn at 70% and critical at 90% of a limit.

Data starts when the EA connects; it can import closed trades but can't recover floating drawdown from before. Samples are taken every 60 seconds, so a drop between two samples isn't recorded. And the terminal has to keep running, so for a grid on a VPS you may want an alert when the EA stops working.

DrawGuard monitors and warns; it never closes a basket, stops a grid or places trades. If you want positions closed at a loss limit, see equity protector EAs, and to see how a grid fits into the whole account, see combined drawdown across several EAs.

What should I do about a deep grid?

  • Size the grid from the limit. Decide the worst move you accept, work out the floating loss at that distance, and set the lot size so it stays well inside your drawdown limit.
  • Cap the number of levels if the EA offers it, so the quadratic growth has a ceiling.
  • Count the grid with everything else. The basket's loss lands on the same equity as every other EA.
  • Use a hard stop that doesn't depend on the grid. An equity protector or your prop firm's own limit will act; a monitor only tells you.

FAQ

What is floating drawdown on a grid EA?

It is the combined unrealised loss of the grid's open positions, measured from its peak equity or from where the period began. It exists only while the basket is open and doesn't appear in closed-trade history.

Why does a grid close in profit after a huge drawdown?

A grid closes the whole basket when price returns far enough. The history records only the final result, so a basket that was $2,000 underwater and closed at a small profit looks like an ordinary win.

Can MT5 show the maximum drawdown of one EA on a live account?

Not directly. MT5 reports account-level drawdown, and its history lists closed deals. To get the worst floating point of one EA, the open positions have to be recorded as they move.

Do I need a separate magic number for each grid?

Yes, if you want to measure them separately. Two grids that share a magic number are indistinguishable in MT5's data.

See your own drawdown per EA, live

Attach the DrawGuard EA to one chart and every strategy on the account is tracked from then on: equity, drawdown, and which magic number caused it. One account is free forever.

Explore the live demo →Start free

More guides

  • How to check the correlation between your EAs in MT5

    Do your EAs lose on the same days? How to measure correlation between EAs from daily profit per magic number, and what a good or bad number means for drawdown.

  • Maximal vs relative drawdown in the MT5 Strategy Tester report

    How to read the absolute, maximal and relative drawdown lines in an MT5 Strategy Tester report, with a worked example, and how they compare with live drawdown.

  • How to find the maximum drawdown of a live MT5 account from its history

    MT5's reports can give a maximum drawdown from closed history, but floating drawdown from the past is estimated, not recorded. What you can get and what to record from now on.

drawguard.io provides trading risk analytics for informational purposes only — not financial advice, not trading signals. Past performance does not guarantee future results.

Guides·Compare·Privacy Policy·Terms of Service·Refund Policy·Risk Disclaimer·Contact

© 2026 TRADEINTEL (Pty) Ltd · drawguard.io · Reg. 2026/445160/07