Home > Blog > EA Version Control: Keep Releases Matching the Source

Version ControlEA Operations

EA Version Control: Keep Releases Matching the Source

Published: 2026-11-24Read time: about 3 min
⏱ This article reflects information as of its publish date. EA performance figures (PF, DD, annual return) change with live trading and re-validation — check the latest on the EA pages. See the latest EA results →
Contents (6)
  1. Bottom Line: Verify by the Version and Build Timestamp Shown at Startup, Not the File Name
  2. Why "Same Name, Different Contents" Happens
  3. An ex5 Is a Separate File Built From Source
  4. A Different Version Means Different Test Results
  5. What We Embed in Our EAs
  6. Checklist for Users
  7. Limits and Caveats
  8. Summary

Bottom Line: Verify by the Version and Build Timestamp Shown at Startup, Not the File Name

An EA with the same file name is not necessarily the same EA inside. If a fixed version is overwritten under the same name, there is no way to tell from the outside whether the copy running on your machine is the new version or the old one.

The EAs we distribute print the version number and build timestamp to the log and on the chart at startup. The most reliable check for users is not the file name or the download date, but whether this display matches the version on the distribution page.

Recommended Broker Comparison →

🎁 Download Free EA

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

* Privacy strictly protected. You can unsubscribe at any time.

Why "Same Name, Different Contents" Happens

An ex5 Is a Separate File Built From Source

MT5 EAs are distributed as executable files (.ex5) compiled from source (.mq5). Change one line of source and you get a different ex5, even under the same name. And opening an ex5 does not tell you which source it was built from.

These are the situations where mix-ups happen most often:

  • The developer fixes the source but forgets to replace the distributed file (source and ex5 drift apart)
  • The user installs a new version but does not restart MT5, so the old version keeps running
  • An old copy with a different name is left in MQL5/Experts, and that is the one attached to the chart
  • The VPS and the local PC are running different versions without anyone noticing

A Different Version Means Different Test Results

The biggest problem is how the version ties to performance. The backtest figures published on the site are results from the version that was tested. A version with changed logic or filters is not guaranteed to produce the same numbers. The same goes for forward testing on a demo account: if you swap versions midway, the record mixes two versions. If you cannot tell which version a set of numbers belongs to, comparing them is meaningless.

What We Embed in Our EAs

MQL5 has built-in ways to embed compile-time information in the source.

  • #property version: the version number, shown on the EA's properties screen
  • __DATETIME__: the compile date and time, which changes automatically on every compile
  • __MQLBUILD__: the build number of the compiler used

We output these to the Experts log in OnInit() and also display them in the top-left of the chart. A version number is raised by hand, so it can be forgotten. The build timestamp, however, changes on every compile without exception. Combining the two lets you notice a "same number, different contents" situation.

Checklist for Users

Where to checkWhat to look atIf it does not match
Distribution pageLatest version and build timestampUse this as the reference first
MT5 "Experts" tabVersion and build timestamp shown at startupAn old file is being loaded
Top-left of the chartVersion displayRe-attach the EA
EA properties (Common tab)The version valueConsider downloading again
MT5 on the VPSThe same items as aboveInstall the same version on the VPS too

Following these steps in order reduces mix-ups:

  1. Before installing a new version, note the version that is currently running from the Experts tab
  2. Rename the old ex5 and move it to a separate folder (do not leave similarly named files in the same folder)
  3. Place the new ex5, then restart MT5 or choose "Refresh" in the Navigator
  4. Re-attach the EA to the chart and check that the version and build timestamp in the startup log match the distribution page
  5. Write a note in your operations log: "version X from date Y"

How to open the settings screen is covered in EA Setup Guide.

Limits and Caveats

To be honest, there are things this approach cannot prevent.

  • Whether the display is correct depends on the developer having embedded it correctly. A user who cannot see the source has no way to prove for themselves that the display matches the contents.
  • The build timestamp is when the EA was compiled, not when the logic was changed. Recompiling without changing anything also changes the timestamp.
  • The same version does not give the same results. Different brokers, spreads, execution speeds, and historical data all change performance. Matching versions is only one of the preconditions for a comparison.
  • Right after switching versions, the new version may not mesh well with the previous version's positions or internal state. It is safer to swap while you hold no positions.

Matching versions does not guarantee that you will win. All it tells you is which version is being discussed. Even so, if that stays vague, bug reports and performance comparisons will not line up.

Summary

  • The same file name does not mean the same contents. What you verify is the version and build timestamp in the startup log
  • Both test results and demo forward records belong to one specific version. When the version changes, treat it as a separate record
  • When swapping, go in this order: set aside the old version → restart → re-attach → check against the log
  • The display is the developer's own declaration, and users cannot prove that it matches the source. That is a limit of this approach

You can browse each distributed EA from the EA List, and compare performance in the Measured Ranking. The basics of operations are also collected in EA & MT5 Know-How.

📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators

* Privacy strictly protected. You can unsubscribe at any time.

Have a question about EAs or FX?

You can post it on the Nattzy trading forum (free sign-up). Questions beyond this article are welcome too — EA settings, choosing a broker and more.

Ask on Nattzy ↗

Comments & questions