MQL4参考 账户信息 AccountMargin
Returns margin value of the current account.
double AccountMargin();
Returned value
Margin value of the current account.
Example:
Print("Account margin ", AccountMargin());