Four compiles of one unchanged MQL5 source gave .ex5 files from 50,232 to 51,138 bytes
I compiled one indicator source of mine four times on 7 December without changing a byte of it. The four .ex5 files came out at 50,232, 50,670, 51,138 and 50,460 bytes, with four different SHA-256 hashes. The binary I kept is a fifth build at 50,432 bytes, a clean compile at 0 errors and 0 warnings.
The source was byte-identical each time: 51,815 bytes, SHA-256 6EC24422...851A85. The compiles ran headlessly through MetaEditor on one MetaTrader 5 build 6380 install. A comment-only edit afterwards moved the size again, and an attach on a build from the same source printed the same three states.
So a rebuild is a new artefact. A tester report, a run record or a buyer's claim about "this exact file" binds the binary that ran and nothing else: the source hash cannot stand in for it, and two builds from one commit are two files.
What to do about it: hash the .ex5 after the run, keep that file beside the report, and quote the report only against the hash it names. When you audit someone else's build, compare your file with the binary hash it quotes.
The limit is one machine, one MetaTrader 5 build, one indicator, one day. I did not test the path or the compile order, so I claim no cause beyond what the bytes show: the compiler does not emit a deterministic image.


