评论

收藏

let mql4 support multithread

avatar mybase89 | 107 人阅读 | 0 人评论 | 2025-05-03


script to open multi chart to simulate a thread
void OnStart()
  {
//---
for(int x=1;x<=20;x++)
      {
      ChartApplyTemplate(ChartOpen(NULL,1),"a");
      }   
  }

EA to get each chart id used to set "thread" parameter
long id;
int OnInit()
  {

long aaaid=ChartFirst();
for(int x=1;x<=20;x++)
      {       if(aaaid==ChartID())
    { id=x;return(INIT_SUCCEEDED);
      
      }
      aaaid=ChartNext(aaaid);
  
  }

//---bid=Bid;
   return(INIT_SUCCEEDED);
  }
""
还没有人打赏,支持一下
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则