Manual vs Expert Advisor trades in your MT5 history

Magic numbers, comments and a simple split, so you can see which part of your account is working before you draw conclusions.

Plenty of MetaTrader 5 accounts carry two kinds of trading at once: positions you open by hand and positions opened by an Expert Advisor (EA), sometimes several EAs. In the History tab they sit in one long list, and the totals at the bottom blend them. That is a problem for a trader who wants to know whether the hand-made decisions, or the automated ones, are the part of the account that is working. This page explains how the two kinds are told apart in the data the terminal keeps, which clues are reliable and which are not, and how to build a review that treats them separately.

What the terminal records about who opened a trade

Every order and deal can carry a magic number, a whole number that an EA attaches when it sends an order. Trades placed by hand from the chart or the Trade window normally carry a magic number of zero, and trades placed by an EA carry whatever number its author or settings chose. There is also a comment field, which an EA often fills with its own name or a short label, and which the broker may append to or rewrite. Neither is a guarantee. Two EAs can be configured with the same magic number, one EA can be told to use zero, and some manual order tools attach their own numbers. For the details of each field see the magic number in trade history and order comments as labels.

ClueUsually meansWhere it can mislead
Magic number is 0Opened by handAn EA set to 0, or a script or panel that sends no number
Magic number is not 0Opened by an EA or toolTwo systems sharing one number, or a number you typed yourself
Comment names an EAOpened by that EABroker rewrites, truncated text, or a comment you edited
Opened within a second of a signal or bar closeProbably automatedA fast hand on a one-click button
Many identical lot sizesProbably automatedA trader who always uses one size

A simple way to split the list

You do not need a clever tool to start. Open the History tab, choose the period you want to study, and make sure the view shows closed positions. Then check whether your build lets you add the magic number or comment column; menu choices differ between builds, so look at the right-click menu on the column header in your own terminal. Copy the rows into a spreadsheet and sort by magic number. Rows with a zero form your manual group; each other number is a group of its own. Total the net result for each group, where net means profit plus commission plus swap, and count the trades. See sorting, filtering and copying rows for the mechanics.

What to compare once the groups are separate

Net result alone is a poor basis for a conclusion, because the groups differ in size and in market conditions. Put these beside each other and read them together.

MeasureWhy it matters for the comparison
Number of closed tradesA group with 12 trades tells you far less than one with 400
Net resultThe bottom line after commission and swap
Average win and average lossShows the shape of the results, not just the sign
Largest losing runSee consecutive wins and losses
Holding timeManual and automated trades often live on different timescales; see holding time analysis
CostsSpread, commission and swap can eat small automated gains; see trading costs in history

A worked example (hypothetical)

Imagine an account with 220 closed trades over three months. Sorting by magic number gives two groups: 60 trades with a magic number of zero and 160 with the number 7001, which belongs to one EA. The numbers below are invented for illustration only.

GroupTradesNet resultAverage trade
Manual (magic 0)60+120.00+2.00
EA (magic 7001)160-45.00-0.28
Whole account220+75.00+0.34

The blended total looks pleasant, and the average trade is positive. Split apart, the picture is different: the small positive total came from the manual group, while the EA lost slightly. That is a reason to look more closely, not a verdict. The EA might have run in a quiet month, the manual trades might include a single lucky winner, and 60 trades is a small sample. The useful outcome is a question for the journal: what did the manual trades have in common, and what was the EA doing when it lost?

Pitfalls to watch for

Keeping the two kinds apart in a journal

A static split in a spreadsheet works for a quarterly look, but it is tedious to repeat. AI Trading Journal is a Windows app for MetaTrader 5 only. It reads closed trades from the terminal on your PC, adds new ones every 5 minutes, and keeps the journal in a file in your Documents folder. On the Journal page you can add a tag to each entry, for example manual or the name of an EA, along with a setup, an emotion, a plan-followed flag, a rating from 1 to 5, notes and screenshots, and then use the search and filters to look at one group at a time. The app is read-only: it never places, modifies or closes a trade. It does not decide for you which trades were automated, so the tagging is yours, and it is only as consistent as you are.

Limits and cautions

Frequently asked questions

How can I tell a manual trade from an EA trade in MT5?
Look at the magic number and the comment. A magic number of zero usually means a manual order, but this is a convention, not a guarantee.
Where do I see the magic number?
In many builds you can add it as a column by right-clicking the column header in the History tab. Check your own terminal, because layouts differ.
Why do two EAs show the same results grouped together?
They probably share a magic number. Give each EA its own number in its settings, and note the date you changed it.
Can the journal app tag EA trades automatically?
No. You add tags yourself on the Journal page. The app reads closed trades and does not classify them by origin.
Is a split by magic number enough to judge an EA?
No. It shows what happened, not why. Sample size, market conditions and costs all matter, and none of it predicts the future.

Related guides

Tag manual and EA trades and review them separately: free for 7 days

Free for 7 days, no card required. After that, a one-time $19.99 purchase. No subscription. Also on the Microsoft Store.

One-time $19.99, no monthly fee · your MT5 login never leaves your PC · trades go into your own journal on your PC, not through our servers.

Start free 7-day trial