duble AccountFreeMarginCheck(string symbol, int cmd, double volume)
Returns free margin that remains after the specified position has been
opened at the current price on the current account. If the free margin
is insufficient, an error 134 (ERR_NOT_ENOUGH_MONEY) will be generated.
現在アカウントで、指定されたポジションを持った後に残る余剰証拠金を返します。もし、余剰証拠金が足りない場合は、エラー134(ERR_NOT_ENOUGH_MONEY)が生成されます。
Parameters:
パラメータ:
| symbol |
- |
Symbol for trading operation. 操作の取引通貨ペア。 |
| cmd |
- |
処理の種類。それには、OP_BUY または OP_SELL のいずれかを指定できます。 |
| volume |
- |
Number of lots. ロット数。 |
|
Sample:
サンプル:
if(AccountFreeMarginCheck(Symbol(),OP_BUY,Lots)<=0 || GetLastError()==134) return;
|