Download MetaTrader 5

TERMINAL_COMMUNITY_ACCOUNT and TERMINAL_COMMUNITY_CONNECTION not working

To add comments, please log in or register
Christoph Stallmann
461
Christoph Stallmann  

Hi,


When getting the properties TERMINAL_COMMUNITY_ACCOUNT and TERMINAL_COMMUNITY_CONNECTION using the TerminalInfoInteger() function, the result is always false. I'm connected to the MQL community, my balance shows next to the Cloud under Agents. Can anyone help me with this? Or is there any other way to programmatically detect if I'm connected to the cloud?

Alain Verleyen
Moderator
32814
Alain Verleyen  
goocreations:

Hi,


When getting the properties TERMINAL_COMMUNITY_ACCOUNT and TERMINAL_COMMUNITY_CONNECTION using the TerminalInfoInteger() function, the result is always false. I'm connected to the MQL community, my balance shows next to the Cloud under Agents. Can anyone help me with this? Or is there any other way to programmatically detect if I'm connected to the cloud?

It works for me. Which build are you using ?
Christoph Stallmann
461
Christoph Stallmann  
Version 5.00 build 975
Alain Verleyen
Moderator
32814
Alain Verleyen  
goocreations:
Version 5.00 build 975

I confirm these properties are working well with MT5 build 975.

   printf("Com.Account=%i Com.Conn=%i",TerminalInfoInteger(TERMINAL_COMMUNITY_ACCOUNT),TerminalInfoInteger(TERMINAL_COMMUNITY_CONNECTION));

Result if connected :

2014.10.08 14:17:13.253    36655 (EURUSD,D1)    Com.Account=1 Com.Conn=1

If not connected :

2014.10.08 14:15:45.413    36655 (EURUSD,H1)    Com.Account=0 Com.Conn=0

To add comments, please log in or register