Once one Expert Advisor (EA) has been through its validation, the next idea is often to run two or three together. Different strategies, different symbols, perhaps different timeframes. The hope is that when one is in a drawdown, another will not be, and the account as a whole will move more smoothly than any single EA.
That can happen. It depends entirely on how the EAs behave relative to each other, and especially on how they behave on bad days. Strategies that look unrelated most of the time can lose together when markets move sharply, and that is exactly when it matters.
This guide covers how to test a small EA portfolio before running it: building comparable equity series, measuring correlation properly, finding hidden overlap, calculating combined drawdown, and stress-testing the combination as a whole.
One point up front: combining EAs does not add evidence that any of them works. Each one still needs its own validation. Portfolio testing answers a different question: given strategies you already trust, how will they behave together on one account?
Why combined drawdown isn't the sum or the average
If two EAs always lost money on the same days, the account's worst drawdown would be close to the sum of their individual worst drawdowns at the sizes you run them. If their losing periods never overlapped, it could be much smaller. Real strategies sit somewhere in between, and where they sit can change over time.
Two shortcuts give the wrong answer:
- Averaging the individual drawdowns assumes the losing periods will not overlap. That understates risk whenever they do.
- Adding the individual drawdowns is a cautious upper limit for the historical period, but it says nothing about how often the EAs actually lose together.
The only way to see the combined drawdown is to combine the equity series day by day and measure the result directly.
Step 1: Build comparable daily equity series
Start with each EA's backtest over the same period, at the size you intend to run it, in the same account currency.
- Use equity, not just closed trades. A position that is deep in loss but not yet closed still counts against the account. If one EA holds trades for days while another closes quickly, closed-trade figures misrepresent when the losses actually happened.
- Sample daily. Record each EA's equity at the same time each day. Daily data is detailed enough to see overlapping losses and coarse enough to align across strategies.
- Use only the overlapping period. Every EA needs data for every day in the comparison. Do not fill missing history with zeros, because that invents flat periods that make the strategies look less related than they are.
- Use consistent sizing. If one EA risks much more per trade than the others, it will dominate the combination. That may be what you intend, but decide it deliberately.
Step 2: Measure correlation, then measure it on bad days
The usual measure is the correlation of daily profit and loss between each pair of EAs. A value near +1 means they tend to gain and lose on the same days; near 0 means little relationship; negative means they tend to move in opposite directions.
Ordinary correlation has two weaknesses for this purpose.
It is dominated by ordinary days
Most days are quiet, and quiet days dominate the calculation. Two EAs can show low correlation overall and still lose heavily together on the few days when markets move sharply. Those are the days that create drawdowns.
So also check correlation on bad days only. Take the days when the combined portfolio had its worst results, for example its worst tenth of days, and look at how the EAs behaved on those days. If they all lost together, the overall correlation figure was flattering the portfolio. Bear in mind that this uses far fewer days, so treat the figure as a rough guide rather than a precise number.
It changes over time
Correlation measured over a whole backtest is an average across very different periods. Calculate it over rolling windows, such as six or twelve months, and look at the range. Strategies whose correlation swings from low to high depending on conditions offer less dependable diversification than one figure suggests. Our guide to market regime testing covers how to see which conditions each strategy depends on.
Step 3: Look for hidden shared exposure
Correlation figures come from history. Shared exposure can tell you about overlaps history hasn't shown yet.
- Currency exposure. An EA long on EURUSD, another long on GBPUSD and a third short on USDCHF are all, in part, short the US dollar. Add up each EA's typical exposure by currency, not by symbol.
- Same signal family. Two trend-following EAs on different pairs often enter and exit at similar times, because trends across related markets tend to start and end together.
- Same session and timing. EAs that all trade the same session open, or all hold through the same news releases, share timing risk even on different symbols.
- Same market. Two EAs trading the same symbol are the most obvious overlap and the easiest to miss when they were developed separately.
If you find a large shared exposure, test what happens when that factor moves sharply against the portfolio, using the days in history when it did.
Step 4: Calculate the combined drawdown
Add the daily profit and loss of all the EAs together, build the combined equity curve, and measure its maximum drawdown. Compare it with each EA's own drawdown and with the sum of the individual drawdowns.
This short Python script does that from one daily equity file per EA. The file names and columns are placeholders.
import pandas as pd
# One CSV per EA: date, equity (daily equity from its backtest, same currency, intended size)
files = {"ea_trend": "ea_trend.csv", "ea_range": "ea_range.csv", "ea_breakout": "ea_breakout.csv"}
equity = pd.DataFrame({
name: pd.read_csv(path, parse_dates=["date"], index_col="date")["equity"]
for name, path in files.items()
}).dropna() # keep only dates where every EA has a record
daily = equity.diff().dropna() # daily profit and loss per EA
def max_drawdown(pnl):
curve = pnl.cumsum()
peak = curve.cummax().clip(lower=0)
return (curve - peak).min()
combined = daily.sum(axis=1)
worst_days = combined <= combined.quantile(0.10)
print("Correlation, all days:\n", daily.corr().round(2))
print("Correlation, worst 10% of portfolio days:\n", daily[worst_days].corr().round(2))
for name in daily:
print(name, "max drawdown:", round(max_drawdown(daily[name]), 2))
print("Sum of individual drawdowns:", round(sum(max_drawdown(daily[c]) for c in daily), 2))
print("Combined max drawdown:", round(max_drawdown(combined), 2))
print("Date of combined low:", (combined.cumsum() - combined.cumsum().cummax().clip(lower=0)).idxmin())
Then read the result:
- Where the combined drawdown sits between the largest single-EA drawdown and the sum of all of them tells you how much the losing periods overlapped in this history.
- When the combined drawdown happened matters. Look at that period and see which EAs contributed. If one strategy caused most of it, the portfolio's risk is mostly that strategy's risk.
- How long the combined drawdown lasted matters as much as its depth. Overlapping losses can stretch the time spent below a previous high even when the depth looks moderate.
Step 5: Stress the combination, not the parts
A single backtest gives one historical path for the portfolio. Monte Carlo resampling gives a range of plausible paths. Our guide to Monte Carlo testing explains the methods; for a portfolio, one detail changes the answer completely.
Resample days jointly, not strategies separately. If you shuffle each EA's trades independently and then add them up, you destroy the relationship between them. Losses that historically came together get spread apart, and the simulated combined drawdowns come out smaller than they should.
Instead, resample whole days, or better, blocks of consecutive days, with every EA's result for that day kept together. That keeps the correlation, including the bad-day correlation, inside every simulated path. Blocks of several days also keep losing streaks that run across consecutive days intact.
Read the tail of the combined distribution, not the median. The question is how bad the combined drawdown could plausibly be, given how these strategies have behaved together.
Step 6: Check simultaneous open risk and margin
Drawdown measures realised and floating losses after the fact. Before that, the account has to carry every EA's open positions at the same time.
- Peak simultaneous open risk. Add up the risk to stop of every open position across all EAs at each point in the backtest, and find the highest total. That is the loss the account could take if every open trade hit its stop together.
- Margin. Check the highest combined margin requirement. Several EAs that each use modest margin can together use enough to cause margin problems in a fast market.
- Daily loss rules. If the account has a daily loss limit, as prop-firm accounts usually do, the limit applies to the combined account, not to each EA. Our guide to position sizing under a daily loss limit covers how to budget open risk, and our guide to testing against prop-firm drawdown rules covers how to replay those rules on an equity series, which you can apply to the combined series from Step 4.
Step 7: Size the portfolio without overfitting it
Once you have the combined picture, it is tempting to optimize the weights: run each EA at whatever size made the backtest look smoothest. That fits the portfolio to history in exactly the way parameter optimization fits a single strategy. With only a few EAs and one historical period, optimized weights mostly reflect which strategies happened to do well when the others did badly. Our guide to the warning signs of an overfit backtest describes the same problem for a single strategy.
Simpler sizing rules are usually more dependable:
- Equal risk per trade across EAs, so no single strategy dominates by accident.
- Volatility-scaled sizing, where each EA is sized so its typical daily swing is similar.
Whichever rule you use, set it before looking at the combined result, then check that the combined drawdown and open risk fit the account.
Account mechanics that make EAs interfere
Strategies that are independent in a backtest can interfere once they share an account.
- Netting accounts. MT5 accounts can be netting or hedging. On a netting account there is one position per symbol, so two EAs on the same symbol will merge, offset or close each other's trades. Separate backtests will not show this.
- Magic numbers. Every EA must tag its orders with its own magic number and only count or close positions with that number. Without this, one EA can close another's trades.
- Account-level controls. An equity stop or daily guard written into one EA only sees that EA's trades unless it reads the whole account. Decide which EA, if any, is allowed to act on the account as a whole.
- Shared resources. Several EAs on one terminal share its connection and its processing. Check that the setup can handle all of them at their busiest times. Our EA pre-live checklist covers infrastructure checks.
Common EA portfolio mistakes
- Averaging individual drawdowns. It assumes losses never overlap.
- Using closed-trade results only. Floating losses on long-held trades move the real drawdown to different dates.
- Filling missing history with zeros. It invents quiet periods and lowers apparent correlation.
- Trusting whole-period correlation. Check bad days and rolling windows.
- Missing shared currency exposure. Different symbols can carry the same underlying bet.
- Resampling each EA separately in Monte Carlo. It breaks the correlation and understates the tail.
- Optimizing portfolio weights on the backtest. It fits the combination to one history.
- Ignoring netting and magic numbers. EAs that are fine alone can interfere on one account.
EA portfolio checklist
- Every EA individually validated before being combined
- Daily equity series, including floating losses, over the same period and at intended sizes
- Pairwise correlation of daily results calculated for all days and for the worst days
- Rolling correlation checked for large swings over time
- Shared exposure by currency, signal family, session and symbol listed
- Combined equity curve built and its maximum drawdown, date and duration recorded
- Monte Carlo run on whole days or blocks of days, keeping EAs together
- Peak simultaneous open risk and combined margin checked
- Any account-level loss rules replayed on the combined series
- Sizing rule fixed in advance, not optimized on the backtest
- Account mode, magic numbers and account-level controls checked on demo
Frequently asked questions
Can I run multiple EAs on one MT5 account?
Yes, with care. Each EA needs its own magic number and should only manage its own positions. On a netting account, EAs trading the same symbol share one position, which can cause them to interfere, so check the account mode first. Test the combination on a demo account before running it live.
What is a good correlation between two trading strategies?
Lower is generally better for diversification, but the overall figure is less important than how the strategies behave on bad days. Two EAs with low correlation overall can still lose together when markets move sharply. Check correlation on the portfolio's worst days and over rolling windows as well.
How do I calculate the combined drawdown of several EAs?
Build each EA's daily equity series over the same period at the sizes you intend to run, add the daily changes together, and measure the maximum drawdown of the combined curve. Neither averaging nor adding individual drawdowns gives the right answer.
Does running several EAs reduce risk?
It can reduce the combined drawdown compared with the sum of the parts, but only to the extent that the strategies don't lose at the same time. It also adds risks of its own: shared exposure, higher simultaneous open risk and account interference. It does not make weak strategies sound, and it does not guarantee any outcome.
Should I optimize how much to allocate to each EA?
Be cautious. Weights optimized on a backtest fit the portfolio to one history in the same way parameter optimization fits a single strategy. Simple rules, such as equal risk per trade, set in advance, are usually more dependable.
Want a second pair of eyes?
Start with our free Sample Stress-Test Report. It walks one anonymized, illustrative strategy through a full stress test, start to finish, so you can see what rigorous validation looks like before you test your own.
Read the Sample Stress-Test ReportWant your own backtest checked? The Strategy Audit + 60-minute call is a paid service at a launch price of £100, credited in full against our build and portfolio offers. You send an MT4/MT5 Strategy Tester report or trade-list CSV; what we can check depends on the files you supply, and walk-forward and parameter sweeps are not included because they need the strategy itself. It is analysis of strategy testing, not investment advice, and does not promise any trading or evaluation outcome. See the Strategy Audit
Disclaimers
CollosoTrading provides educational content and analytical services for retail and professional algorithmic traders. We do not provide regulated investment advice, financial advice, or personal recommendations. Trading derivatives, leveraged products, and CFDs carries a high level of risk and may result in losses exceeding deposits. Past performance, including any verified or unverified historical results referenced on this site, is not indicative of future results. Consult an independent regulated financial adviser before making investment decisions.
All figures are backtests or simulations unless marked LIVE. Hypothetical or backtested performance results have inherent limitations and may not reflect actual trading. No representation is made that any account will or is likely to achieve profits or losses similar to those shown. Individual results vary. This article contains no performance figures from any strategy or account. We do not guarantee the outcome of any prop firm challenge.