Script to monitor MT4/Pause and resume terminal/EA

 
Hi, any one can teach me or have any example how to write a script /EA to monitor MT4 terminal result ? I have few EA attached to one terminal.. the script serve as a monitoring medium to pause the MT4 for xxx hours/period if consecutive losses of xxx trade... any one can help or guide me ?