asking about EA refresh time

Nov 20, 2020 at 10:06
509流覽
2 Replies
會員從Sep 26, 2013開始   16帖子
Nov 20, 2020 at 10:06

Hello
I am developing an expert prototype.
i have an idea but i need help.
I need to know if we can incorporate a command line so that the expert checks the data every second and no longer relies on the tik candles on the different timeframes.
that is possible ?

I am a professional trader but I am new to MQL programming
thank you
USD
會員從Aug 06, 2020開始   3帖子
Nov 24, 2020 at 05:16

//mql4

//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
void OnInit()
  {
   while(EventSetTimer(1) != true) //set your time interval here
     {
      Sleep(500);
     }
   Print('Init OK');
  }


//+------------------------------------------------------------------+
//| Timer function |
//+------------------------------------------------------------------+
void OnTimer()
  {
    //type your code here
  }
Step by Step
會員從Sep 26, 2013開始   16帖子
Nov 24, 2020 at 10:18
Thank you soo much dhinosaurus
USD
登錄 / 註冊 to comment
You must be connected to Myfxbook in order to leave a comment
*商業用途和垃圾郵件將不被容忍,並可能導致帳戶終止。
提示:發佈圖片/YouTube網址會自動嵌入到您的帖子中!
提示:鍵入@符號,自動完成參與此討論的用戶名。