【求助】清除指标卸载后遗留的Comment内容 新评论 tsing 2022.05.25 18:14 这个账户信息指标卸载后,Comment的内容还停留在图标上,请问怎么做才能清楚Comment的内容? //+------------------------------------------------------------------+ //| 19类账户信息指标.mq4 | //| tsing | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "tsing" #property link "https://www.mql5.com" #property version "1.00" #property strict #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- indicator buffers mapping //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { //--- Comment("账户余额 = ",AccountBalance(),"\r\n", "账户信用值 = ",AccountCredit(),"\r\n",//不懂这个 "平台商名字 = ",AccountCompany(),"\r\n", "当前账户的货币名称,入金货币 = ",AccountCurrency(),"\r\n", "净值 = ",AccountEquity(),"\r\n", "账户保证金,可用预付款 = ",AccountFreeMargin(),"\r\n", "返回以当前价格的当前价格开立指定订单后剩余的可用保证金 = ",AccountFreeMarginCheck(Symbol(),OP_BUY,0.01),"\r\n",//不懂这个 "返回允许在往来帐户上开立订单的自由保证金的计算模式。 = ",AccountFreeMarginMode(),"\r\n",//要研究以下这个 "账户杠杠 = ",AccountLeverage(),"\r\n", "返回往来帐户的保证金值。 = ",AccountMargin(),"\r\n", "账户名称 = ",AccountName(),"\r\n", "返回当前帐户号码 = ",AccountNumber(),"\r\n", "帐户的利润值(盈/亏) = ",AccountProfit(),"\r\n", "返回连接的服务器名称 = ",AccountServer(),"\r\n", "返回停止级别的值 (爆仓线)= ",AccountStopoutLevel(),"\r\n",//不懂这个。懂了,爆仓水平 "返回止损价位的计算模式. = ",AccountStopoutMode(),"\r\n"//要研究以下这个 ); //--- return value of prev_calculated for next call return(rates_total); } //+------------------------------------------------------------------+ Ziheng Zhuang 2022.05.26 12:26 #1 添加一个OnDeinit void OnDeinit(const int reason) { Comment(""); } 新评论 您错过了交易机会: 免费交易应用程序 8,000+信号可供复制 探索金融市场的经济新闻 注册 登录 拉丁字符(不带空格) 密码将被发送至该邮箱 发生错误 使用 Google 登录 您同意网站政策和使用条款 如果您没有帐号,请注册 可以使用cookies登录MQL5.com网站。 请在您的浏览器中启用必要的设置,否则您将无法登录。 忘记您的登录名/密码? 使用 Google 登录
这个账户信息指标卸载后,Comment的内容还停留在图标上,请问怎么做才能清楚Comment的内容?