XM.COM offers forex, stock indices, oil trading, gold trading and CFDs on MetaTrader 4

MQL4 Reference Account Information AccountNumber

AccountNumber

Returns the current account number.

int  AccountNumber();

Returned value

The current account number.

Example:

  Print("Account number "AccountNumber());