Download MetaTrader 5
To add comments, please log in or register
Deposit to your account using bank cards via Gate2Shop
adibi83
58
adibi83 2014.08.16 09:54 

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
13609
whroeder1 2014.08.16 13:04  
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
58
adibi83 2014.08.16 21:24  

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
17963
Simon Gniadkowski 2014.08.16 21:54  
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