📅 财经日历 📊 实时波动 📈 大盘云图 📶 行情走势 🆚 投机情绪 🚀 今日热点

    3、接第二贴

    追星 LV1
    2024-04-23 · 1136 阅读
    析构
    在EA的 OnDeinit() 处理函数中释放指标句柄:
    //+------------------------------------------------------------------+//| Expert deinitialization function                                 |//+------------------------------------------------------------------+void OnDeinit(const int reason)  {//--- destroy timer   EventKillTimer();   //--- Release handle of the indicator   ResetLastError();   if(!IndicatorRelease(handle))      PrintFormat("%s: IndicatorRelease failed. Error %ld",__FUNCTION__,GetLastError());//--- Clear all comments on the chart   Comment("");  }
    创建的仪表板对象在EA析构时被删除:
    //+------------------------------------------------------------------+//| Expert deinitialization function                                 |//+------------------------------------------------------------------+void OnDeinit(const int reason)  {//--- destroy timer   EventKillTimer();   //--- Release handle of the indicator   ResetLastError();   if(!IndicatorRelease(handle))      PrintFormat("%s: IndicatorRelease failed. Error %ld",__FUNCTION__,GetLastError());//--- Clear all comments on the chart   Comment("");   //--- If the panel object exists, delete it   if(panel!=NULL)      delete panel;  }

    ""
    还没有人打赏,支持一下
    回复

    举报

     

    回答|共 1 个

    兔斯基_5912 LV1

    发表于 2024-4-23 16:53:49 | 显示全部楼层

    奖励有没有?
    您需要登录后才可以回帖 登录 | 注册

    提醒: 禁止引战、谩骂、灌水内容

    微信二维码

    有问题联系客服