[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] finding pivot values using zig



PureBytes Links

Trading Reference Links


here is what I am trying to do....
the stocks that I am dealing with have an adx(14) of over 25 
I am trying to locate the high for the prev move and the low

here is what I have got...

ab=Zig(C,5);

ah=ValueWhen(ab>Ref(ab,-1),H,1);
al=ValueWhen(ab<Ref(ab,-1),L,1);


This exploration give me only one correct value be it the high or low...
any suggestions?

Thanks







------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/