MQL4参考 账户信息 AccountFreeMarginCheck
AccountFreeMarginCheckReturns free margin that remains after the specified order has been opened at the current price on the current account.
Parameters symbol [in] Symbol for trading operation. cmd [in] Operation type. It can be either OP_BUY or OP_SELL. volume [in] Number of lots. Returned value Free margin that remains after the specified order 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. Example:
|