PureBytes Links
Trading Reference Links
|
Try this "Performance Exploration" over your database of stocks. Sort
buy column 250 for top gainers or losers. Big gainers were "FSLR,SWIM,
ASTI etc.
Dick H.
basis = C;
perf1 = basis / Ref(basis, -1) * 100 - 100;
perf5 = basis / Ref(basis, -5) * 100 - 100;
perf30 = basis / Ref(basis, -30) * 100 - 100;
perf250 = basis / Ref(basis, -250) * 100 - 100;
//AddTextColumn( FullName(), "FullName" );
//AddTextColumn(IndustryID(1) ," Industry Sector ", 25.0,
colorWhite, colorBlue);
//AddColumn(counter, "counter",1.2,colorBrown);
//AddTextColumn(MarketID(2) ," Market ", 25.0, colorWhite,
colorBlue);
//return = ROC(C,250);
AddColumn (Close, "Close",1.2);
AddColumn (Ref(Close,-1), "Close-1",1.2);
//AddColumn( RS, "RS", 1.3 ,IIf( RS >= 1, colorDarkGreen,colorRed ));
AddColumn(perf1, "perf1%", 1.2);
AddColumn(perf5, "perf5%", 1.2);
AddColumn(perf30, "perf30%", 1.2);
AddColumn(perf250, "perf250%", 1.2);
//AddColumn(return, "250 Bar Return", 1.2);
AddColumn(Volume, "Volume", 1.0);
AddColumn(MA(V,10),"MA(V10",1.0);
//AddColumn((adr/C)*100, "ADR % of C", 2.2, colorDarkGreen, colorGold);
//AddColumn( ADR, "Avg Daily Range (10)", 2.2, colorWhite,colorBlue);
Filter = 1; // dummy
//Filter = (1 != (IndustryID(0)==x OR IndustryID(0)==y OR
IndustryID(0)==z));
//This will skip all stocks in Industry X,Y,Z (Assignments at
yourdiscretion).
--- In amibroker@xxxxxxxxxxxxxxx, "rashmo_70" <rashmo_70@xxx> wrote:
>
> Hi guys is there a code to check yearly performance of Stocks in
database.
> Its similar to (quick market review) but i need to export as csv file
> thanks
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|