AFL Help Please !!

#1
Hello Friends

Kindly help me with AFL for the following

1) I would like to select the top ranking 25 shares according to the relative strength calculated using the following formula.
RelRank= (Ref(C,-1)-Ref(MA(C,135),-1))/Ref(MA(C,135),-1)*100;
and apply some other conditions on this list


2)Arrows in the attached charts are 5% break outs.I would like to get the number of breakouts in the last 65 days.At present I am counting the arrows.


Thanks in advance

Venu
 
Last edited:
#3
1) I would like to select the top ranking 25 shares according to the relative strength calculated using the following formula.
RelRank= (Ref(C,-1)-Ref(MA(C,135),-1))/Ref(MA(C,135),-1)*100;
and apply some other conditions on this list
1. Write an exploration using Filter variable. Write RelRank in the exploration too.
2. Sort the RelRank in ascending order. For this use SetSortColumns(ColNumber). ColNumber are 1 based, not like arrays which are 0 based.
Eg. // sort by 5th column in ascending order
SetSortColumns( 5 )

2)Arrows in the attached charts are 5% break outs.I would like to get the number of breakouts in the last 65 days.At present I am counting the arrows.
Use the Sum() function to achieve this.

LookBackPeriod = 65;
Buy = YOUR_BREAKOUT_CONDITION_COMES_HERE;
NoOfBreakouts = Sum(Buy, LookBackPeriod);

Praveen.