MQL4 Reference Account Information AccountEquity
Returns equity value of the current account.
double AccountEquity();
Returned value
Equity value of the current account. Equity calculation depends on trading server settings.
Example:
Print("Account equity = ",AccountEquity());