MQL4 Reference Account Information AccountMargin
Returns margin value of the current account.
double AccountMargin();
Returned value
Margin value of the current account.
Example:
Print("Account margin ", AccountMargin());