EA Version Control: Keep Releases Matching the Source
Contents (6)
Contents
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 check | What to look at | If it does not match |
|---|---|---|
| Distribution page | Latest version and build timestamp | Use this as the reference first |
| MT5 "Experts" tab | Version and build timestamp shown at startup | An old file is being loaded |
| Top-left of the chart | Version display | Re-attach the EA |
| EA properties (Common tab) | The version value | Consider downloading again |
| MT5 on the VPS | The same items as above | Install the same version on the VPS too |
Following these steps in order reduces mix-ups:
- Before installing a new version, note the version that is currently running from the Experts tab
- Rename the old ex5 and move it to a separate folder (do not leave similarly named files in the same folder)
- Place the new ex5, then restart MT5 or choose "Refresh" in the Navigator
- Re-attach the EA to the chart and check that the version and build timestamp in the startup log match the distribution page
- 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.
Related
2026-11-12
EA Log Design: Make Incidents Reproducible Later
2026-11-18
Why DST Shifts Your EA's Trading Hours and the Fix
2026-11-16
EA Weekend Holding Risk and Friday Close Design
2026-11-14
Aurum AI mt5 Review: PF 0.87, 95.7% DD over 11.5 Years
📧 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 ↗