PureBytes Links
Trading Reference Links
|
The condition "C = HHV(c,20) will work because if today's close is the
highest in the last 20 periods, the condition that the today's close
is greater than today's close will never be satisfied.
Therefore, your second condition will usable.
(pretty obvious after the explanation :-))
Dusant
--- In Metastockusers@xxxxxxxxxxxxxxx, "cbfrish" <cbfrish@xxxx> wrote:
> I'm trying to program for the condition of a new high close over a
> given period of time.
>
> Using 20 bars as an example, I set up "C > HHV(C,20)". This doesn't
> work, however, and plots as a flat line (i.e., all zeroes).
>
> "C > Ref(HHV(C,20),-1)" appears to work, but I don't understand why.
>
> Could someone please shed some light on what I'm misunderstanding.
> I'd also be interested in seeing other approaches to this same end.
>
> Thanks.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges & Refill Kits for Your Epson at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_xWGAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|