PureBytes Links
Trading Reference Links
|
I think something like this will do...
Buy_requirement=H>ref(HHV(H,40),-1);
-----Original Message-----
From: Quad Rate Serial Abby [mailto:quad_pumped_abby@xxxxxxxxx]
Sent: Monday, February 07, 2005 11:41 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Question on HighestBars
Does this code work to ensure that there has not been a new high in
the last 40+ bars prior to the last close?
HB = Ref ( HighestBars ( H ), -1 );
Buy_Requirement = IIf ( HB >= 40, 1, 0 );
I'm not sure I'm seeing this work right in all instances.
Thanks,
Bret
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
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/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/
|