How to disable EA at certain times of the day

Do you know if there is an EA with a sort of timer where I can turn ON/OFF the EA on MT4 ?

I mean, I have an EA working, and this EA should switch OFF/ON the EA on Time Basis, from 10:00 to 12:00 EA ON, from 12:00 to 14:00 EA OFF for instance.


Do it right at the beginning of your EA:

OnTick (... ) {
   int hour = (int)((TimeCurrent()%86400)/3600);
   if ( hour >= 12 && hour <= 14 ) return; // EA doesn't work from 12:00 to 14:59:59

Thanks, I was just looking for something commercial, I’m not a programmer