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