?AccountBalance??
AccountCredit??
AccountCompany??
AccountCurrency??
AccountEquity??
AccountFreeMargin??
AccountFreeMarginCheck??
AccountFreeMarginMode??
AccountLeverage??
AccountMargin??
AccountName??
AccountNumber??
AccountProfit??
AccountServer??
AccountStopoutLevel??
AccountStopoutMode?
?
double AccountBalance( )
返回賬戶余額(賬戶中相當數量的價格值金錢).
示例:
Print("賬戶余額= ",AccountBalance());?
?
?
?
double AccountCredit( )
返回賬戶信用點數.
示例:
Print("賬戶點數 ", AccountCredit());
?
?
?
string AccountCompany( )
返回賬戶公司名。
示例:
Print("賬戶公司名", AccountCompany());
?
?
string AccountCurrency( )
返回賬戶所用的通貨名稱。
示例:
Print("賬戶貨幣對", AccountCurrency());?
?
?
?
double AccountEquity( )
對于當前賬戶返回資產凈值。資產凈值取決于交易服務器的設置。
示例:
Print("賬戶凈值 = ",AccountEquity());?
?
?
double AccountFreeMargin( )
返回當前帳戶的免費保證金價格值。
示例:
Print("賬戶免費保證金 = ",AccountFreeMargin());?
?
?
double AccountFreeMarginCheck( string symbol, int cmd, double volume)
當前賬戶的當前價格上在指定開倉的倉位返回自由保證金。如果免費保證金不夠,將會生成錯誤134(ERR_NOT_ENOUGH_MONEY) 。
參量:
symbol? -? 交易業務貨幣對。??
cmd? -? 交易類型。可能是OP_BUY或者 OP_SELL。??
volume? -? 份額數。??
?
示例:
if(AccountFreeMarginCheck(Symbol(),OP_BUY,Lots)?
?
double AccountFreeMarginMode( )
在當前開倉位置的賬戶上計算免費保證金的模式。計算方式可能采取以下價格值:
?
0 - 浮動profit/loss 不使用?
1 - 兩個浮動贏利和損失在開倉位置上使用計算自由保證金;?
2 - 只有贏利值被使用計算,不考慮當前開倉的虧損;?
3 - 只有虧損值被使用計算, 不考慮當前開倉的虧損。

示例:
if(AccountFreeMarginMode()==0)?
? Print("浮點盈利/虧損不使用。");?
?
int AccountLeverage( )
返回當前賬戶杠桿比率。
示例:
Print("賬戶#",AccountNumber(), " 杠桿比率", AccountLeverage());?
?
double AccountMargin( )
返回當前帳戶的保證金。
示例:
Print("賬戶保證金 ", AccountMargin());
string AccountName( )
返回當前帳戶名稱。
示例:
Print("賬戶名稱", AccountName());?
?
?
?
?
int AccountNumber( )
返回當前帳戶的數字。
示例:
Print("賬戶數字", AccountNumber());?
?
?
?
double AccountProfit( )
返回賬戶利潤。
示例:
Print("賬戶利潤", AccountProfit());?
?
?
string AccountServer( )
返回連接服務器的名稱。
示例:
Print("服務器名稱", AccountServer());?
?
?
?
int AccountStopoutLevel( )
返回停止水平值。
示例:
Print("停止水平 = ", AccountStopoutLevel());?
?
?
?
int AccountStopoutMode( )
對于停止水平返回的的運算方式。運算方式值如下:?
?
0 - 計算保證金和凈值之間的百分比;?
1 - 比較自由保證金水平和絕對值。
示例:
int level=AccountStopoutLevel();?
if(AccountStopoutMode()==0)?
? Print("停止水平= ",水平, "%");?
else?
? Print("停止水平= ", 水平, " ", AccountCurrency());
來源:外匯邦
評論前必須登錄!
立即登錄 注冊