MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Account information  AccountFreeMargin

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double AccountFreeMargin( )
Returns free margin value of the current account.
Sample:
Print("Account free margin = ",AccountFreeMargin());