Download MetaTrader 5

Sleep() function - PLZ help

To add comments, please log in or register
adibi83
64
adibi83  

Hi there,

 

I'm using an EA on MT4 build 670. I have a question regarding the Sleep() function: if I use the function and let the EA "sleep" for 10 seconds,  will if freeze completely even if there are new pips? or will new pips cause the "start" section run all over for every new pip again and then the EA will also continue to run after the 10 seconds of "sleep" would end...?

 

TX 

whroeder1
14781
whroeder1  
adibi83: if I use the function and let the EA "sleep" for 10 seconds, will if freeze completely even if there are new pips? or will new pips cause the "start" section run all over
From NewTick
All new quotes that are received while the program is running are ignored until the OnTick() is completed. After that the function will run only after a new quote is received.
adibi83
64
adibi83  

The problem is I don't have the OnTick() function, rather the Start() function... I wrote the code before MQL was updated 

Simon Gniadkowski
Moderator
18003
Simon Gniadkowski  
adibi83:

The problem is I don't have the OnTick() function, rather the Start() function... I wrote the code before MQL was updated 

Same answer applies to start() . . . 
To add comments, please log in or register