Data/Server is active function, is there one ?
icm63:
Is there a function that can detect data coming into MT4 to say servers are active.
IsConnected()Is there a function that can detect data coming into MT4 to say servers are active.
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()
Say difference btw weekend and trading days.
Like MT4Active = TRUE ??