Running Multiple EAs: Correlation, Combined Margin and Magic Numbers
Running multiple EAs only lowers risk when three things hold: their results are not correlated, their combined margin and worst-case drawdown still fit the account, and none of them can touch another's trades. In practice that means checking the correlation of their daily equity changes (below about 0.3 is a common target), adding up the margin every EA could hold at the same time, giving each EA its own chart and a unique magic number, and putting a grid or no-stop-loss EA on its own account. Three to five uncorrelated EAs is a practical range for most traders.
Putting all your capital into a single EA means holding your breath: when it wins, life is great, and when it draws down, sleep gets hard. Institutional traders have known for decades that diversification isn't just for stock portfolios. Running multiple uncorrelated EAs on your trading account can create a smoother equity curve and reduce maximum drawdown while your bots work.
In This Guide
Why Diversify With Multiple EAs
Every EA, no matter how good, has periods where it underperforms. That's not a flaw. It's a mathematical certainty, since no single strategy profits in every market condition. Trend-following EAs struggle when the market goes sideways, and mean-reversion EAs get crushed once a strong trend takes hold. Diversifying across multiple EAs is how you get around this.
Here's what a diversified EA portfolio gives you:
- Reduced maximum drawdown: when one EA draws down 15%, another might be up 10%, netting only a 5% portfolio drawdown
- Smoother equity curve: individual EAs have jagged equity curves, but combined, they smooth out significantly
- Smoother monthly results: less variance from month to month, though never guaranteed
- Psychological comfort: it's far easier, emotionally, to watch one EA lose while the portfolio stays green
- Reduced single-point risk: if one EA's strategy stops working, it won't take your entire account down with it
Example: A portfolio of 3 EAs each averaging 15% monthly with 20% max drawdown individually might produce 12% monthly with only 10% max drawdown combined, simply because their drawdown periods don't perfectly overlap. You give up a small amount of upside in exchange for a much bigger reduction in risk. This principle is explained in detail by Investopedia's diversification guide.
None of this works, though, if the underlying trade timing overlaps too much. Diversification only pays off when the strategies you combine actually behave differently under the same market conditions. Add three EAs that all buy XAUUSD pullbacks on the H1 chart and you haven't built a portfolio, you've built one trade with extra steps and triple the platform fees.
Understanding Correlation Between EAs
Correlation is the statistical measure of how closely two things move together, expressed as a coefficient between -1 and +1. Two EAs with a correlation near +1 rise and fall in lockstep, so running both barely changes your risk profile even though it looks like diversification on paper. A correlation near 0 means the EAs' results are essentially unrelated, which is what you actually want. A negative correlation, where one EA tends to do well precisely when the other struggles, is rarer in practice but extremely valuable when you can find it. Investopedia's explainer on correlation covers the math in more depth if you want to calculate it yourself from a spreadsheet of daily equity changes.
Two practical points matter more than the formula. First, correlation is not fixed. Two EAs that look uncorrelated in calm markets can suddenly move together during a liquidity shock or a major news release, because almost every instrument sells off or spikes together in a panic. Second, correlation between strategies is usually easier to estimate than correlation between instruments, since two EAs can trade the same pair with completely different entry logic and end up with a low correlation, while two different pairs traded with the same trend-following logic can end up highly correlated. Judge diversification by how the equity curves actually behave over several months, not just by the labels on the chart.
Types of EA Diversification
Not all diversification is created equal. Running three versions of the same trend-following EA on XAUUSD provides almost no diversification. Here are the four dimensions you should diversify across:
Strategy Diversification
This is the most impactful type. Different strategy types perform well in different market conditions:
| Strategy Type | Best Market Condition | Struggles When |
|---|---|---|
| Trend Following | Strong directional moves | Choppy, ranging markets |
| Mean Reversion | Range-bound, sideways markets | Strong breakouts and trends |
| Scalping | High liquidity, tight spreads | Low volume, wide spreads |
| Breakout | Consolidation followed by expansion | False breakouts, whipsaws |
| News Trading | High-impact economic releases | Low-volatility periods |
Instrument Diversification
Trading different instruments reduces your exposure to any single market. A portfolio trading XAUUSD, EURUSD, and S&P 500 spreads risk across commodities, forex, and equities. If gold has a bad month, your forex or index positions may compensate. Gold itself tends to trade with a documented relationship to the US dollar and to real interest rates, which the World Gold Council's research hub and CME Group's gold market data both track in detail, so an XAUUSD EA and a broad equity-index EA are unlikely to draw down for the same underlying reason on the same week.
That said, instrument diversification has a ceiling if every EA is still directional and trend-based. Combining a single-instrument specialist like a gold EA with EAs that trade a basket of correlated forex pairs (EURUSD, GBPUSD, and AUDUSD, for instance) provides less benefit than it appears, because those pairs often move together against the dollar. Our guide on single-symbol EAs versus multi-asset exposure walks through this trade-off in more detail if you're deciding between a specialist and a generalist approach.
Timeframe Diversification
Running EAs on different timeframes (M15, H1, H4, D1) captures different market dynamics. A scalping EA on M15 and a swing trading EA on H4 rarely draw down at the same time because they're responding to different price patterns. Shorter timeframes react to noise and short-term order flow, while higher timeframes filter that noise out and only respond to sustained moves, so the two rarely lose money for the same reason on the same day.
The trade-off is monitoring effort. An M1 scalper generates dozens of trades a day and needs a stable, low-latency connection to perform as backtested, while an H4 or D1 swing EA can tolerate more variance in execution timing. If you're mixing timeframes, make sure your infrastructure (VPS uptime, broker execution speed) can support the fastest EA in the portfolio, not just the slowest.
Broker and Account Diversification
The dimension traders overlook most is where the EAs actually execute. Running every EA through a single broker account concentrates a risk that has nothing to do with strategy quality: platform outages, broker insolvency, requotes during news spikes, or a margin call triggered by one EA that liquidates positions belonging to all of them. Spreading EAs across separate sub-accounts or separate brokers removes that single point of failure entirely.
| Account Structure | Risk Isolation | Complexity | Typical Cost |
|---|---|---|---|
| Same broker, same account, different charts | Low — shared margin and equity | Lowest, one login to monitor | No extra deposit needed |
| Same broker, separate sub-accounts | Moderate — isolated margin, shared broker risk | Moderate, multiple logins | Often free, minor admin overhead |
| Multiple brokers, separate accounts | High — isolated margin and broker counterparty risk | Highest, separate VPS or terminals per broker | Multiple minimum deposits, extra VPS resources |
For most traders running 3-5 EAs, same-broker sub-accounts strike a reasonable balance: you get independent margin and equity tracking per EA without the added cost and complexity of managing several brokers. Traders running larger portfolios, or anyone specifically worried about broker counterparty risk, tend to graduate to the multiple-broker model. Either way, make sure your VPS setup has the capacity to keep every terminal online 24/5, since a dropped connection defeats the purpose of running an automated portfolio in the first place.
How Many EAs Should You Run?
For most retail traders, 3-5 EAs is a sensible range. Here's the reasoning:
- 1-2 EAs: minimal diversification, high concentration risk
- 3-5 EAs: optimal diversification with manageable monitoring
- 6-10 EAs: diminishing returns on diversification, complex to manage
- 10+ EAs: over-diversification dilutes returns, and it's near-impossible to monitor
With 3-5 well-chosen, uncorrelated EAs, you capture most of the diversification benefit without the complexity overhead. Each additional EA beyond 5 provides only marginal risk reduction while adding management burden.
This mirrors a pattern that shows up across portfolio theory generally, not just in EA trading: the first few uncorrelated positions remove most of the idiosyncratic risk, and every position after that adds shrinking benefit. Once you're past 5-6 genuinely uncorrelated EAs, you're mostly adding operational risk (more platforms to patch, more logins to check, more places for a mistake to slip through) without a meaningful drop in portfolio volatility. If you find yourself wanting to run 8 or 10 EAs, it's worth asking honestly whether the newer additions are actually uncorrelated with what you already run, or whether you're chasing the comfort of "more strategies" rather than real risk reduction.
Monitoring load is the practical constraint most traders underestimate. Each EA needs its chart checked for connectivity, its parameters reviewed after a broker change, and its statement reconciled against your records. A solid VPS keeps everything running while you sleep, but you still need a routine for reviewing performance, or a growing EA count turns into a portfolio nobody is actually watching.
Capital Allocation Strategies
How you split your capital across EAs matters as much as which EAs you choose. Here are three proven approaches:
Equal Allocation
Split capital equally (e.g., 33% each for 3 EAs). It's simple, fair, and easy to rebalance, and it works well when you have similar confidence in all your EAs, since no single EA ends up dominating your portfolio returns.
Risk-Weighted Allocation
Allocate more capital to EAs with lower risk, measured by max drawdown and Sharpe ratio, so an EA with 10% max drawdown gets more capital than one with 30% max drawdown. This approach maximizes capital preservation while still letting you participate in each strategy's upside.
Performance-Weighted Allocation
Allocate more to EAs with better risk-adjusted returns, and review and rebalance monthly or quarterly. This approach takes more active management, but it can optimize overall portfolio performance over time. "Risk-adjusted" is the key phrase: raw return alone rewards the EA that simply took the biggest risk, not the one that traded well. The Sharpe ratio is the standard metric for comparing return per unit of volatility across EAs before you shift more capital toward one of them.
| Method | Best For | Rebalancing Effort | Main Risk |
|---|---|---|---|
| Equal Allocation | Traders with similar confidence in each EA | Low, rebalance occasionally | Underweights your best performer |
| Risk-Weighted | Capital preservation as the primary goal | Low to moderate | Can underweight strong strategies that carry more volatility |
| Performance-Weighted | Traders comfortable with active management | High, review monthly or quarterly | Recency bias — chasing a hot streak that reverts |
Whichever method you use, the goal is the same one described in Investopedia's overview of asset allocation: match how much capital sits behind each strategy to how much risk you're actually willing to accept from it, and revisit that allocation on a schedule rather than only after a big win or a big loss.
Important rule: Never allocate more than 40% of your total trading capital to a single EA. Even if one EA is dramatically outperforming the others, concentration risk can destroy your portfolio in a single bad month. Maintain at least a 40/30/30 split across three EAs.
Setting Up Multiple EAs on MT4/MT5
There are two ways to run multiple EAs, each with distinct advantages:
Option 1: Same Account, Different Charts
Attach each EA to a separate chart within the same MetaTrader account. This is simpler to manage but requires careful total exposure monitoring. Make sure your combined open positions don't exceed your account's risk tolerance.
Option 2: Separate Accounts (Recommended)
Run each EA on its own sub-account or separate broker account. This gives you complete risk isolation: if one EA has a catastrophic failure, the others stay unaffected. Most brokers allow multiple sub-accounts at no extra cost.
- Pros of separate accounts: Complete isolation, easier tracking, independent risk management
- Cons of separate accounts: More margin required overall, more platforms to monitor
Using Magic Numbers to Keep EAs From Interfering
If you're running multiple EAs on the same account, each one needs a unique magic number, an identifier attached to every order it places. Without distinct magic numbers, one EA can accidentally modify, close, or trail the stop loss on another EA's open position, since both are looking at trades on the same symbol without a way to tell them apart. Most commercial EAs let you set this in the input parameters. See our guide to EA magic numbers for the exact setup steps, and consult MQL5's documentation and articles if you want the underlying technical detail on how MetaTrader's order and position system uses this identifier.
This matters more than it sounds like it should. Two EAs sharing a magic number, or one EA that doesn't filter by magic number at all, is a common cause of unexplained behavior when traders first build a multi-EA setup: positions closing early, lot sizes that don't match what either EA's logic should have produced, or one strategy silently overriding another's stop loss.
Multi-EA Setup Rules and a Combined-Margin Check
Before you attach a second EA, go through these rules. They apply whether the EAs share one account or each has its own.
| Rule | Why it matters | How to check |
|---|---|---|
| One chart per EA instance | Two copies of the same EA on one symbol can open the same trades twice | Go through every open chart and the Experts tab |
| A unique magic number per EA | Without it, one EA can close or modify another's positions | Read each EA's inputs; if one EA's number is fixed, change the others |
| Combined margin fits | EAs can open trades at the same moment, especially around news | Add each EA's largest margin use and compare it with equity |
| Combined worst drawdown fits | Drawdowns can overlap even when daily correlation is low | Add the worst verified drawdowns in dollars |
| Same-symbol EAs filter by magic number | Two gold EAs see each other's XAUUSD positions | Run both together on a demo account first |
| Grid or no-stop-loss EA on its own account | A deep basket drags the margin level down for every EA on the account | Give it a separate account or sub-account |
Worked example (illustrative): on a $5,000 account, EA A can hold up to $300 of margin, EA B $500 and EA C $200. If all three are fully in the market at once, used margin is $1,000 and the margin level is $5,000 / $1,000 x 100 = 500% before any floating loss. A combined floating loss of $2,500 cuts equity to $2,500 and the margin level to 250%, so a shared account is only as safe as all three EAs together.
Golden Viper EA has a fixed magic number and an empty order comment that cannot be changed, and it runs on one XAUUSD chart per account, so any other EA on the same account must use a different magic number and must not manage every XAUUSD position. Each account also needs its own license key. For the wider limits behind these rules, see our EA risk management guide.
Golden Viper EA in a Diversified Portfolio
Golden Viper EA can fill the gold slot in a diversified EA portfolio, provided you size it for its grid risk. Here's how it fits next to other strategies:
- Specialized instrument: focused exclusively on XAUUSD, so it won't overlap with forex or index EAs
- Any chart timeframe: it runs on its own XAUUSD chart, so it doesn't clash with EAs on other charts, but it is in the market for much of the trading week
- Verified track record: a high share of winning baskets, but the rare losing basket can be deep, so it does not smooth a portfolio on its own
- Verified performance: verified live results on Myfxbook let you judge its drawdown before you choose an allocation
A sample diversified portfolio (illustrative only, not advice) might look like: Golden Viper EA (XAUUSD grid, 40% allocation) + a EURUSD trend-following EA (H1, 30% allocation) + a multi-pair scalping EA (M15, 30% allocation). This gives you instrument, strategy, and timeframe diversification in a manageable 3-EA setup. Learn more in our scalping vs. swing EA comparison.
Because it trades a single instrument, Golden Viper is easy to slot into a portfolio without guesswork about symbol overlap: you know exactly what it trades. Its exposure depends on basket depth rather than a schedule, though, so check its drawdown on Myfxbook against the rest of your portfolio before choosing an allocation. If you are still deciding which EA should fill the gold slot, our comparison of the best gold trading bots lays out the options.
Common Mistakes When Diversifying With Multiple EAs
Building a multi-EA portfolio is easy to get wrong in ways that look like diversification while doing very little. Watch for these:
- False diversification: running several EAs that all trend-follow the same pair on similar timeframes and calling it a portfolio. Check actual correlation, not just the marketing description of each strategy.
- Ignoring combined exposure: each EA might respect its own risk-per-trade limit individually, but if three EAs all open positions at once, your total account exposure can spike well beyond what you'd accept from any single EA. Review our risk management framework for EA trading for how to think about aggregate exposure across a portfolio, not just per-strategy.
- Underestimating combined costs: spreads, commissions, and swap charges apply per EA, per trade. A portfolio of EAs trading frequently on separate accounts can rack up meaningfully more in transaction costs than a single well-run strategy.
- Chasing recent performance: shifting capital toward whichever EA had the best last month is a common way to buy high and sell low across your own portfolio. Our piece on why forex EAs fail covers this pattern and several related ones in more depth.
- Never stress-testing the combination: backtesting each EA individually tells you nothing about what happens when all of them draw down at once during a genuine market shock. Run a rough worst-case scenario before you commit real capital.
- Trusting vendors who promise a "risk-free" or "guaranteed" diversified portfolio: no combination of EAs eliminates risk, only reduces it. Both the CFTC and the FTC's guidance on investment scams flag guaranteed-return language as a standard red flag in retail trading products, and that applies just as much to a bundle of EAs as to a single one.
Measuring Whether Your Portfolio Is Actually Diversified
You don't need institutional software to check whether your EAs are genuinely uncorrelated. A few practical checks go a long way:
Compare Equity Curves Side by Side
Export the daily equity or balance history for each EA (most platforms and verified tracking services like Myfxbook make this straightforward) and plot them on the same chart. If every line dips on the same days, your portfolio is more correlated than it looks on paper, regardless of how different the underlying strategies claim to be.
Calculate a Simple Correlation Coefficient
Most spreadsheet tools include a built-in correlation function. Feed it each EA's daily percentage change in equity and it will return a coefficient between -1 and 1. Recalculate this every few months, since correlation between strategies drifts as market conditions change.
Track Combined Drawdown, Not Just Individual Drawdown
The number that actually matters for your account survival is the peak-to-trough decline of your combined equity across every EA, not any single EA's isolated drawdown statistic. Our guide to understanding maximum drawdown explains how to calculate and interpret this figure for a single strategy, and the same math applies to your blended portfolio equity curve.
Frequently Asked Questions About EA Diversification
How many EAs should I run at the same time?
Running 3-5 uncorrelated EAs is typically optimal. Fewer than 3 doesn't provide meaningful diversification, while more than 5 becomes difficult to monitor. Each EA should trade different strategies, instruments, or timeframes.
Does running multiple EAs reduce risk?
Yes, running multiple uncorrelated EAs reduces overall portfolio risk. When one EA is in drawdown, another may be profitable. The key word is "uncorrelated": running three EAs that all trade XAUUSD trend-following provides minimal diversification.
How do I allocate capital between multiple EAs?
Start with equal allocation (e.g., 33% each for 3 EAs), then adjust based on risk-adjusted returns over time. Never allocate more than 40% to a single EA. Keep 10-20% as reserve capital for opportunities or margin buffer.
Can I run multiple EAs on the same MT4 account?
Yes, attach each EA to a different chart in MT4/MT5. However, separate accounts provide better risk isolation. See our MT4 setup guide for detailed instructions on running multiple EAs.
Should I diversify across instruments or strategies?
Both. The most effective diversification combines different instruments (XAUUSD, EURUSD) with different strategies (trend-following, mean-reversion). Strategy diversification is often more impactful because different strategies perform well in different market conditions.
What correlation level should I look for between EAs?
Aim for a correlation coefficient below 0.3 between any two EAs, measured on their daily or weekly equity curve changes. Above roughly 0.7, the EAs are effectively moving together and provide little real diversification, even if they use different indicators or names.
Should I run EAs from different developers for better diversification?
It can help, since different developers often build genuinely different logic, but it's not a requirement on its own. What matters is the strategy type, instrument, and timeframe each EA trades, not who coded it. Two EAs from different vendors that both trend-follow XAUUSD on H4 are still highly correlated.
How much extra capital do I need to run multiple EAs safely?
Beyond the capital allocated to each EA's positions, keep a reserve of 10-20% of total account equity to absorb margin spikes if several EAs open positions at once. If you're spreading EAs across separate broker accounts, each one also needs its own minimum deposit and margin buffer.
Can having too many EAs actually hurt my returns?
Yes. Beyond roughly 5-6 uncorrelated EAs, each additional strategy adds only a small further reduction in portfolio volatility while diluting capital allocated to your strongest performers and adding monitoring overhead. Over-diversification can drag average returns toward the mediocre middle.
Can two EAs trade XAUUSD on the same account?
Yes, if each uses its own magic number and only manages its own positions. If one EA manages every XAUUSD position on the account, it will interfere with the other, so test the pair on a demo account first or give each EA its own account.
How do I calculate combined margin for several EAs?
Add the largest margin each EA can use at the same time, then divide account equity by that total and multiply by 100 to get the margin level. For example, $1,000 of combined margin on a $5,000 account is a 500% margin level before any floating loss, and floating losses push it down for every EA at once.
Let Golden Viper EA trade gold for you
Automated XAUUSD grid trading for MT5 cent accounts, verified live on Myfxbook. One-time $299, lifetime access.
Get Lifetime Access — $299