채팅을 사용하려면 로그인하십시오.

asking about EA refresh time

Haithem Ayed (Blajjmaka)
Nov 20 2020 at 10:06
게시물16

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
dhinosaurus (dhinox)
Nov 24 2020 at 05:16
게시물3

//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
  }
Haithem Ayed (Blajjmaka)
Nov 24 2020 at 10:18
게시물16
Thank you soo much dhinosaurus
에 댓글을 달려면 로그인하십시오.