MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Account information  AccountProfit

 
double AccountProfit( )
Returns profit value of the current account.
Sample:
Print("Account profit ", AccountProfit());