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

[amibroker] Re: Loop around all symbols?



PureBytes Links

Trading Reference Links

Note that Status("STOCKNUM") gives the ordinal number of each stock 
in your database, in other words, it is a number from 0 to 99 for the 
N100 database.
The identity 
Status("STOCKNUM") == 0;
is equivalent to select AAPL as a current stock etc.
DT
--- In amibroker@xxxxxxxxxxxxxxx, "Junya Ho" <junya.ho@xxxx> wrote:
> With the new loop constructs in AFL, is it possible to loop through 
a group
> of stocks in an exploration? I saw the thread on Pairs trading, and 
was
> wondering if there were ways of generating covariance/correlation 
matrices.
> I guess this might also be useful for doing things like RiskMetrics 
or Monte
> Carlo analysis?
> 
> something like
> 
> foreach foreign_stock in group {
>   compare this_stock to foreign_stock
> }


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/O10svD/Me7FAA/AG3JAA/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/