PureBytes Links
Trading Reference Links
|
At 1:17 PM +0200 4/19/02, Jim wrote:
>I want to code a show me that informs me every thursday, when thursday close
>is 3% smaller then monday close .
>
>I can't get this running with the dayofweek function.
>
>Any help would be appreciate.
I assume you are using daily bars. If so try:
if DayOfWeek(Date) = 4 and Close <= 0.97 * Close[3] then ....
That doesn't work for weeks with Monday holidays. If you want to make it more "robust" and check for Monday holidays you need something like:
Vars: DOW(0);
DOW = DayOfWeek(Date);
if DOW = 4 and and DOW[3] = 1 and Close <= 0.97 * Close[3] then ....
Bob Fulks
|