Retrieving Mql5 Community Login Name

To add comments, please log in or register
James Hodges
6651
James Hodges  

Does any one know if there is a way to check the Mql5 username of a logged in user? I realize that we can use the TerminalInfoInteger to retrieve a bool about whether there is a connection to the mql5 community using the TERMINAL_COMMUNITY_CONNECTION identifier and also whether there is any data present in the terminal using the TERMINAL_COMMUNITY_ACCOUNT identifier.

I wish to retrieve the username to check it against a list of qualified users in order for them to use the software. They would need to be logged into the community with a specific Id in order to use the file. We can of course use the AccountNumber() function to retrieve the account number if we wish to restrict the usage of our file in that way. However, I would like to make it available to those with a particular mql5 login regardless of the account... any ideas? 

thank you for your time....

Laszlo Tormasi
5491
Laszlo Tormasi  
James Hodges:

Does any one know if there is a way to check the Mql5 username of a logged in user? I realize that we can use the TerminalInfoInteger to retrieve a bool about whether there is a connection to the mql5 community using the TERMINAL_COMMUNITY_CONNECTION identifier and also whether there is any data present in the terminal using the TERMINAL_COMMUNITY_ACCOUNT identifier.

I wish to retrieve the username to check it against a list of qualified users in order for them to use the software. They would need to be logged into the community with a specific Id in order to use the file. We can of course use the AccountNumber() function to retrieve the account number if we wish to restrict the usage of our file in that way. However, I would like to make it available to those with a particular mql5 login regardless of the account... any ideas? 

thank you for your time....

That is a good question. Up
James Hodges
6651
James Hodges  

Well, apparently the answer is no since no one has stepped forward with a solution. I'll keep looking... Pip Pip

James Hodges
6651
James Hodges  

Eventually stumbled onto....

Print("Info about this trader is ",TerminalInfoInteger(TERMINAL_MQID));

You're welcome...

Pip pip.. Jimdandy

To add comments, please log in or register