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

RE: Day of Week?



PureBytes Links

Trading Reference Links

Write "If DayOfWeek(Date) = 1 then ..."

That will get the day of the week from the date of the current bar.  1 is
Monday.

Kevin
DownUnder

-----Original Message-----
From: Owen Davies [mailto:owen@xxxxxxxxxxxxx]
Sent: Saturday, 22 January, 2000 02:43
To: Bob Fulks
Cc: Omega-List
Subject: Re: Day of Week?


In response to my question, Bob Fulks  replied:

> >Within the limitations of SuprCharts, is there any way to
> >limit a system's trades to a certain day of the week?
> >The function in Easy Language doesn't seem to do it,
> >unless I've completely misunderstood how it's used.
>
> It would seem that you could use:
>
>   if DayOfWeek = X and .....
>
> in the QuickEditor to write the buy/sell conditions.

Yeah, that's what I assumed until I tried it.  Unfortunately
the DayOfWeek function takes a date as an argument and
returns the day of the week on which that date falls:

DayOfWeek(990102) would give you the day of the week
for January 2, 1999.

This is not what I'd hoped to accomplish, and I don't see
any other way to do it.

Thanks anyway.

Owen Davies