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.
| Clue | Usually means | Where it can mislead |
|---|---|---|
| Magic number is 0 | Opened by hand | An EA set to 0, or a script or panel that sends no number |
| Magic number is not 0 | Opened by an EA or tool | Two systems sharing one number, or a number you typed yourself |
| Comment names an EA | Opened by that EA | Broker rewrites, truncated text, or a comment you edited |
| Opened within a second of a signal or bar close | Probably automated | A fast hand on a one-click button |
| Many identical lot sizes | Probably automated | A 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.
- Write down, before you look at any numbers, which magic numbers belong to which EA. A note in a file is enough.
- Keep a separate row for any trade you modified by hand after an EA opened it; you will want to ask later whether the manual touch helped.
- If an EA opens positions that you close yourself, decide in advance whether that counts as manual or automated, and apply the rule the same way every time.
- Do not mix demo and live history in the same sheet; see demo vs live accounts.
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.
| Measure | Why it matters for the comparison |
|---|---|
| Number of closed trades | A group with 12 trades tells you far less than one with 400 |
| Net result | The bottom line after commission and swap |
| Average win and average loss | Shows the shape of the results, not just the sign |
| Largest losing run | See consecutive wins and losses |
| Holding time | Manual and automated trades often live on different timescales; see holding time analysis |
| Costs | Spread, 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.
| Group | Trades | Net result | Average trade |
|---|---|---|---|
| Manual (magic 0) | 60 | +120.00 | +2.00 |
| EA (magic 7001) | 160 | -45.00 | -0.28 |
| Whole account | 220 | +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
- A change of EA settings midway creates two different strategies under one number. Note the date of every change.
- Copy trading and signals can add trades with their own labels; see copy trading in history.
- On a netting account, an EA and your own hand can add to the same position, which blends their results in one row; see hedging vs netting.
- Balance rows and credits are not trades and must be removed before any counting; see non-trade rows.
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
- Magic numbers and comments are hints, not proof; check them against what you know about your own setup.
- A split by origin does not say whether either group is skilled or lucky, and small samples mislead.
- Menu names vary by terminal build and broker; check your own platform.
- This page is not trading, tax or financial advice, and all example numbers are hypothetical.
Frequently asked questions
How can I tell a manual trade from an EA trade in MT5?
Where do I see the magic number?
Why do two EAs show the same results grouped together?
Can the journal app tag EA trades automatically?
Is a split by magic number enough to judge an EA?
Related guides
- A local trading journal for MT5
- P&L calendar for MT5
- Trade notes, ratings and screenshots
- Trading progress and goals
- Back up your journal and move it to a new PC
- An offline trading journal for Windows
- How to set monthly trading goals
- Import your whole MT5 history
- How to tag trades
- Trade screenshots for your journal
- All trading journal comparisons
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