drawguard.io logodrawguard.io
GuidesCompareLive demo
Guides

How to check the correlation between your EAs in MT5

Updated Nov 22, 2026 · 5 min read

Short answer: MT5 has no report that compares one EA with another. To check whether your EAs lose together, total each EA's profit per day, using its magic number, then compute the Pearson correlation between those daily series. A value near +1 means the EAs win and lose on the same days. A value near 0 means one tells you little about the other. Negative means they tend to offset each other.

This guide shows how to build that number, why the daily closed profit it uses can hide the days that matter, and how to check overlap in drawdown directly.

Why correlation between EAs matters

Several EAs on one account share one balance and one loss limit. If two of them lose on the same days, they behave like one bet with double the size. If they lose on different days, their dips partly cancel. Per-EA backtests can't tell you which case you're in, because each one is tested alone. Combined drawdown is the account-level result of this overlap.

Correlation is a number for how much two daily series move together. MQL5 community write-ups describe it the same way: a coefficient of +0.72 between two EAs means they win and lose on roughly the same days, and 0.2 means one EA's day says almost nothing about the other's (MQL5 article on a multi-EA portfolio scorer, MQL5 blog post on two gold EAs).

What MT5's own reports do and don't compare

The Strategy Tester report does include correlation figures, such as LR Correlation and Correlation (Profits, MFE). Per the MetaTrader 5 help, they describe the trades of one test: how straight the equity line is, and how profits relate to the best price move during each trade. None of them compares EA A with EA B. The same limit applies to a live account: the History tab shows each deal's magic number, but nothing compares the magics with each other.

How to calculate it yourself

  1. Get daily profit per magic number. Loop over the account's history deals in MQL5 (HistorySelect, HistoryDealGetInteger(ticket, DEAL_MAGIC)) and add each deal's profit, swap, commission and fee to the day it closed. The per-magic script in this guide gets you most of the way. Group by the deal's close date instead of one running total.
  2. Put the daily totals side by side. One column per magic number, one row per day. Fill days with no closed trades with 0.
  3. Compute the Pearson correlation of each pair of columns. In a spreadsheet, CORREL(A:A, B:B) does it.
  4. Read the matrix. Look for pairs near +1. Those are the ones to treat as a single position when you size risk.

Some limits to keep in mind:

  • You need enough days. A correlation from three weeks of trading is mostly noise. Use months, and more if the EAs trade rarely.
  • Quiet days dominate. If both EAs sit flat on most days, the zeros pull the number around. Compare the days when both traded as well.
  • Correlation can rise when it hurts. EAs that look independent in calm markets can still lose together in one violent session. The full-history figure doesn't show that.

Daily closed profit misses the dips

The calculation above uses closed profit, so each result lands on the day a trade closes. A grid or recovery EA can sit deep underwater for hours and close at a small loss, as in this look at grid baskets. Two EAs can then show low correlation in closed profit while their open positions were underwater at the same time. That is the overlap a prop firm's equity-based limit counts.

So for drawdown, compare the dips themselves. Here is one day on a 100k demo account in DrawGuard, split by magic number:

One day split by magic number: the account's maximum drawdown was $3,592 (3.36%), all of it from magic 1102, which closed the day at only -$215

On this day one EA carried all of the drawdown, so the other two added nothing to it. If instead two magic numbers each carried a large share on the same day, that is overlap, whatever their closed-profit correlation says.

See it on a live demo portfolio

Three simulated prop accounts in DrawGuard. Drawdown broken down by symbol, magic number and comment. No sign-up needed.

Open the demo →

How to check overlap with DrawGuard

DrawGuard records the account's equity and every open position, with its magic number and floating profit, every 60 seconds, through a free EA on one chart. Every day, week and month is broken down by symbol, magic number and comment, showing which one caused each drawdown. That attribution is kept for finished periods.

To check overlap, go through your worst days and note which magic numbers show up. The same pair on several bad days is a pair that loses together. Start with two EAs on the same symbol, which often share their worst days.

You do this comparison by eye. This guide doesn't claim DrawGuard calculates a correlation coefficient for you. Data starts when the EA connects, and floating drawdown from before can't be recovered. DrawGuard monitors and warns; it never closes trades. You can look at the dashboard on three simulated accounts with no sign-up.

What to do with the result

  • Pairs near +1: treat them as one position. Lower the lots of one of them, or keep their combined risk inside your limit.
  • Pairs near 0: these are the useful ones to run together, as long as they still show different bad days when you check the drawdown.
  • Negative pairs: good news, if the offset also shows up in drawdown and not only in closed profit.
  • Redo the numbers every few months. Markets change, and so do EA results.

FAQ

Can MT5 show the correlation between two EAs?

No. The Strategy Tester report has correlation figures, but they describe the trades of one test. Nothing in MT5 compares one EA's results with another's.

What is a good correlation between two EAs?

Closer to 0, or negative, is better for combined drawdown. A value near +1 means the EAs win and lose on the same days and act like one larger position.

Is correlation of closed profit enough?

Not for drawdown. Closed profit is booked when a trade closes, so it misses floating losses that overlap in time. Compare per-magic drawdown on the bad days as well.

How many days do I need?

Use months of daily data. A few weeks of results can produce a number that changes a lot with one big day.

See your own drawdown per EA, live

Attach the DrawGuard EA to one chart and every strategy on the account is tracked from then on: equity, drawdown, and which magic number caused it. One account is free forever.

Explore the live demo →Start free

More guides

  • Maximal vs relative drawdown in the MT5 Strategy Tester report

    How to read the absolute, maximal and relative drawdown lines in an MT5 Strategy Tester report, with a worked example, and how they compare with live drawdown.

  • How to find the maximum drawdown of a live MT5 account from its history

    MT5's reports can give a maximum drawdown from closed history, but floating drawdown from the past is estimated, not recorded. What you can get and what to record from now on.

  • MT5 drawdown indicator: what an on-chart one shows and what it loses

    An MT5 drawdown indicator shows live equity drawdown on the chart. Its peak resets when it reloads and it goes quiet with the terminal. What an external record adds.

drawguard.io provides trading risk analytics for informational purposes only — not financial advice, not trading signals. Past performance does not guarantee future results.

Guides·Compare·Privacy Policy·Terms of Service·Refund Policy·Risk Disclaimer·Contact

© 2026 TRADEINTEL (Pty) Ltd · drawguard.io · Reg. 2026/445160/07