Download MetaTrader 5

TERMINAL_COMMUNITY_ACCOUNT and TERMINAL_COMMUNITY_CONNECTION not working

To add comments, please log in or register
Having questions to the author of an article? Discuss them on the Forum!
goocreations
329
goocreations 2014.10.03 09:45 

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
30723
Alain Verleyen 2014.10.03 10:58  
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 ?
goocreations
329
goocreations 2014.10.08 13:21  
Version 5.00 build 975
Alain Verleyen
Moderator
30723
Alain Verleyen 2014.10.08 14:21  
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