Time filters, ETC.

 
I am having no luck finding or understanding a way to filter out less than desirable trading hours. My brokers GMT is 0 if anyone can help me with a a conditional statement to add in hours filter. Also I have a signal that is highly reliable under certain conditions but dont want to open trade at that point in time. Ill explain. When the RSI has reached a high and within the next few bars divergence occurs, I would like to hold that signal for a few bars to have price and my EMA's agree before open trade. All this and also have an expiration on the divergence of the RSI. I can do this already with tons of code but is not optimal. I would like to shorten it. Thanks.
 

if (TimeHour(TimeCurrent()) == 21) // if server time is 9:00pm-9:59pm

{

do something;

}


CB

 

if(cloudbreaker(answer()) = +1)

{

cloudbreaker = awesome;

}

lol;

Thanks.

 
How can I code when I want my EA to trade between certain timing, like from 20:00 to 4:00
Reason: