PureBytes Links
Trading Reference Links
|
If I get it right, then you could simply write something like this:
barsSince(h>ref(hhv(h,10),-1))
This way, bars will start counting every time you have a new 10-period high and reset whenever you have a new high.
Regards,
Minas Chantzides
--- In equismetastock@xxxxxxxxxxxxxxx, "fib1618" <fib1618@xxx> wrote:
>
> 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
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
equismetastock-digest@xxxxxxxxxxxxxxx
equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|