Data/Server is active function, is there one ?

 
Is there a function that can detect data coming into MT4 to say servers are active.

Say difference btw weekend and trading days.

Like MT4Active = TRUE ??
 
icm63:
Is there a function that can detect data coming into MT4 to say servers are active.
IsConnected()

or

start() in EA and indicator

or

Asynchronously for scripts and script-like EAs:
datetime RealTime = 0;
 
int start()
{
    while (!IsStopped())
    {
        datetime tm = TimeCurrent();
 
        if (tm > RealTime)
        {
            Print("Still alive!");
            RealTime = tm;
        }
        Sleep(50);
    }
}

or universal RefreshRates() == true


Say difference btw weekend and trading days.
IsTradeAllowed()
Reason: