I am still learning the AFL language, but I think I covered all the criteria. 
Any input (good or bad) on this programming is appreciated.

period= (260);
periodlow= LLV (Close,period);
periodhigh= HHV (Close,period);
PercentSinceLow= (((periodhigh-periodlow)/periodlow)*100);
Filter= (PercentSinceLow >= 100) AND (Close >= (periodhigh * .75)) AND ((100 * 
(C - Ref(C,-1)) / Ref(C,-1)) >= 5) AND (V >= 1000) AND (V > Ref(V,-1));
AddColumn (periodlow,"Period Low");
AddColumn (periodhigh,"Period High");
AddColumn (PercentSinceLow,"Percent Since Low");
AddColumn ((periodhigh*.75),"75% of Period High");
AddColumn (C,"Close");
AddColumn (Ref(C,-1),"Previous Close");
AddColumn ((C-Ref(C,-1))/Ref(C,-1)*100,"1 Day Percent Change");
Buy= Filter;
Sell= LLV(Buy,2);


--- In [email protected], "JEFF F" <je...@...> wrote:
>
> I am trying to create either a scan or exploration (not sure which works 
> better) for the following criteria:
> 
> Calculate the lowest close for a stock in last 260 days. If a stock has less 
> than 260 days data calculate lowest close for those many days.
> 
> Calculate percent change from lowest close and select stocks which had 100% 
> plus growth
> 
> Find the highest price in the 100% move and only take stocks which are within 
> 25% of that highest price.
> 
> So this is your trading universe of stock which have made significant move of 
> 100% or more and are as of today within 25% of the high during the move
> 
> Use a significant one day move scan on these stocks. e.g. say a 5% move ( 100 
> * (C - C1) / C1) >= 5 AND V >= 1000 AND V > V1)
> 
> Buy next day with 1% risk and stop below the low of previous two days bar
> 
> Trail with a stop
> 
> If you get stopped buy again on next breakout
> 
> Any help would be appreciated.
>


Reply via email to