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

[amibroker] Another way



PureBytes Links

Trading Reference Links

Here is another way to find the top [and the bottom] Indicator in a 
database .

r1=StochD();// The Indicator
list = GetCategorySymbols( categoryGroup, 254 );
C2=0;bottom=0;top=0;Count1=0;
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
sym = StrExtract( list, i ) ;
SetForeign(sym);
Ratio=r1/StochD();
// AddColumn(Ratio,sym,1.3,1,(Ratio<1)*32+(Ratio>1)*35+(Ratio==1)*31);
Count1=Count1+1;bottom=bottom+(Ratio<1);top=top+(Ratio>1);
}
Filter=BOTTOM==Count1-1 OR TOP==Count1-1;// explore Group254 for the 
n=1 last quotations
AddColumn(r1,"Indicator");
AddColumn(bottom,"bottom",1.0);
AddColumn(top,"top",1.0);

Note1. Uncomment the // AddColumn... line to see the ratios for both.
Note2. The
Filter=BOTTOM==Count1-1 OR BOTTOM==Count1-2 OR BOTTOM==Count1-3 
OR TOP==Count1-1 OR TOP==Count1-2 OR TOP==Count1-3;
will give the top3 and the bottom3 for the indicator.
Note3. The simple 
Filter=1;
will give the rank for every ticker of the database.
Note 4. Thanks to the new 4.50beta, we may extend the research for 
databases with more than 100 tickers.
Dimitris Tsokakis



------------------------ 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/mOAaAA/3exGAA/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/