Are MQL functions synchronous?

To add comments, please log in or register
Ade Bijon
46
Ade Bijon  
I was wondering whether functions written in MQL are synchronous like in Javascript and if so how can you change this?
Alain Verleyen
36058
Alain Verleyen  
Ade Bijon:
I was wondering whether functions written in MQL are synchronous like in Javascript and if so how can you change this?
It depends. Some are synchronous, some asynchronous, there is no general rule.
Ade Bijon
46
Ade Bijon  
I understand that there is no general rule for built-in functions but there must be one for functions you make yourselves right?
Benjamin Dixon
26114
Benjamin Dixon  
All functions are called, executed and then finished before code carries on... Is that what you mean? What are you trying to do exactly?
Benjamin Dixon
26114
Benjamin Dixon  
I found this thread with a quick search to give you a hint:

https://www.mql5.com/en/forum/161762
Asynchronous Web Request
Asynchronous Web Request
  • 2016.11.23
  • www.mql5.com
I would like to make some HTTP from an EA or even an indicator, the challenge is I want it to be asynchronous, the new WebRequest function is good...
Ade Bijon
46
Ade Bijon  
Benjamin Dixon:
All functions are called, executed and then finished before code carries on... Is that what you mean? What are you trying to do exactly?
Thanks, that is exactly what I meant indeed!
To add comments, please log in or register