Read Financial Magazines in MetaTrader 4 and MetaTrader 5!

MQL4 Reference Account Information AccountNumber

AccountNumber

Returns the current account number.

int  AccountNumber();

Returned value

The current account number.

Example:

  Print("Account number "AccountNumber());