Why an EA (.ex5) refuses to run in the MT5 strategy tester
An Expert Advisor that will not run in the MT5 strategy tester is usually reporting a specific problem, not failing at random. In the first weeks of Strata's online tester (November to December 2026), 37 .ex5 files were run: 21 finished and 16 failed. About half of the uploaded files had names suggesting unlocked or modified copies. The timing of the failure is often the first clue to its cause.
Failures within seconds of starting
The terminal closes before the test starts, within seconds. The usual causes are that the file is locked to another account or computer, that it needs a DLL or a licence server that the tester cannot reach, or that it is a cracked or modified copy.
The test ends in 0 seconds with the tester result "some error after pass finished" and no trades. This means OnInit failed, so the expert never reached its trading logic. The usual causes are licence, account, broker or expiry checks, a missing DLL, or an expert that checks the symbol name. Testers often use custom symbols with a suffix, such as XAUUSD.1y, and an expert that insists on "XAUUSD" refuses to initialise even though the price data is correct.
Failures during the run
The test runs out of time. Tick-by-tick scalpers on M1 over a full year of real ticks can take a very long time, because every tick is processed. A higher timeframe or a shorter period usually solves this.
The expert stops itself during the test. This is often a licence or account check triggered mid-run rather than at startup, so a successful start does not confirm that the file is clean.
Zero trades
A test can finish without an error and still produce no trades. The usual causes are wrong inputs, a wrong symbol, or an expert that needs history for another symbol and cannot obtain it. Comparing the inputs with the seller's set file often finds the cause quickly.
Cracked copies may trade differently
A cracked copy can run to completion and still trade differently from the version the seller sells. One uploaded copy of a gold EA opened up to 16 positions with a median trade of 12 seconds, while the seller's live signal never had more than 2 positions open. A copy that completes a test does not show that it matches the product.
Practical checks before testing
Test the official demo from the Market where possible. Use the seller's set file rather than entering inputs by hand. When a run fails, read the tester journal and search for "INIT_FAILED" or "cannot load". Check the symbol name the expert expects against the symbol being tested, including any suffix.
Run an .ex5 on real ticks: stratatester.com
This is not investment advice.
Paste a signal link or upload an MT5 report: open Strata, free.
More guides
- How to check an MT5 expert advisor before you buy it
- Will your EA pass an FTMO challenge? How to estimate the real chance
- Why a profitable EA can still be a bad bet
- MT5 backtest: 1 minute OHLC vs real ticks, and why your EA's profit factor halves
- How to spot a grid or martingale EA from its trade history
- How to spot a grid or martingale EA from its trade history
- Gold backtests in MT5: why 'real ticks' before mid-2025 may not be real
- 91 MQL5 Market EAs graded from their own live signals
- Why EAs weaken after their Market release