Conversation
The run name becomes the /config: argument handed to terminal64.exe, and
MT5's own command-line parser splits that on whitespace. Any EA or
indicator with a space in its name therefore failed: the terminal logged
cannot load config "Z:\...\Moving Average_20260903_155537.ini"" at start
and then — instead of exiting — started as a NORMAL INTERACTIVE session,
connected to the broker and idled at ~110% CPU until run_strategy_tester
hit its timeout_sec (default 1800s). The failure was silent and slow,
which made it look like a hang rather than a bad argument.
Route both run names through a new _run_name() that collapses whitespace
to underscores and also replaces the characters MT5 dislikes in a path.
Verified against the stock Examples/Moving Average EA on EURUSD H1
(2026-01-01..2026-06-01, open_prices): it now completes in ~15s and
reports net_profit 183.27, profit_factor 1.58, 104 trades — identical to
a space-free copy of the same EA, so both paths cross-check.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.