PureBytes Links
Trading Reference Links
|
Try:
Var: DoW(0);
DoW = DayOfWeek(Date);
if DoW < DoW[1] then begin
<your code here>
end;
Bob Fulks
At 11:13 AM 4/25/2006, Adleone wrote:
>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....
>
>Any help would be appreciated.
|