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

[amibroker] Re: AFL for 20% Filter



PureBytes Links

Trading Reference Links

thanks robert - this is what i wanted  - i can modify it from here

--score177 ---

--- In amibroker@xxxxxxxxxxxxxxx, Robert Nemeth <rjnemeth@xxx> wrote:
>
> 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@xxx>
> 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....
> 
> 
> 
> 
> 
>       
______________________________________________________________________
______________
> Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s 
user panel and lay it on us. 
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
>




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/