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

Re: [amibroker] AFL for 20% Filter



PureBytes Links

Trading Reference Links

Something similiar to this may be what you are looking for. I use a time period just a bit greater than 30 days. The code below has not been tested, but only to give an idea.
 

Day32Pct=100*((C-Ref(C,-32) )/Ref(C,-32));

Buy=0;

Sell=0;

Filter=Day32Pct>=20;

AddTextColumn( Name(), "Symbol" );

AddColumn(C,"Close",2.2,colorDefault, IIf(C>15 AND C<70,colorBrightGreen,colorPink));

AddColumn(MA(V/1000,20),"MAV",4.0,colorDefault,IIf(MA(V/1000,20)>300,colorBrightGreen,colorPink));

AddColumn(Day32Pct,"33 Day Pct",2.2,colorDefault,colorDefault);

 

Bob



----- Original Message ----
From: score177 <score177@xxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Wednesday, August 8, 2007 10:44:52 AM
Subject: [amibroker] AFL for 20% Filter

Hi All,

Can someone help with a % filter. I would like to change this AFL to
one that gives me all avancers > 20% over the last 30 trading days.

Filter = C > 20 AND C < 80 AND V > 10000
AND C==HHV(C,10) ;
AddColumn (C, "Close");
AddColumn (V, "Vol");

I would like to show the actual % increse also in a new column. I do
not need HHV, just the % increase above 20%, for the last 30 trading
days.

any help appreciated.

TIA....




Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. __._,_.___

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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___