跳至内容

AccountInfoString

AccountInfoString

返回相应账户属性的值。

string  AccountInfoString(
   int  property_id      // Identifier of the property
   );

参数

property_id

[in] 属性的标识符。该值可以是ENUM_ACCOUNT_INFO_STRING中的值之一。

返回值

string类型的值。

示例:

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));
  }

另请参阅

账户信息

最后更新于