MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Checkup  IsConnected

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
bool IsConnected( )
The function returns the status of the main connection between client terminal and server that performs data pumping. It returns TRUE if connection to the server was successfully established, otherwise, it returns FALSE.
Sample:
  if(!IsConnected())
    {
     Print("No connection!");
     return(0);
    }
  // Expert body that needs the connection opened
  // ...