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

Re: Day of Week?



PureBytes Links

Trading Reference Links

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