drawguard.io logodrawguard.io
GuidesCompareLive demo
Guides

Can you run two EAs on the same symbol in MT5? How to keep them apart

Updated Nov 1, 2026 · 6 min read

Short answer: yes, MT5 lets two EAs trade the same symbol, but only cleanly on a hedging account and only if each EA uses its own magic number. On a netting account both EAs share one position per symbol and you can't separate them. Once they're apart, the same split lets you see how much open risk each one adds on that symbol.

This guide covers the setup, the three ways two EAs on one symbol go wrong, and how to check that each EA is carrying the risk you think it is.

Check the account type first

MT5 has two position accounting systems, and the broker chooses which one your account uses. The MetaTrader 5 help describes them like this:

  • Netting: "for one financial instrument only one position can exist at any given time". A buy from EA A and a sell from EA B on EURUSD merge into one position. If the sizes match, the position closes.
  • Hedging: several positions on the same instrument can exist at once, including buys and sells.

On a netting account, two EAs on one symbol are not really two strategies. They are one position that both of them push around. Neither EA sees "its own" trades, and neither can be measured alone. If you want two EAs on the same symbol, you need a hedging account. You can see the mode in the account's details in the terminal, or ask your broker.

Give each EA its own magic number

The magic number is the ID an EA attaches to its orders. Positions opened from those orders carry it as POSITION_MAGIC. The MQL5 docs describe it as designed so that each Expert Advisor places its own unique number.

MT5 does not enforce that. If two EAs, or one EA on two charts, use the same magic, their trades are indistinguishable in the terminal. Worse, an EA that manages "its" positions by magic number will start managing the other one's.

How to set it:

  1. Find the magic input. Most EAs expose it as an input on the Inputs tab (often called MagicNumber, Magic or ExpertID). Inside the code, the standard library sets it with CTrade::SetExpertMagicNumber.
  2. Use a different number on every chart. Two charts of the same symbol, each with its own EA, each with its own magic.
  3. Write the mapping down. "1101 = trend EA on EURUSD, 1102 = grid EA on EURUSD". You will want it six months from now.
  4. Change it before the EA trades. A position keeps the magic it was opened with. If you change the input later, the old positions still carry the old number, and the EA may stop managing them.

Some EAs have no magic input and use a fixed number. Two copies of such an EA will clash. Check the vendor's manual before you run a second instance.

Three ways two EAs on one symbol clash

They trade against each other. One EA is long EURUSD, the other short. On a hedging account both positions stay open. You pay the spread twice, and the swap on each side, for a position that nets to close to nothing. Backtested alone, each EA looked fine.

One EA touches the other's trades. An EA that closes or modifies every position on its symbol, without filtering by magic number, will act on the other EA's trades as well. This is the reason to read how an EA selects its positions before you put it next to another.

The risk stacks without anyone noticing. Each EA risks, say, 1% per trade on EURUSD. If both open at the same moment, the account carries 2% on one pair, and EURUSD moves hit both. The numbers in each EA's backtest don't include the other. Combined drawdown is the figure that counts.

Margin is shared too

Two EAs on one symbol also share the account's margin. A basket from one EA can leave the other unable to open. That surfaces as a failed order in the Experts tab, not as a warning. If one of your EAs is a grid or martingale system, watch its floating drawdown as well. Two EAs on one symbol may also lose on the same days.

See it on a live demo portfolio

Three simulated prop accounts in DrawGuard. Drawdown broken down by symbol, magic number and comment. No sign-up needed.

Open the demo →

How to see each EA's risk on the same symbol

MT5's History tab has a magic column, so you can tell which EA opened a closed trade. It can't tell you how deep each EA's open positions went before they closed, and the Trading Report shows drawdown for the whole account. Per-EA drawdown on one symbol needs something that records each open position, with its magic number, while it's open. Here is how that works.

DrawGuard records this. A free EA on one chart sends the account's equity and every open position (symbol, magic number, comment, floating profit) every 60 seconds to a web dashboard. Every day, week and month is broken down by symbol, magic number and comment, so with two EAs on EURUSD you can filter to that symbol and see which magic number caused each drawdown. Charts filter by the same.

Limits: DrawGuard monitors and warns; it never places, modifies or closes trades, and it won't stop an EA. Data starts when the EA connects, so floating drawdown from before can't be recovered. It is MetaTrader 5 only. If you want positions closed at a loss limit, see equity protector EAs.

For the wider setup, see how to run multiple EAs on one MT5 account.

A checklist before you run a second EA on a symbol

  1. Confirm the account is hedging.
  2. Give each EA a unique magic number and write it down.
  3. Check how each EA selects its positions. It should filter by its own magic.
  4. Add up the risk both EAs take if they open together on that symbol.
  5. Watch the combined drawdown, not just each EA's.

FAQ

Can two EAs trade the same symbol in MT5?

Yes. On a hedging account each EA keeps its own positions, as long as each one uses its own magic number. On a netting account both share a single position per symbol.

Do two EAs on the same symbol need different magic numbers?

Yes. The magic number is how an EA recognises its trades. MT5 doesn't enforce uniqueness, so if two EAs share one, their trades can't be told apart and one may manage the other's.

Can I run the same EA twice on the same symbol?

Yes, on a hedging account, with a different magic number on each chart. If the EA has no magic input, the two copies will treat each other's trades as their own. Here is how to keep set files apart.

How do I know which EA caused a drawdown on a shared symbol?

Record open positions with their magic numbers while they're open and split each drawdown by magic. MT5's own reports don't do this.

See your own drawdown per EA, live

Attach the DrawGuard EA to one chart and every strategy on the account is tracked from then on: equity, drawdown, and which magic number caused it. One account is free forever.

Explore the live demo →Start free

More guides

  • How to check the correlation between your EAs in MT5

    Do your EAs lose on the same days? How to measure correlation between EAs from daily profit per magic number, and what a good or bad number means for drawdown.

  • Maximal vs relative drawdown in the MT5 Strategy Tester report

    How to read the absolute, maximal and relative drawdown lines in an MT5 Strategy Tester report, with a worked example, and how they compare with live drawdown.

  • How to find the maximum drawdown of a live MT5 account from its history

    MT5's reports can give a maximum drawdown from closed history, but floating drawdown from the past is estimated, not recorded. What you can get and what to record from now on.

drawguard.io provides trading risk analytics for informational purposes only — not financial advice, not trading signals. Past performance does not guarantee future results.

Guides·Compare·Privacy Policy·Terms of Service·Refund Policy·Risk Disclaimer·Contact

© 2026 TRADEINTEL (Pty) Ltd · drawguard.io · Reg. 2026/445160/07