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

[amibroker] getting values from multiple stocks at once



PureBytes Links

Trading Reference Links

excuse if this is obvious, but is there a way to get the closing price of
all stocks matching some criteria? conceptually, I'm imagining something
like FieldToArray("FieldName", "Filter"), where FieldName is the field whose
data you want ("Close" for example), and Filter restricts the stocks
covered, like it does in an exploration ("CCI() > 0" for example).

I want to do this procedurally in AFL, as part of a larger operation. say
for example I wanted to run an explration on the 10 stocks with highest
volume today. it's a little bit roundabout, but one way to do that would be
to fill an array with the volumes of all stocks, then find the 10th highest
value, and filter the exploration to stocks with that volume or higher.

so I guess that's two semi-separate questions:

- can you fill an array with the values of a field in all or selected
stocks?

- is there some other way to accomplish anything like my second paragraph,
with or without that FieldToArray function?

thanks,

Dave Merrill


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/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/