Hi, Rick, For the count, something like these below: output="count.lst"; Exchange=Amex; integer count; count:=0; if Close(0)< min(-1,-50,cl) then count:=count + 1; println Symbol:-3, " ", count; endif;
********************* output="count.lst"; Exchange=Nasdaq; integer count; if PE<10 then count:=0; count:=count + 1; println Symbol:-3, " ", count; endif; ********************************** -- Brooke _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Sent: Friday, April 07, 2006 7:21 AM To: [email protected] Subject: [quotes-plus] Counting hits on scans I'm not sure how to do this, or even if it's possible in QP2. I want to generate a number of hits for a given scan and output that number to a println, something like this: println "Number of AMEX stocks hitting new lows =", "x"; println "Number of NASDAQ stocks with P/E < 10 =", "y"; Any ideas on how to do this? I've been casually kicking it around for a year or so but I can't come up with an elegant solution. Thanks! _____ YAHOO! GROUPS LINKS * Visit your group "quotes-plus <http://groups.yahoo.com/group/quotes-plus> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . _____ [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/quotes-plus/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
