SOLVED!
string path=""; if (MQLInfoInteger(MQL_TESTER) && MQLInfoInteger(MQL_OPTIMIZATION)){ path=MQLInfoString(MQL_PROGRAM_PATH); printf(path); }
path contain agent id and port

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello
Im developoing a custom ia robot and perform some parallel calculation and i comunicate mql with c# over custom dll and then i compunicate c# dll with pyton code... (integration is hard..)
Also when i run robot in tester i need do a port discrimiation to send at c# dll
there is a way where i can get agent name and or port where optimization robot runs?