Can anybody make this AFL ?

rajsumi121

Well-Known Member
#1
Buy = stock above 21 day ema with adx above 25 with +di above - di


sell = stock below 21 day ema with adx above 25 with +di below -di .
 
#2
yes..
_section_begin("filter");
buy = close > ema(close,21) and pdi(14) > mdi(14) and adx(14) > 25;
sell = close < ema(close,21) and pdi(14) < mdi(14) and adx(14) > 25;
filter = buy or sell;
addcolumn(close,"close");
_section_end();
 

rajsumi121

Well-Known Member
#3
yes..
_section_begin("filter");
buy = close > ema(close,21) and pdi(14) > mdi(14) and adx(14) > 25;
sell = close < ema(close,21) and pdi(14) < mdi(14) and adx(14) > 25;
filter = buy or sell;
addcolumn(close,"close");
_section_end();
Thanks for your efforts ... can you add few more things in this afl ....1. rsi above 60 for buying and below 40 for selling


2. stochastic above 60 for buying and below 40 for selling


3. volume up by 75 % or above by previous day volume
 

rajsumi121

Well-Known Member
#4
Thanks for your efforts ... can you add few more things in this afl ....1. rsi above 60 for buying and below 40 for selling


2. stochastic above 60 for buying and below 40 for selling


3. volume up by 75 % or above by previous day volume


4. stoploss =1% .... target 1 = 2 % target 2 = 4% target 3 = 8%
 

rajsumi121

Well-Known Member
#5
5 . buy if trading above todays open .


6. sell if trading below todays open .
 

Similar threads