Merge Backtest Reports

Merge MT4/MT5 Backtest Reports Online — Free Portfolio Simulation

Combine separate EA backtest HTML files into one accurate portfolio simulation with shared balance and proper drawdown stacking.

Updated March 2026How-To Guide7 min read

You've backtested five Expert Advisors individually. Each one looks promising. Now you want to see what happens when you run them all on the same account. The obvious question: how do you merge MT4 backtest reports into a single portfolio view?

It turns out the answer is more nuanced than just combining trade lists. The method you use to combine backtest reports determines whether your results are accurate or dangerously misleading. This guide explains the right way to do it — and why most approaches get it wrong.

The Problem

Separate Backtest Files, No Combined View

MetaTrader's Strategy Tester generates one HTML report per backtest. If you're testing multiple EAs, you end up with a folder full of separate report files — one per EA, per currency pair, per parameter set.

Each report shows that EA's performance in isolation: its own equity curve, its own drawdown, its own profit factor. But none of these reports tell you what matters most: what happens when all these EAs trade on the same account simultaneously?

This is the gap that drives traders to search for ways to merge their backtest reports. The need is real. But the most common approaches are fundamentally flawed.

Why It's Wrong

Why Simply Merging Trade Lists Is Wrong

⚠️ The Naive Approach Gives Wrong Results

The most intuitive approach — combining all trades from all EAs into one big trade list sorted by date — produces results that look right but are mathematically incorrect for any EA that scales position sizes.

Here's why simple trade merging fails:

No Shared Balance

When you merge trade lists, each trade's profit/loss is calculated based on the balance at the time of that individual EA's backtest. But on a real account, all EAs share the same balance. If EA #1 just had a $2,000 drawdown, the account balance is lower — which means EA #2's lot size calculation would produce smaller lots. The merged approach doesn't capture this.

No Lot Scaling Interaction

Most EAs calculate lot sizes as a percentage of account balance. When five EAs share one account, the lot sizing for each EA depends on what every other EA has done up to that point. This compound interaction is completely lost when you merge pre-calculated trade lists.

No True Drawdown Stacking

Individual backtest reports show each EA's drawdown independently. But drawdown stacking — when multiple EAs draw down simultaneously — is the primary risk of running multiple EAs. Simply overlaying equity curves underestimates this risk because it doesn't account for the compounding effect on a shared balance.

Margin Conflicts Ignored

Multiple EAs opening positions simultaneously consume margin from the same pool. If five EAs each use 10% of available margin individually, they could collectively demand 50% — or more if positions overlap. Simple merging doesn't check for margin availability.

The Right Way

How FXOptimize Merges Backtest Reports Properly

FXOptimize doesn't just merge trade lists. It performs an event-based replay simulation that accurately models what would happen on a real account:

  • Chronological event processing: Every trade open, trade close, and balance change from all EAs is placed on a single timeline and processed in order
  • Shared account balance: All EAs draw from and contribute to one account balance, exactly like a live account
  • Dynamic lot recalculation: Position sizes reflect the actual account balance at the moment each trade opens
  • Concurrent position tracking: The simulation tracks all open positions simultaneously, including their combined margin requirement
  • Accurate drawdown measurement: Drawdown is calculated on the combined equity, not overlaid from individual curves

The result is a portfolio simulation that produces the same equity curve, drawdown, and risk metrics you'd see on a real account running those same EAs.

Step-by-Step

How to Merge Your Backtest Reports

1

Export Your Backtest Reports

In MetaTrader, go to the Strategy Tester, run each EA's backtest, then right-click the results and select "Save as Report" (MT4) or use the report export in MT5. You'll get an HTML file for each EA.

2

Upload to FXOptimize

Open fxoptimize.com in your browser. Drag and drop all your HTML backtest report files onto the upload area. FXOptimize automatically detects whether each file is an MT4 or MT5 report and parses it accordingly.

3

Review Individual EA Metrics

Before combining, FXOptimize shows you each EA's individual performance: profit factor, max drawdown, Sharpe ratio, and 14 more risk metrics. This is your baseline.

4

Run Portfolio Simulation

Click to simulate the portfolio. FXOptimize tests every possible combination of your uploaded EAs (all 2ⁿ combinations) using true shared-balance simulation. You'll see which combination produces the best risk-adjusted returns.

5

Analyze Combined Results

Review the combined equity curve, correlation heatmap, drawdown profile, and all 17 risk metrics for your portfolio. Run Monte Carlo simulation to stress-test the results.

Format Support

MT4 and MT5 Reports: Both Supported

FXOptimize supports both MetaTrader 4 and MetaTrader 5 backtest report formats:

  • MT4 Strategy Tester reports: The classic HTML format with the "Strategy Tester Report" header. Includes all trade history, balance operations, and summary statistics.
  • MT5 Strategy Tester reports: The newer XML-based HTML format from MetaTrader 5. Includes more detailed position and deal history.
  • Mixed portfolios: You can combine MT4 and MT5 reports in the same portfolio. FXOptimize normalizes the data automatically.

The parser handles edge cases like partial closes (MT5), commission structures, swap calculations, and different lot notation formats.

The Output

What You Get After Merging

After FXOptimize processes your combined backtest reports, you get a comprehensive portfolio analysis:

  • Combined equity curve — the actual portfolio performance with shared balance
  • 17 risk metrics — profit factor, Sharpe ratio, Sortino ratio, max drawdown, recovery factor, and more
  • Correlation matrix — see which EAs move together (and which actually diversify)
  • Drawdown analysis — when and how deep the portfolio draws down, including stacking effects
  • Pareto-optimal combinations — the mathematically best return-to-risk EA combinations from all possibilities
  • Monte Carlo stress test — how the portfolio performs under randomized trade sequences
Pricing

Free to Use, No Signup Required

FXOptimize's merge and simulation functionality is available for free. There's no account creation, no email required, and no trial period. Your backtest data stays in your browser — nothing is uploaded to any server.

The free tier allows you to analyze portfolios of up to 3 EAs. For larger portfolios, the Solo plan at $39/month (or $299/year) supports unlimited EAs and additional features like advanced Pareto optimization.

Upload Your Backtests Now — Free

Drag and drop your MT4 or MT5 backtest HTML files and see true portfolio simulation results in seconds. No installation, no signup.

Merge Your Backtests Free →
Related

Related Resources