Run a looping script.
Get the current time from the server, compare to local time..
If it lags by X minutes, (you decide), then MT4 and the server are not talking any more.
phy:
Run a looping script.
Get the current time from the server, compare to local time..
If it lags by X minutes, (you decide), then MT4 and the server are not talking any more.
Thks, this is brilliant!
What is the order to recconect to the server?
if (counter > 6 min) .......
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I have often experienced lost connection and sometimes metatrader does not get reconnected unless i reset my router.
Is there a way to be informed of lost connection by an EA/script and maybe to be alerted after a certain time via email,alerts,etc? if the solution is to do a dll, how can that be done? thks
ronaldo