Download MetaTrader 5
To add comments, please log in or register
Launch your trading signal. Make profit from paid subscription!
jan100
24
jan100 2016.10.23 01:06 

Hello,

I want my EA to be executed on every tick and, if there is no new tick for several seconds, to be executed every xxx ms (for example 500ms).

What is the best way to code this in MQL?

Thanks in advance!

Keith Watford
Moderator
8870
Keith Watford 2016.10.23 01:14  
EventSetMillisecondTimer() ?
Fernando Carreiro
2108
Fernando Carreiro 2016.10.23 01:21  

But most importantly!

  • First read the entire documentation and look at example code in the Code Base, as well as learn basic coding in a language like C or C++ before even contemplating coding in MQL.
  • Also, learn the difference between MQL4 and MQL5. They are not the same! The link you provided is for MetaTrader 5 and not MetaTrader 4 (which the basis of this MQL4 forum).
whroeder1
13982
whroeder1 2016.10.23 12:18  
jan100: I want my EA to be executed on every tick and, if there is no new tick for several seconds,
The real question is why? No new tick, nothing has changed.
/
To add comments, please log in or register