Check Internet Connection Status with EA
Results 1 to 8 of 8

Thread: Check Internet Connection Status with EA

  1. #1
    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?


  2. #2

  3. #3
    Quote Originally Posted by ;
    Thank You a lot for all that Information Xaphod! I will look into all that now

  4. #4

  5. #5
    Quote Originally Posted by ;
    This indior definetly checks for the BROKER connection.
    No, it just uses the IsConnected() function, which doesn't discriminate between the broker dropping the connection or my ISP dropping the relationship, thanks anyway though

  6. #6
    Hi rooicol,

    would you mind sharing if/how you resolved this ultimately.



    PS: I only looked through the Majority of your threads: excellent ideas/code you posted

  7. #7
    Hi rooi,
    are you so kind and contact me concerning the Trade-Management-EA you've coded for me .
    I believe there may be a bug I have problems to know some feature in the EA.
    I can't contact you through mail because everytime I try it I get a mail-error. Don't understand why.
    Thank you for everything.
    Greeds Zackery

  8. #8
    Whether you're able to link to google or somewhere using winsock you could see. I do not anticipate it to be quite a easy thing to do correctly, and imagine some fairly creative uses of mql arrays because there aren't any such thing as structs in mql.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. Read more.