Forum

Retrieving Account Number in EA after starting MT4 from command line using Configuration at Startup

Hi, Can anyone help with retrieving an account number using the AccountNumber() function in an Expert Advisor that was launched using the Configuration at Startup feature? It looks like the EA gets initialized before account login is complete and when I use the AccountNumber() function from OnTick()