Which of your EAs is actually making money? Reading an MT5 account by magic number

Which of your EAs is actually making money? Reading an MT5 account by magic number

3 December 2026, 16:25
Northern Lights
0
7

Five EAs on one account and the balance is up for the month. Good. But is it up because all five work or because one of them carries the other four? The terminal will not tell you. The History tab lists deals one by one and the balance adds them all together. Nothing totals them per EA.

So you either keep a spreadsheet or you guess. This post is about doing it properly: what to count for each EA, the traps that make the numbers lie and how to read the result once you have it.

Split by magic number, not by symbol

The magic number is the ID an EA puts on every order it sends. It is the only reliable way to tell which trade belongs to which EA. Splitting by symbol does not work as soon as two EAs trade the same pair. Splitting by comment does not work either, because some EAs leave no comment and a broker can overwrite it.

Two things follow. Every EA on the account needs its own magic number (if two share one, their results cannot be separated by anyone). And magic 0 is not an EA: it is usually you, trading by hand. Give those trades their own row called Manual, so your own trading does not hide inside an EA's result.

What to count for each EA

Six numbers per EA are enough to see who is pulling their weight.

  • Net result after commission and swap. Gross profit flatters the EAs that trade most often, because they pay the most in costs.
  • Number of closed trades. Every other number depends on it.
  • Win rate and profit factor. Win rate alone says little: an EA can win 80% of trades and still lose money if the losses are large. Profit factor (gross profit divided by gross loss) shows both sides at once.
  • Maximum drawdown of its closed trades. How deep this EA dug before it climbed back.
  • Longest losing run next to the current one. Six losses in a row means nothing if the EA has done eight before. It means a lot if its worst run so far was three.
  • Time of the last trade and the symbols it trades. An EA that stopped trading three days ago looks fine in every other column.

Look at them for today, this week, this month and all of the history. A good month can hide a bad week and the other way round.

The traps that make the numbers lie

Count positions, not deals. A position closed in three parts is one trade with three exits. Count deals and the trade count triples while the win rate turns into noise.

A position belongs to the EA that opened it. If you or another program closes an EA's trade, the result is still that EA's. Otherwise every manual rescue moves a loss from the EA's row to yours.

Deposits, withdrawals, credit and bonuses are not anyone's result. They change the balance without a single trade.

Some brokers book costs as separate entries, for example a daily commission on the account. Those belong to no EA. Keep them on a separate line, so the EA rows plus that line add up to the trading result of the account.

Some brokers close and reopen open positions at midnight. One position then shows up as two trades in the history. If an EA's trade count looks too high, check this first.

How to read it

Start with the trade count. Twelve trades say very little about any EA, whatever its profit factor. Compare EAs that have enough history to compare.

Then put Net next to Max DD. Two EAs with the same Net are not equal if one went three times deeper to get there.

Then the losing runs. The current run against the longest one is the quickest check of whether an EA is having a normal bad week or doing something it has never done before.

None of this predicts what an EA will do next. It shows what each one has done on your account, with your broker's costs, which is often different from its backtest.

ScoreDeck: the same table on your chart

We built ScoreDeck to do this counting for us. It is a free indicator for MetaTrader 5 that shows every EA on the account in one table, one row per magic number: Net after costs, Trades, Win % and PF, Max DD, Losing run, Last trade and Symbols. Switch between Today, Week, Month and All and sort by any column. It follows the rules above: whole positions, Manual for magic 0, broker costs in a separate ACCOUNT line, deposits and bonuses left out.

It only reads the account history and never opens, changes or closes a trade. It is an indicator, so it does not take the Expert Advisor slot on the chart.

ScoreDeck on the Market: https://www.mql5.com/en/market/product/213574