How to disable new trades at specific time intervals?

 

I have an EA running, but would like to "disable new trades" at specific intervals during the day for brief periods of time.

My EA does not have this option, and I am looking for something else to do this, without affecting/removing/disabling the EA.

Is this possible?

 
Can be done on coding level only. Have open code?