Log of disconnections

 

Hi!

Is there a way to write a function and log into a file every time my mt4 client gets disconnected from the server?

To log the exact time of disconnect and reconnect,thanks.

 
Start() only gets called when a new tick comes in. See Loop in place of start function - MQL4 forum
Reason: