# AFL coding required, Kindly help Plz!!!

I

#### indiabulz

##### Guest
Hello,

I need an AFL for the following conditions: It can be reffered to as modified RSI DIvergence.

1) Let L = bottom of the RSI(close,14) for last n days.
2) Let Close at L be P.
3) Q = RSI of Today.
4) M = Today's CLose.

Buy = Q > L AND P < M

There are many more features added to this formula which i think i can manage myself. The above formula might need array (not sure). Kindly help me sort this problem.

Last edited by a moderator:

#### mohan.sic

##### Well-Known Member
Q > L -------- current rsi is greater than previous rsi

P < M -------- previous close is less than current close ( means close >
previous close)

According to your Buy condition both RSI and Close values are greater than their respective past values. So i guess u asked it wrong.

##### Well-Known Member
Hello,

I need an AFL for the following conditions: It can be reffered to as modified RSI DIvergence.

1) Let L = bottom of the RSI(close,14) for last n days.
2) Let Close at L be P.
3) Q = RSI of Today.
4) M = Today's CLose.

Buy = Q > L AND P < M

There are many more features added to this formula which i think i can manage myself. The above formula might need array (not sure). Kindly help me sort this problem.

if close is greater than the value of close of the lowest low value of rsi (14) of the last N days
and
rsi of now is greater than its past value...!

this appears to be a search for continuation pattern....!

let me know if i am missing something...!

will post the code this weekend...!