PureBytes Links
Trading Reference Links
|
In AA window paste the
// top10 explorationfunction select( listnum
){ list = GetCategorySymbols( categoryGroup, listnum
); Rank = 0; for( i = 0; ( sym = StrExtract( list, i ) ) !=
""; i++ ) { C1 = Foreign( sym, "C" );
f=LastValue(RSIa(C1,14)); Rank[BarCount-1-i] =
f[i]; } return Rank ; }No=254;// replace 254 with your
Group NoR= Select(No);H0=Select(No);L1=LastValue(Cum(1));N=101;//
the population of the databaseTOP=10;// the topX
calibrationfor(K=1;K<=TOP;K++){H1=LastValue(HHV(H0,n));BAR1=LastValue((ValueWhen(H0==H1,Cum(1)-1)));H0[BAR1]=-10;}Filter=H0==-10;AddColumn(L1-Cum(1),"ORD",1.0);AddColumn(R,"RSI");
Explore now current stock [any stock, the result will be the
same...] for all quotations.The result list will give you the ordinal No of
the top10 stocks and their LastValue(RSI()).
This is an one-step procedure, thanks to GetCategorySymbols()
function.
Dimitris Tsokakis
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
Attachment:
12rank.gif
Attachment:
Description: "Description: GIF image"
|