MQL4 Reference Account Information AccountProfit
Returns profit value of the current account.
double AccountProfit();
Returned value
Profit value of the current account.
Example:
Print("Account profit ", AccountProfit());