Blog/Web solutions
7 min read

Analyse MT4 and MT5 backtests and build an EA portfolio

Why your MT4 and MT5 EA backtests don't warn you about combined risk, how to measure correlation between strategies and how to combine them into a portfolio, step by step. Free for now.

You have three Expert Advisors (EAs, MetaTrader's trading robots) and each one's backtest, in its Strategy Tester report, looks good. You run them at the same time on the same MT4 or MT5 account and, in a bad week, all three lose together. None of the reports, looked at on its own, warned you.

A report tells you how one strategy did, not how it gets on with the others. That's why I designed the Trading section of CloudPortfolios: it reads your MetaTrader 4 and 5 reports, analyses each strategy and helps you combine them into a portfolio of strategies. In this article I'll first explain the problem, which matters even if you never use the tool, and then how to solve it step by step.

Why looking at each strategy on its own is misleading

A portfolio's maximum drop (the drawdown, the largest fall from a peak) isn't simply the sum of its strategies' drawdowns: with the same lot size, it's at most that sum. Where it ends up depends on something no single report shows.

Made-up numbers make it clear straight away. Picture two EAs with a 20% drawdown each. If they lose in the same months, together they get close to that sum. If one tends to lose when the other wins, they partly offset each other and the combined drop is much smaller.

Two scenarios with made-up curves. On the left, two strategies that lose in the same months: the portfolio curve falls almost as much as the two added together. On the right, two strategies that lose at different times: the portfolio falls much less because one offsets the other.

What decides which case you're in is the correlation between strategies: how much they move together. And that doesn't appear in the report of any single strategy.

A report tells you how a strategy did. What it doesn't tell you is how it gets on with the others, and that's where the portfolio's risk hides.

One caveat: correlation is a historical measure. It can change over time and tends to rise precisely in the worst market moments, when everything falls at once. That's why it works as a clue, not a guarantee.

How it's done by hand, and where it gets complicated

You can do it without any tool. You export each EA's history, put it in a spreadsheet, calculate each month's return, compare the months of each pair, add up the curves with the lot size you want and measure the drawdown again. It works.

The problem is volume. With two EAs it takes an afternoon. With ten, or when you want to try other lot sizes, it becomes tedious and it's easy to get a formula wrong.

Task In a spreadsheet In the Trading section
Preparing the data Export and tidy each history Drag and drop the reports
Correlation between strategies One formula per pair Calculated for every pair
Trying other lot sizes Rebuild the curves by hand Lot multipliers
Finding the best combination Try them one by one An engine that tests thousands
Setting aside a test period You have to build it Out-of-sample date

The section doesn't do anything you couldn't do yourself with patience. What it does is save you the spreadsheet hours and the risk of a badly copied formula.

Step 1: upload your reports

Go to Trading and drag in your reports. These are the formats it accepts:

Platform File Status
MT4, Strategy Tester .htm or .html Available
MT5, Strategy Tester .html Available
MT4, account statement HTML report Beta
MT5, Excel report .xlsx Beta
MT5, account history HTML report Beta
Other platforms CSV using the site's template Available

Beta mode hasn't yet been tested with enough real files, so it's worth checking the result carefully.

You don't need to sign up: without an account, your systems are kept for the browser session (up to 24 hours); with an account, free for the time being, they're saved. If you want to try it without your own files, there's a sample reports button, and those reports are made up.

Step 2: analyse each strategy

Each report becomes a system in the list, with its net profit, profit factor, maximum drawdown, percentage of winning trades and number of trades. When you open it you see the equity curve, the month-by-month return, trades by hour and by day of the week, and a few more measures. If any of them is unfamiliar, this is the idea behind each one:

Measure What it tells you
Profit factor How much the winning trades make for every euro the losing ones lose
Maximum drawdown The largest fall from a peak in the curve
Recovery factor Net profit divided by maximum drawdown
Sharpe Return per unit of volatility
Sortino Like Sharpe, but it only counts downside volatility
Calmar Annual return divided by maximum drawdown

Sharpe, Sortino and Calmar only appear with 12 months of history or more, because with less time they say very little.

One limit worth knowing: equity is measured at the close of each day, so the drawdown may come out lower than the Strategy Tester's, which looks within the day.

If your strategies trade very different sizes, the Normalise button gives them a lot multiplier to equalise their historical drawdown so you can compare them on equal terms. It's a past figure, not a limit on what they can lose.

Step 3: combine them into a portfolio

Tick two or more systems and click Create portfolio. The report brings the curves together and adds what you wouldn't see separately: the monthly correlation of each pair, how much each strategy contributes to profit and how much to risk, and the lot multipliers.

Correlation needs at least six months in common, and with so little history it's a very weak estimate. The more history your strategies share, the more you can trust that number.

If you set an out-of-sample date, you see the analysis of the period before and the period after separately. It's the simplest way to check whether what looked good still holds up with data that wasn't used to decide.

Step 4: let the engine search for combinations

With your systems ticked, Optimise with the engine opens the settings. You choose the dates, where the out-of-sample period starts (required; by default, the last 30% of the history), the objective (Calmar, Sharpe, minimum drawdown, recovery factor or profit factor) and how deep the search goes.

Depth Evaluations Approximate time
Quick Up to 30,000 About 20 seconds
Deep Up to 1.5 million About five minutes

You can also limit the number of systems (from 2 to 20), the maximum drawdown, the minimum return and the maximum correlation between pairs.

Timeline of the strategies' history split into two periods. The first 70%, in-sample, is where the engine picks the combinations. The last 30%, out-of-sample, is where you check whether they still work on data the engine hasn't seen.

The engine decides using the in-sample period only. The results table shows each combination's in-sample and out-of-sample results side by side, plus two benchmarks: all your systems together and the average of random combinations of the same size. If a combination shines in the first period and not in the second, be wary of it. And if it doesn't clearly beat the average of random combinations, it doesn't have much merit either.

What the tool doesn't do

This part matters as much as the rest, because a tool like this can give a false sense of security.

The out-of-sample period only counts if each EA was optimised in MetaTrader with data from before that date. The first row of results is the best among many, so its in-sample result is optimistic by definition. A backtest doesn't capture slippage or execution delays, and the engine runs one search at a time, with the page open.

A combination that also works in the out-of-sample period isn't guaranteed to work in the future. And if you tweak the settings while looking at that period and run the search again, it's no longer truly out of sample, because you've already used it to decide. The portfolio's drawdown is the one from past data; the future can be worse. Remember too that EAs usually trade leveraged products, where you can lose money quickly. Everything is hypothetical and predicts nothing.

The section is free for the time being. Try it with your reports and, in the video, watch it working step by step.


For educational and informational purposes only, published on 29 November 2026. This is not financial, tax or legal advice, a personal investment recommendation, or an offer or solicitation to buy any product. The reports and strategies in the example are samples or made up and are used only to show how the tool works. Results are hypothetical, based on past data, with the costs shown in each report and excluding taxes, and they do not reflect slippage or execution delays. Risk warning: leveraged products such as CFDs are complex, can lose money rapidly, even more than the capital deposited, and are not suitable for all investors. Past performance is not a reliable indicator of future results. Figures and features may have changed since publication. Consult an authorised professional before making decisions. European Financial Advisor (EFA) certificate no. 35.181.

Analiza tus estrategias de MT4 y MT5 y crea una cartera

Educational content, not investment advice. Examples use made-up numbers. Past performance does not guarantee future results.