Check Server Connection

 
My brokers test server went down this morning, and I didn't notice until much later. How would I create a function to notify me when the server is down? The EA loop is only triggered when there is an incoming tick, but there are no ticks when the server is down. How do other people handle this situation?
 
 

sorry that link is in Russian. Do scripts run in their own thread? Is it possible to have multiple scripts running simultaneously? Can EAs check if a script is running, and turn on/off scripts?


Thanks!

 

Is it possible to have multiple scripts running simultaneously? - On the same chart, no

Can EAs check if a script is running - Yes

and turn on/off scripts? - No


Thanks!, You're welcome ;)

 

the code is still MQL

 

"Can EAs check if a script is running - Yes"

How? Can you give me a quick example?

 
zzuegg:

[...]

and turn on/off scripts? - No

Y not ? API !


 
vgoklani:

"Can EAs check if a script is running - Yes"

How? Can you give me a quick example?

Set a GlobalVariable in the init() of the script.

Check the global inside the EA

 

"Set a GlobalVariable in the init() of the script.

Check the global inside the EA"

Thanks, I should have thought of that myself! :)

 

maybe use the IsConnected() function? I hope it works.

https://docs.mql4.com/check/IsConnected


Regards,

NIERO

vgoklani:

"Set a GlobalVariable in the init() of the script.

Check the global inside the EA"

Thanks, I should have thought of that myself! :)

Reason: