PureBytes Links
Trading Reference Links
|
>IONCY@xxxxxxx wrote:
> Greetings:
>
> I'm relatively new at this as this as this question will probably
> suggest but
> I'm trying to devise a "If" formula that will indicate when todays
> close is
> higher then the highest high of the last five days. I've tried using
> the "hhv"
> function but that doesn't work since it includes the current day. Any
> suggestions? I'd appreciate them.
>
> Thanks
--------------------------------
Oopps!
There was a small error in the formula I posted. There should be no space
after the word "If":
If( c > ref(H,-1) and c > ref(H,-2) and c > ref(H,-3) and c > ref(H,-4) and
c > ref(H,-5),1,0)
Not the prettiest formula, but it appears to work.
john
|