MQL4参考 账户信息

Account Information

Functions that return parameters of the current account.

Function

Action

AccountInfoDouble

Returns a value of double type of the corresponding account property

AccountInfoInteger

Returns a value of integer type (bool, int or long) of the corresponding account property

AccountInfoString

Returns a value string type corresponding account property

AccountBalance

Returns balance value of the current account

AccountCredit

Returns credit value of the current account

AccountCompany

Returns the brokerage company name where the current account was registered

AccountCurrency

Returns currency name of the current account

AccountEquity

Returns equity value of the current account

AccountFreeMargin

Returns free margin value of the current account

AccountFreeMarginCheck

Returns free margin that remains after the specified position has been opened at the current price on the current account

AccountFreeMarginMode

Calculation mode of free margin allowed to open orders on the current account

AccountLeverage

Returns leverage of the current account

AccountMargin

Returns margin value of the current account

AccountName

Returns the current account name

AccountNumber

Returns the current account number

AccountProfit

Returns profit value of the current account

AccountServer

Returns the connected server name

AccountStopoutLevel

Returns the value of the Stop Out level

AccountStopoutMode

Returns the calculation mode for the Stop Out level