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

Re: EL Help - Simple Question



PureBytes Links

Trading Reference Links

Can't tell you how to fix your problem , but I can say that the DayofWeek
function returns a value of 5 for Friday if you calculate a date and want to
know which day of the week it is.  So you have to enter in a date to get
that done. To do that with this function and to have it automatically enter
in the current date use:

DayofWeek(Date) = 5

I have never used this function, but, I was intrigued enough to check on it.
All the information is there in the Help file on 2000I.

Jim Bronke

----- Original Message -----
From: "Michael Harris" <baldeagle99@xxxxxxxxxxx>
To: "Omega List" <omega-list@xxxxxxxxxx>
Sent: Saturday, July 21, 2001 8:32 PM
Subject: EL Help - Simple Question


> I'm trying to check the effect of exiting positions before the weekend.
> I tried the line:
>
> If marketposition = 1 and dayofweek = 5 and currenttime > 15:00 then
> exitlong
>
> But the dayofweek part is not verifying.
>
> Can someone tell the proper syntax for exiting at the clsoe on Friday?
>
> Thanks.
> Mike
>
>