Hi all,
I'm hoping someone will have the ability to help me with this EA I've coded. The EA uses the IsConnected() function to examine the MT4 terminal's connection with the broker's server. It runs in an infinite loop assessing the status every second. The problem is, it currently doesn't discriminate between the broker dropping the relationship, or my ISP dropping the relationship. So I'm wondering is there a way to somehow test my internet connect if IsConnected() returns False, but by looking through the MQL4 documentation it seems that this is beyond the range of MQL4. I was given some hints of something along the lines of pinging a different broker's host , or loading google. This is simple to accomplish manually obviously, but would like to code it into the EA so that it was automated, and additionally for the EA to then be able to ascertain whether it was the broker's connection of my ISP's connection.
Any ideas?
Thanks
https://www.cliqforex.com/attachment...2045688932.mq4