Get agent port on tester optimization running

To add comments, please log in or register
Angel Lordan
15
Angel Lordan  

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?

Angel Lordan
15
Angel Lordan  

SOLVED!

   

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


path contain agent id and port

To add comments, please log in or register