MQL4参考 账户信息 AccountInfoString
AccountInfoString
Returns the value of the corresponding account property.
string AccountInfoString(
int property_id
); |
Parameters
property_id
[in] Identifier of the property. The value can be one of the values of ENUM_ACCOUNT_INFO_STRING.
Return Value
Example:
void OnStart()
{
//--- Show all the information available from the function AccountInfoString()
Print("The name of the broker = ",AccountInfoString(ACCOUNT_COMPANY));
Print("Deposit currency = ",AccountInfoString(ACCOUNT_CURRENCY));
Print("Client name = ",AccountInfoString(ACCOUNT_NAME));
Print("The name of the trade server = ",AccountInfoString(ACCOUNT_SERVER));
} |
See also
Account Information
|