Keith,
I think, what you need is the BARSSINCE function. eg.
barssince (h>Ref(hhv(H,10),-1)).
HHV(H,10) will always return the most recent high. That is why
is is necessary to use the Ref function.
SYNTAX ref( DATA ARRAY, PERIODS )
FUNCTION References a previous or
subsequent element in a DATA ARRAY. A positive PERIOD references "n" periods in
the future; a negative PERIOD references "n" periods ago.
Doug
----- Original Message -----
Sent: Friday, 8 January 2010 11:51
AM
Subject: [EquisMetaStock Group] HHV bars
ago
I'd like to learn how to use the HHV
function --- seems one way to see how many bars from the
previous high ( low )
the HHV bars ago seems to be the one to use but when
you attach it to a chart, it shows eg HHV (H,10) ( any
number will do as a test ) -- not only the highest in 10 periods, but
every subsequent higher bar after that too in sucession-- then in a
downtrend, nil -- when of course, there's still a high
the function says it shows a result of " number
of bars " -- I can't see that anywhere
what I need to do is -- once there's a higher high,
stop & count till the next one -- then start the count again
etc
sounds simple LOL but expressing it is another
thing
any advice appreciated to put me on the right
track
Keith