asking about EA refresh time

Nov 20, 2020 at 10:06
Vues 724
2 Replies
Membre depuis Sep 26, 2013   posts 10
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
Membre depuis Aug 06, 2020   posts 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
Membre depuis Sep 26, 2013   posts 10
Nov 24, 2020 at 10:18
Thank you soo much dhinosaurus
USD
Se connecter / S’inscrire to comment
You must be connected to Myfxbook in order to leave a comment
*Lutilisation commerciale et le spam ne seront pas tolérés et peuvent entraîner la fermeture du compte.
Conseil : Poster une image/une url YouTube sera automatiquement intégrée dans votre message!
Conseil : Tapez le signe @ pour compléter automatiquement un nom dutilisateur participant à cette discussion.