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

[amibroker] formula help



PureBytes Links

Trading Reference Links

i am still new to this and trying to figure out the AFL. could 
somebody help with a formula that would give me:
-stocks with 3-25 price range, daily vol min 500000
-new close high for the last 20 days

the one I use(and not working) is;

X = 20; // number of days 

NewHigh = HHV( Close, X ) == Close ; // today's close is a new 
closing high for the preceding number of days

F2 = Close > 3;
F3 = Close < 25;
F4 = Volume > 500000; 
Filter = NewHigh AND F2 AND F3 AND F4; //filter for all 4 conditions

AddColumn( Close, "Close" ); 

AddColumn( Volume, "Volume" );


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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