How to find which EA makes money: results by magic number and comment

How to find which EA makes money: results by magic number and comment

25 November 2026, 06:37
Dragos Mihai Ofrim
0
8

Run three EAs, a grid and a few manual trades on one account, and the account history becomes a long list of deals that says how the account did, but not who did it. The account can be in profit while one EA quietly loses, or one lucky week can carry an EA that has stopped working. This article shows how to split results by magic number and by trade comment, how to compare EAs that trade different lot sizes, and how to tell a real result from a few lucky trades. The examples use DuoFX Trading Journal (user guide).

Magic numbers and comments

Every order an EA sends carries a magic number, a number the EA uses to recognise its own trades. Most EAs let you set it in their inputs. Manual trades have magic 0. Orders can also carry a comment, a short text such as "GridEA_12" or "Breakout v2".

Two habits make every later analysis easy:

  • One magic number per EA and per setting. If you run the same EA on gold and on EURUSD, or with two risk settings, give each a different magic number. Otherwise their results mix in one row.
  • A comment with the EA name. The journal reads the EA's name from its trade comments and shows it next to the number, so "1001 GoldScalper" reads better than "1001".

Step 1: results by EA / magic

Open the EA / magic tab. Each EA gets one row with trades, win rate, net profit, profit factor, expectancy, average win and loss, average R, max drawdown, longest losing streak, costs and a small equity curve. Manual trades get their own row, so you see whether you beat your bots.

Read three columns before net profit:

  • Trades. Under 30, the result says very little. The journal marks these rows Unproven.
  • PF (profit factor). Gross profit divided by gross loss. Around 1.0 the EA is breaking even before luck.
  • Costs. Commission, swap and fees. A scalper or a grid can pay the broker a large share of what it earns.

Then check the verdict badge. Good needs 30 or more trades, a profit factor of 1.30 or more, and a profit that survives removing the top 5% of trades. Weak is in profit but short of that. Losing is at zero or below.

Step 2: compare at the same lot size

Net profit in money mixes the EA's skill with its lot size. An EA trading 1.00 lot will out-earn a better one trading 0.05. Switch on At 0.01 lots and every money figure is shown as if each trade had been 0.01 lots, with profit, commission and swap scaled by the trade's own volume. Win rate, profit factor and R stay the same.

In the sample data, the grid EA earns more money than the news EA at its real sizes, but at 0.01 lots the order changes: NewsBreak shows +448.59 over 115 trades, GridEA +160.43 over 409. The grid's money came from its larger lots, not from more profit per unit of size. The sample also has a Fading badge on NewsBreak: in profit overall, but its latest third of trades earn less than half per trade of the earlier ones, by more than normal trade-to-trade swings. That is the EA to watch first.

How to find which EA makes money: results by magic number and comment

The screenshots in this article show the built-in sample data, not real trading results. The EA names and figures are made up to show every view.

Step 3: split one EA by comment

Many EAs number their comments: GridEA_1, GridEA_2, one per grid cycle or per basket. Open the Comment tab, choose Starts with in the comment filter and type the name. Every trade whose opening comment starts with it is in, not case sensitive.

Each numbered comment now has its own row. In the sample, every GridEA_n row has 10 or 11 trades, so each one is Unproven: a single cycle is too small to judge. That is useful in itself, because it shows how even the cycles are. Click Group by prefix and they roll into one GridEA row: 409 trades, profit factor 1.64, Good, with a closed max drawdown of 455.79 and an equity drawdown estimate of 488.40.

How to find which EA makes money: results by magic number and comment

The journal always uses the comment the trade opened with. Brokers rewrite comments on close ("[sl]", "[tp]", "so ..."), and the closing comment would split one EA into many rows.

Step 4: look past the net profit

  • Remove the best trades. An EA that is only in profit because of two or three huge wins is fragile. The Good badge needs the profit to survive without the top 5% of trades, and the verdict line says it in words: "still in profit without its 20 top trades".
  • Check the curve. The Curve column draws each row's closed results in order. A steady rise and a flat line with one spike can have the same net profit.
  • Check drawdown in two ways. Max DD (closed) uses closed results only. The equity drawdown estimate adds the worst floating loss of every open trade from M1 bars. For a grid or basket EA the estimate is the number that matters, since the closed curve hides the floating side.
  • Check the weakest part. Click a row: the line under the table names its weakest session, symbol or habit, for example "Weakest part: trades outside the set sessions".
  • Split by session and hour. Filter on one magic number, then open Session or Hour to see when that EA earns and when it gives back.

What to do with the answers

  • An EA marked Losing over a few hundred trades is costing you money; pause it on a demo first if you want more evidence.
  • A Fading EA has changed. Compare its recent months with the Month tab before you add size.
  • An Unproven EA needs more trades, not a verdict: widen the date range, or wait.
  • A Weak EA is in profit but thin: check its costs and whether a few trades carry it.
  • Export to CSV if you want to keep a monthly record outside the terminal.

A short checklist

  • One magic number per EA and per setting, and the EA name in the comment.
  • Read trades, profit factor and costs before net profit.
  • Compare EAs at 0.01 lots.
  • Use Starts with and Group by prefix for EAs that number their comments.
  • Check the curve, the drawdown estimate and the weakest part.

DuoFX Trading Journal is available for MT5 and MT4. For your own trading behaviour, see Trading habits that cost you money: reading the Habits view.

Risk note: trading forex, gold and CFDs carries a high risk of loss. A journal shows what happened; past results do not indicate future results, and an EA that did well can do badly. This article is information, not financial advice, and does not promise any result.