【MT4学习】MQL4语言基础语法07--账户信息函数

0
回复
6906
查看
[复制链接]

63

主题

36

回帖

1927

积分

管理员

积分
1927
来源: 2019-7-26 06:15:46 显示全部楼层 |阅读模式



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());



MT4编程课程.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册
关注微信