can somebody make this AFL

rgpt

New Member
#1
Hello, friends. I am a newbe in amibroker. I don't know anything about computer programming. I will be very greatful if anybody can write an AFL scan for me. I trade candlestick reversal signals. (A) My buy condition is [1] there must be a steep downtrend to reverse. [2] then appears doji or long legged doji or graveston doji or bullish engulfing or piercing line or hammer or morning star. [3] the Stochastic is less than 20. [4] the RSI is less than 20. [5] the next day's opening is gap-up with greater volume (this is where buy signal is needed). [6] holding period - three bars [7] sell after holding period [8] stoploss just below recent support. (B) In my short condition [1] there must be a steep uptrend to reverse. [2] then appears doji or long legged doji or gravestone doji or bearish engulfing or dark cloud cover or hanging man or evening star or shootin star [3] the stochastic is greater than 80 [4] the RSI is greater than 80 [5] the next day's opening is gap - down with greater volume (this is where short signal is need ) [6] holding period - three days [7] cover aftet holding period [8] stoploss just above recent resistance.
(C) [1] plot green arrow for buy or short on chart [2] plot red arrow for sell or cover on chart [3] show price of buy or sell or shor or cover on chart i.e. buy @ 402 rs or short @ 608 rs. etc. [D] scan and explore command must be given.
Thanks in advance, Regards Rgpt.
 

HULK

Active Member
#3
RGPT

Visit following link you will get ans of ur first part

http://www.amibroker.com/members/library/detail.php?id=422

Add following code at end of afl for Morning Doji Star

MDS = Ref(Close,-2)<Ref(Open,-2) AND Ref(Open,-1) < Ref(Close,-2)
AND Ref(C,-1) < Ref(Close,-2) AND Open > Ref(C,-1) AND Close > (Ref(Close,-2)+Ref(O,-2))/2
AND Ref(Open,-1) == Ref(Close,-1) ;

Filter = MDS>0.5;
AddColumn(MDS, "Morning Doji Star");
AddColumn(C, "close");
AddColumn(V, "Volume");

Now plot Stoch / RSI and Vol afl in different pane, rest you can do it manually

For support & resistance there are many theory available you have to identify which one is best for your trading method i.e Floor Pivot Points , Woodie's Pivot Points, Camarilla Pivot Points, DeMark's Pivot Points like this ......

HULK
 

lasty66

Active Member
#4
RGPT

Visit following link you will get ans of ur first part

http://www.amibroker.com/members/library/detail.php?id=422

Add following code at end of afl for Morning Doji Star

MDS = Ref(Close,-2)<Ref(Open,-2) AND Ref(Open,-1) < Ref(Close,-2)
AND Ref(C,-1) < Ref(Close,-2) AND Open > Ref(C,-1) AND Close > (Ref(Close,-2)+Ref(O,-2))/2
AND Ref(Open,-1) == Ref(Close,-1) ;

Filter = MDS>0.5;
AddColumn(MDS, "Morning Doji Star");
AddColumn(C, "close");
AddColumn(V, "Volume");

Now plot Stoch / RSI and Vol afl in different pane, rest you can do it manually

For support & resistance there are many theory available you have to identify which one is best for your trading method i.e Floor Pivot Points , Woodie's Pivot Points, Camarilla Pivot Points, DeMark's Pivot Points like this ......

HULK
Hi Hulk,
The link u gave is a member restricted .. u have a password for that?
 

rgpt

New Member
#7
RGPT

Visit following link you will get ans of ur first part

http://www.amibroker.com/members/library/detail.php?id=422

Add following code at end of afl for Morning Doji Star

MDS = Ref(Close,-2)<Ref(Open,-2) AND Ref(Open,-1) < Ref(Close,-2)
AND Ref(C,-1) < Ref(Close,-2) AND Open > Ref(C,-1) AND Close > (Ref(Close,-2)+Ref(O,-2))/2
AND Ref(Open,-1) == Ref(Close,-1) ;

Filter = MDS>0.5;
AddColumn(MDS, "Morning Doji Star");
AddColumn(C, "close");
AddColumn(V, "Volume");

Now plot Stoch / RSI and Vol afl in different pane, rest you can do it manually

For support & resistance there are many theory available you have to identify which one is best for your trading method i.e Floor Pivot Points , Woodie's Pivot Points, Camarilla Pivot Points, DeMark's Pivot Points like this ......

HULK
:) Dear mr hulk making AFL is beyond my comprehension.Can you please compile these AFL.I can't do this of my own.Thanks in advance.