XAUUSD Robot

Running Multiple EAs on One Account Without Chaos

By the XAUUSD Robot Team ยท Updated August 2026

Running multiple Expert Advisors on one MetaTrader account

TL;DR Yes, MetaTrader allows it — but three things go wrong by default. 1) Magic numbers: each EA must have a unique one, or advisors will manage and close each other's positions. 2) Margin: it is shared across the whole account and neither EA can see what the other has committed, so combined exposure can exceed what either was sized for. 3) Charts: one EA per chart — attaching a second replaces the first. Open a separate chart of the same symbol instead. If both EAs trade the same instrument in opposite directions, a second account is usually the cleaner answer.

The three things EAs compete for

MetaTrader will happily run several advisors at once. What it will not do is coordinate them. Each EA behaves as though it is alone on the account, and three shared resources turn that assumption into a problem.

Shared resourceWhat goes wrong
Position listAn EA that manages “open trades” without filtering can modify or close positions another EA opened
Margin and equityBoth draw from one balance; neither knows the other's exposure, so combined risk exceeds either one's sizing
The chartOnly one advisor can occupy a chart window at a time

All three are solvable. The first is solved by a setting, the second by arithmetic you do yourself, and the third by opening more windows.

Magic numbers: the setting that prevents chaos

A magic number is an integer an EA stamps onto every order it places. It exists for exactly one purpose: so the advisor can tell its own positions apart from everything else on the account.

When two EAs share the same magic number — and many default to 0 or 12345 — each sees the other's trades as its own. A trailing-stop routine belonging to one advisor will happily move the stop on a position the other opened. A close-all-on-target rule will close trades it never placed.

Rule: before running a second EA, open the properties of both and give each a distinct magic number. Any different integers work — 1001 and 1002 is fine. Write them down alongside your preset files, because a reinstall resets them.

Manual trades carry no magic number, which is why a well-written EA also leaves them alone. If you trade by hand on the same account, check that any advisor you add filters by magic number rather than acting on every open position.

Margin is shared, and nobody is tracking the total

This is the risk that survives after the magic numbers are set, and it is the one that actually empties accounts.

Suppose each EA is configured to risk 2% per trade. Individually reasonable. Run both, and a day where each opens two positions puts 8% of the account at risk simultaneously. Neither advisor did anything wrong, and neither can see the other's contribution.

It compounds in a specific way on gold. If both systems are trend-following on XAU/USD, they will frequently be positioned the same way at the same time, because they are reading the same move. Diversification you thought you had turns out to be one position in two parts, and the drawdown arrives on both at once.

The fix is arithmetic rather than software: size each EA so the combined worst case is survivable. Two advisors on one account should generally each risk half what a single one would, not the same amount twice. The account-size reasoning is in how much money to start a gold EA.

One chart, one EA

MetaTrader permits exactly one Expert Advisor per chart window. Dragging a second onto an occupied chart replaces the first, usually without a warning that anything was removed — a common way to discover, days later, that an advisor stopped running.

To run two EAs on the same instrument, open a second chart of that instrument. Both windows can show XAUUSD, each with its own advisor. The timeframe of the chart is irrelevant unless the EA reads it, but keeping each advisor on the timeframe its author intended avoids one more variable.

Because every chart consumes memory and every EA consumes processing, an account running several advisors is a strong argument for a VPS rather than a laptop that sleeps.

A sane way to run two

  1. Demo both together first, for a full week. Problems between advisors only appear when both are active.
  2. Distinct magic numbers, written down.
  3. Halve the risk on each relative to running one alone.
  4. Separate charts, one advisor each.
  5. Check correlation after a week: if both were long at the same times, you have one strategy running twice.
  6. Set an account-level ceiling — a drawdown level at which you stop everything, independent of what either EA thinks.

When a second account is the better answer

Some combinations should not share an account at all.

Opposite directions on the same symbol. One EA long XAUUSD while another is short is not a hedge in any useful sense; on a netting account they cancel to a smaller position, and on a hedging account you pay two spreads to hold roughly nothing.

Very different risk profiles. A conservative trend system sharing margin with an aggressive one means the conservative system's capital is exposed to the aggressive one's worst day.

Anything you want to evaluate. On a shared account you cannot cleanly attribute results. If the point is to find out whether an advisor works, give it its own account — ideally a cent account, which makes the test affordable.

Questions we get

Can I run two EAs on the same MT4 or MT5 account?

Yes, with unique magic numbers, one chart each, and combined risk you size yourself โ€” they cannot see each other.

What is a magic number and why does it matter?

An ID stamped on each EA's orders. Shared numbers make advisors close each other's trades; give each a distinct one.

Can I put two EAs on the same chart?

No โ€” one EA per chart. Open a second chart of the same symbol and attach the other advisor there.

How should I size risk when running multiple EAs?

Halve each EA's risk versus running it alone, and plan for the combined worst case, not per-advisor limits.

Is running multiple EAs actually diversification?

Only if they genuinely differ. Two trend systems on gold usually take the same side at the same time.

When should I use a separate account instead?

For opposite-direction systems, mismatched risk profiles, or when you need clean results for one advisor.

The verdict

MetaTrader lets several advisors share an account but does nothing to make them cooperate. Give each a distinct magic number, one chart, and half the risk you would give a single system โ€” then check after a week whether they were genuinely trading different things. If they were not, you were running one strategy twice and paying two spreads for the privilege.

Planning to run two of our EAs together?

Tell us which pair and your balance, and we will suggest magic numbers and a combined risk split that survives a bad week.

๐Ÿ’ฌ Talk to Us on Telegram

More from the lab

Risk & affiliate disclosure: Educational content only, not financial advice. Trading gold (XAUUSD), forex and CFDs carries substantial risk of loss; a large majority of retail CFD accounts lose money. No results are guaranteed. We may earn a commission if you open an account through partner links, at no extra cost to you โ€” this funds the free EA. See our Affiliate Disclosure.