Time Functions in an EA

[Deleted]  
I'd like to setup my EA so that it only trades between certain hours of the day. What is the simplest way to do this?
[Deleted]  
mixtermind:

I'd like to setup my EA so that it only trades between certain hours of the day. What is the simplest way to do this?


Nevermind. Got it.

if((Hour()>=10&&Hour()<12)||(Hour()>=15&&Hour()<17)) return(0);