AccountInfoString

返回对应账户属性值。

string  AccountInfoString(

   ENUM_ACCOUNT_INFO_STRING  property_id      // 属性标识符

   );

参数

property_id

[in] 属性标识符,值可以是 ENUM_ACCOUNT_INFO_STRING值中一个。

返回值

字符串 类型值

示例:

void OnStart()

  {

//--- 显示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));

  }

另见

账户信息