@fabiobioware I did so by using flags in one of my projects. That looks like that.
0_1573869428014_ebfebdb2-9810-4d87-9281-2d3c995e1e1a-image.png
So with set Flag you set it for instance to true or false and with check flag you check if it is true.
Alternatively you may turn on / off some of your blocks.
0_1573869581026_4f3c6b2a-5c26-49e8-aea3-2be840877e1a-image.png
Usually you'd want the EA to not open trades outside your trading hours rather than completely stop working (for instance close open trades or adjust stopps and so on).