【MT4学习】MQL4语言基础语法07--账户信息函数
double AccountBalance()
返回账户余额
示例:
Print("Accountbalance = ",AccountBalance());
double AccountCredit()
返回账户信用点数
示例:Print("Accountnumber ", AccountCredit());
string AccountCompany()
返回账户公司名
示例:Print("Accountcompany name ", AccountCompany());
string AccountCurrency()
返回账户所用的通货名称
示例:Print("accountcurrency is ", AccountCurrency());
double AccountEquity()
返回资产净值
示例:Print("Accountequity = ",AccountEquity());
doubleAccountFreeMargin()
Returns free margin value of the current account.
示例:Print("Accountfree margin = ",AccountFreeMargin());
int AccountLeverage()
返回杠杆比率
示例:Print("Account#",AccountNumber(), " leverage is ", AccountLeverage());
double AccountMargin()
Returns margin value of the current account.
示例:Print("Accountmargin ", AccountMargin());
string AccountName()
返回账户名称
示例:Print("Accountname ", AccountName());
int AccountNumber()
返回账户数字
示例:Print("accountnumber ", AccountNumber());
double AccountProfit()
返回账户利润
示例:Print("Accountprofit ", AccountProfit());
页:
[1]