MT4自动交易软件编程(7)预处理程序

MT4自动交易软件编程(7)预处理程序

账户信息 [Account Information]

double AccountBalance()

返回账户余额

示例:

Print("Account balance = ",AccountBalance());

double AccountCredit()

返回账户信用点数

示例:

Print("Account number ", AccountCredit());

string AccountCompany()

返回账户公司名

示例:

Print("Account company name ", AccountCompany());

string AccountCurrency()

返回账户所用的通货名称

示例:

Print("account currency is ", AccountCurrency());

double AccountEquity()

返回资产净值

示例:

Print("Account equity = ",AccountEquity());

double AccountFreeMargin()

Returns free margin value of the current account.

示例:

Print("Account free margin = ",AccountFreeMargin());

int AccountLeverage()

返回杠杆比率

示例:

Print("Account #",AccountNumber(), " leverage is ", AccountLeverage());

double AccountMargin()

Returns margin value of the current account.

示例:

Print("Account margin ", AccountMargin());

string AccountName()

返回账户名称

示例:

Print("Account name ", AccountName());

int AccountNumber()

返回账户数字

示例:

Print("account number ", AccountNumber());

double AccountProfit()

返回账户利润

示例:

Print("Account profit ", AccountProfit());

MT4自动交易软件编程(7)预处理程序

微博:


分享到:


相關文章: