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

  }

另见

账户信息

技术

相关技术服务

MQL5 文档之外,我们还承接 MT5 量化工程交付与自有程序授权处理,共 9 项服务。

联系咨询:QQ 17662267 · 查看 全部服务明细 · 逆向与解锁