Running a Multiple EA One Account Setup: Correlation and Shared Risk Limits
- MetaTrader 5 allows only one Expert Advisor per chart window, requiring separate charts for each bot even on the same asset.
- Magic numbers identify the orders of each specific EA so the algorithms never interfere with each other's open tickets.
- Hedging accounts maintain separate tickets for every trade, while netting accounts combine positions on the same symbol.
- Two algorithms trading the same currency direction double your true market exposure unless individual position sizes are reduced.
- Portfolio margin is shared across the entire balance, meaning floating drawdowns in one EA directly reduce the capital cushion of the other.
What happens when you run multiple EAs on one account?
Running multiple Expert Advisors on a single account combines their order flow into one shared balance, where every open position draws from the exact same margin pool. Both programs operate independently inside the terminal, but their combined floating profits and losses determine the overall equity and risk capacity of the account.
An Expert Advisor, or EA, is software that places trades on your account by fixed rules. When you launch more than one on the same terminal, the platform treats the account as a single financial vessel. If EA A enters a buy trade on EUR/USD and EA B enters a buy trade on gold, the broker does not keep their required collateral in separate pockets. Both draw from the identical free margin balance.
This dynamic means that what looks like two quiet, medium-sized strategies can quickly turn into an overleveraged portfolio during busy trading sessions. If one algorithm runs into a series of losing positions, it drags down the overall account equity. That leaves less room for the second algorithm to execute its regular entries or survive routine market swings. Before you deploy more than one program, understanding what is algorithmic trading and how terminals handle order routing is essential.
How do magic numbers prevent EA order conflicts?
A magic number is a unique numeric fingerprint that an Expert Advisor attaches to every order it submits to MetaTrader. By filtering open trades by this specific integer, the EA modifies and closes only its own positions, completely ignoring trades opened by other automated software or manual orders on the terminal.
Without magic numbers, automated trading on a single terminal would collapse into chaos. If an EA looks only at the currency symbol, it assumes every EUR/USD position on the account belongs to it. If EA A tries to trail a stop loss, it might inadvertently adjust or close a trade that EA B opened under a completely different logic. Manual trades carry a default magic number of zero, which also serves to keep human clicks distinct from bot actions.
When setting up software on MT5, you manually verify that the magic number field in the inputs tab contains an exclusive integer for each instance. For example, you can give your EUR/USD breakout bot the identifier 101001 and your gold mean reversion bot 102001. A solid setup routine includes recording these numbers in a simple log so you never launch a new chart using a duplicate identifier.
- Assign a completely unique number to each chart instance before pressing start.
- Manual trades default to an identifier of zero, keeping discretionary trades isolated from automated scripts.
- Never alter a running bot's magic number while it has live tickets open in the terminal.
Why does account type dictate your multi-bot setup?
Your account structure determines whether multiple trades on the same asset remain separate or merge into a single combined position. Hedging accounts permit two different algorithms to hold independent long and short tickets simultaneously, while netting accounts combine all orders on an instrument into one blended position.
In MetaTrader 5, the broker configures the account as either hedging or netting. In a hedging environment, EA A can open a buy order on EUR/USD while EA B opens a sell order on EUR/USD. Both positions live on their own tickets, complete with their own stop loss and take profit targets. This environment is standard for most retail forex traders using automated systems.
Under a netting setup, common on institutional futures exchanges and US retail brokers bound by NFA Rule 2-43(b), individual tickets do not exist on the same symbol. If EA A holds one lot long on EUR/USD and EA B sells one lot, the second order simply closes the first trade instead of creating an opposing position. Furthermore, FIFO rules force the oldest trades to close first. If you want two bots trading the same symbol, verifying that your account supports hedging is a mandatory first step. You can examine this technical behavior further when studying EUR/USD bot strategy.
| Feature | Hedging Account Mode | Netting Account Mode |
|---|---|---|
| Simultaneous Long and Short | Permitted as separate open tickets with independent stops | Forbidden; opposing orders close, reduce, or flip the open position |
| Ticket Isolation | Each EA manages its own specific ticket numbers cleanly | All orders for a symbol consolidate into one average price volume |
| Suitability for Two EAs on Same Symbol | Safe if unique magic numbers are assigned to each chart | Unsafe because one EA will unintentionally alter or close the other's trade |
| Regulatory Scope | Standard retail account setting outside the United States | Standard for futures exchanges and retail brokers under US FIFO rules |
How does asset correlation increase your shared market risk?
Asset correlation measures how closely two trading instruments mirror each other's price movements over time. If you run two separate EAs that both trade instruments driven by the same macroeconomic force, such as the US dollar, both bots will often win or lose at the very same time, doubling your true portfolio risk.
Traders often think they are diversifying by assigning one algorithm to EUR/USD and another to gold (XAU/USD). However, both assets frequently react in the opposite direction of the US dollar. If a hot US inflation report causes the dollar to rally violently, EUR/USD and gold may both drop at the identical moment. If both of your EAs were holding buy positions, your account absorbs a double hit.
Instead of smoothing out performance, running correlated assets with identical directional setups compounds your drawdowns. When designing a multi-EA environment, look at how the underlying pairs interact. If you run strategies on closely linked instruments, you must treat them as a single trade idea and scale down their sizing accordingly, a concept detailed in our guide on gold trading institutional edge.
How do you manage aggregate drawdown limits across multiple EAs?
Managing aggregate drawdown requires establishing a hard risk ceiling for the whole account and dividing position sizes proportionally between your running systems. Instead of letting each bot size trades using the entire unreserved balance, each EA must calculate risk against an allocated virtual portion.
A classic mistake is letting two EAs calculate position risk using the full account balance simultaneously. If each bot calculates trade sizes assuming it is the only program active on the account, a sudden market movement that triggers stop losses on both charts produces twice the planned loss. If each bot opens multiple positions, total account exposure can easily pass safe boundaries and push the account toward a margin call.
To keep portfolio risk stable, you partition your risk budget. You configure each EA to trade smaller lot sizes, or base their lots on half the account balance. Gixodia's trading software is built around trading by predefined rules, the same way every time, ensuring that execution stays disciplined without emotional deviations. For rules-focused setups like those used with GIX-PROP, respecting strict limits across all active charts is critical to prevent crossing account loss thresholds.
How to do it, step by step
- Confirm your MT5 account mode. Open MetaTrader 5, look at the terminal title bar or right-click your account number in the Navigator window, and verify that the account is listed as Hedging rather than Netting.
- Calculate your total portfolio risk budget. Determine the maximum combined risk you are willing to expose at any given time. Divide this budget by the number of active EAs so each system gets a defined allocation.
- Open an individual chart for each algorithm. Open one clean chart for the first EA and set its timeframe. Open a second, independent chart window for the second EA, even if both systems will execute trades on the same market.
- Set unique magic numbers in the input settings. Double-click the first EA or press F7 on its chart to open the Inputs window. Enter an exclusive number, such as 101001, and then set a distinct number, like 102001, on the second EA.
- Calibrate lot sizing to fractional equity. Adjust the lot sizing parameter inside each EA's inputs so that neither program sizes positions using the entire capital base of the account.
- Enable automated execution safely. Click the Algo Trading toggle on the top toolbar to green, and make sure that Allow Algo Trading is checked inside the Common tab of each EA settings panel.
Checklist before you take the trade
- The MT5 account confirms Hedging mode in the account properties.
- Each EA is loaded on its own separate chart window.
- The magic number input on EA 1 is completely distinct from EA 2.
- Neither EA uses magic number zero, which is reserved for manual trades.
- Lot sizes are scaled down to account for the shared balance.
- Asset correlation between the traded instruments has been evaluated.
- Algo Trading is enabled globally and permitted in each bot's common settings.
Common mistakes and how to fix them
✗ The mistake: Leaving default or duplicate magic numbers on both EAs.
✓ The fix: Manually type a distinct numerical identifier into the magic number input field for every separate chart instance.
✗ The mistake: Running two EAs on the same asset under a netting account.
✓ The fix: Switch to an account configured for hedging, or ensure each EA runs on a completely different trading instrument.
✗ The mistake: Sizing each bot as if it owns the entire account balance.
✓ The fix: Partition position sizes so their combined exposure stays within your maximum total drawdown limit.
✗ The mistake: Trading identical directions on heavily correlated pairs without reducing size.
✓ The fix: Halve your standard lot sizes when running simultaneous directional strategies on correlated assets like EUR/USD and gold.
Frequently asked questions
Can you run two EAs on the same chart in MetaTrader 5?
No, MetaTrader 5 enforces a strict limit of one Expert Advisor per chart window. If you want to run two EAs on the same symbol, you must open two separate chart windows for that symbol and attach one EA to each.
What happens if two EAs share the same magic number?
When two EAs share the same magic number, each bot believes the other bot's trades belong to it. One EA may prematurely close or adjust the stop loss of orders placed by the other, creating severe execution errors.
Does running two EAs double my required margin?
Yes, if both algorithms open trades at the same time, each position ties up margin from your single shared account balance. If you do not adjust lot sizes downward, the margin level drops twice as fast during simultaneous trades.
Can one EA close a trade opened manually by a trader?
A properly coded EA will not touch manual trades because manual orders carry a magic number of zero. As long as your EA searches specifically for its own non-zero magic number, it will ignore your manual positions.
Want your trading to follow fixed rules, the same way every time? Gixodia's trading software for MetaTrader 5 trades by predefined rules on your own broker account, in your own name. Try it free for 72 hours, a demo account is fine, then $499/year. Trading involves risk and you can lose money.
Sources
- How to Run Multiple EAs in MT5: Multi-EA Setup 2026 (fxroboteasy.com)
- Can you run multiple Expert Advisors on one account? Magic numbers explained (forexcopilotea.com)
- How many EAs do you run simultaneously — and how do you handle conflicts? (mql5.com)
- How do you handle drawdown rules across a portfolio of EAs (prop firm style)? (mql5.com)