Setting what days to trade

 

Hi All,


I am trying to set on which days to trade and which days not ie do not trade Friday, I have searched the forum but failed to find the answer if anybody could point me in the right direction please do.


Thanks


Paul

 

if ((DayOfWeek() != 5) && (DayOfWeek() != 6) && (DayOfWeek() != 7))

{

...go trading...

}