What to do ?
No it's not possible, the MT5 Strategy Tester is completely isolated from the "live" account environment.
Not exactly so. If a user run an optimization, it's possible to obtain live account credentials in OnTesterInit and add an input parameter with them via ParametersSetRange.
Not exactly so. If a user run an optimization, it's possible to obtain live account credentials in OnTesterInit and add an input parameter with them via ParametersSetRange.
And what is a valid reason to do this ?
I don't see one so I didn't want to say here how to do it, which you did.
And what is a valid reason to do this ?
I don't see one so I didn't want to say here how to do it, which you did.
I don't know the reason, just the question. If it applies to optimization (which is just my speculation), then I can imagine a scenario that a developer could want to limit possibility of optimization only for predefined user. Then it's suffice to check this matter in OnTesterInit and abort optimization on mismatch - but probably OP did not distinguish the helper EA instance (actually running in the terminal) from EAs being optimized on the tester agents - so he asked about the tester. But actual requirements can be different - I know other people's requirements can look strange, but recognizing them may be illuminative sometimes (even if it's not this time). ;-)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
Is there any way to retrieve the account owner's name in the Strategy Tester when testing EAs?
Running AccountInfoString (ACCOUNT_NAME) in the Strategy Tester returns "Tester" instead of the account owner's name. I'm running MT5 2361.
Thanks