[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: First Trading day of the week



PureBytes Links

Trading Reference Links

var: dow(0);

dow=dayofweek(d);

if dow<dow[1] then...

----- Original Message ----- 
From: "Adleone" <adleone@xxxxxxxxxxxxx>
To: "Omega-List" <omega-list@xxxxxxxxxx>
Sent: Tuesday, April 25, 2006 11:13 AM
Subject: First Trading day of the week

> Does any one have any code segment for determining the first trading day 
> of the week? I know that
> "DayOfWeek(Date) = 1" determines a Monday but what if the first trading 
> day of the week is on a Tuesday? I tried "DayOfWeek(Date[1]) = 5" but 
> there are days when Fridays are closed....