day of the week

Here is code function which can be used say when ea needs to trade only during certain hours of the day and skip of certain day of the week :

Code:
  bool ValidTime() 
{
if (DayOfWeek()==1 && Hour()<=6) return(false);
return(true);
}