Get agent port on tester optimization running

 

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?

 

SOLVED!

   

string path="";
   if (MQLInfoInteger(MQL_TESTER) && MQLInfoInteger(MQL_OPTIMIZATION)){
   
      path=MQLInfoString(MQL_PROGRAM_PATH);
   
      printf(path);
   
   }


path contain agent id and port