afl for Cowabunga System

bandlab2

Well-Known Member
#1
http://www.babypips.com/blogs/pip-my-system/so_youve_finished_the_school_o.html

has anyone coded afl for this ? looks to work well for intraday. can someone code thsi ?

Long trades:

5 EMA must cross above the 10 EMA (Indicated on my chart by a black candle)
RSI must be greater than 50
Stochastics must be headed up and not in overbought territory
MACD histogram must go from negative to positive OR be negative and start to increase value. (We want to catch trends early so the MACD histogram must be negative)

Short trades:

5 EMA must cross below the 10 EMA (Indicated on my chart by a purple candle)
RSI must be less than 50
Stochastics must be headed down and not in oversold territory
MACD histogram must go from positive to negative OR be positive and start to decrease in value. (We want to catch trends early so the MACD histogram must be positive)
 

asnavale

Well-Known Member
#2
http://www.babypips.com/blogs/pip-my-system/so_youve_finished_the_school_o.html

has anyone coded afl for this ? looks to work well for intraday. can someone code thsi ?

Long trades:

5 EMA must cross above the 10 EMA (Indicated on my chart by a black candle)
RSI must be greater than 50
Stochastics must be headed up and not in overbought territory
MACD histogram must go from negative to positive OR be negative and start to increase value. (We want to catch trends early so the MACD histogram must be negative)

Short trades:

5 EMA must cross below the 10 EMA (Indicated on my chart by a purple candle)
RSI must be less than 50
Stochastics must be headed down and not in oversold territory
MACD histogram must go from positive to negative OR be positive and start to decrease in value. (We want to catch trends early so the MACD histogram must be positive)
Hi bandlab2,

Here is an attempt to make an AFL for CowaBunga system. I am not sure it is the one you need. You can try it and see. I have no intraday data to test it. If you have access to intraday data try the foolowing AFL and give feed back. If any improvement or modification is required, please post your comments here. I will try to do my best

The AFL is as follows:

_SECTION_BEGIN("COWABUNGA");

E5 = EMA(C, 5);
E10 = EMA(C, 10);

R = RSI(9);
SK = StochK(10, 3);
SD = StochD(10, 3, 3);
MH = MACD(12, 26) - Signal(12, 26, 9);

//Conditions for Buying

Cond1 = E5 > E10;
Cond2 = R > 50;
Cond3 = SD < 80 AND SD > Ref(SD, -1);
Cond4 = MH > 0 OR (MH < 0 AND MH > Ref(MH, -1));

//Conditions for Selling

Cond5 = E10 > E5;
Cond6 = R < 50;
Cond7 = SD > 20 AND SD < Ref(SD, -1);
Cond8 = MH < 0 OR (MH > 0 AND MH < Ref(MH, -1));

Buy = Cond1 AND Cond2 AND Cond3 AND Cond4;
Sell = Cond5 AND Cond6 AND Cond7 AND Cond8;

Buy = ExRem(Buy, Sell);
Sell = ExRem(Sell, Buy);

Plot(C, "", colorGrey40, styleBar);
Plot(E5, "EMA5", colorGreen, styleLine);
Plot(E10,"EMA10", colorRed, styleLine);

PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-20);
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-30);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-25);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=20);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=30);
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-25);

_SECTION_END();


-Anant
 

SwingKing

Well-Known Member
#3
Well I dont know if am sure .... but isn't this system more or less like one mentioned in intraday section (5 ema and 13 ema). I think it was Pride's Intraday method ... not sure though ...
 

asnavale

Well-Known Member
#4
Well I dont know if am sure .... but isn't this system more or less like one mentioned in intraday section (5 ema and 13 ema). I think it was Pride's Intraday method ... not sure though ...
I have not seen Prides method. The AFL was written based on bandlabs criteria given in his post.

-Anant
 

SwingKing

Well-Known Member
#5
I have not seen Prides method. The AFL was written based on bandlabs criteria given in his post.

-Anant
Yes I know that ... I think u r the god of AFL's :thumb: have seen a lot of 'quick' AFL's posted by u ...

Simply superb!!!
 

pkgmtnl

Well-Known Member
#6
Yes Anant bhai has very helpful for sharing his AFL building knowledge.

I am not able to develop an Expl for :

build an Expl AFL which if run in First half n hour of the market to know the exceptionally high volume in scripts.

Like I run Expl 5min, and my conditions would be
to identify the scripts which
Average sum of volume of last six bars > 25% of daily average Volume of last 5days?

How to write this conditions? can it be written as

Cond1 = (V+Ref(V,-1)+Ref(V,-2)+Ref(V,-3)+Ref(V,-4)+Ref(V,-5))> ?????

Please help
 

asnavale

Well-Known Member
#7
Yes Anant bhai has very helpful for sharing his AFL building knowledge.

I am not able to develop an Expl for :

build an Expl AFL which if run in First half n hour of the market to know the exceptionally high volume in scripts.

Like I run Expl 5min, and my conditions would be
to identify the scripts which
Average sum of volume of last six bars > 25% of daily average Volume of last 5days?

How to write this conditions? can it be written as

Cond1 = (V+Ref(V,-1)+Ref(V,-2)+Ref(V,-3)+Ref(V,-4)+Ref(V,-5))> ?????

Please help
Hi pkg,

I have written the AFL but my problem is I have no intra-day data to test it. I am trying to get some data so that I can test it with the historical data. After that i will post the AFL and you can test it with live data feed.

-Anant
 

asnavale

Well-Known Member
#9
is anybody can write an afl for me on a well known old method, i can raddy to pay, please contect nifty46 @ yah00.com thax
Can you specify what that "Well Known Old Method"?

-Anant
 

pkgmtnl

Well-Known Member
#10
Hi pkg,

I have written the AFL but my problem is I have no intra-day data to test it. I am trying to get some data so that I can test it with the historical data. After that i will post the AFL and you can test it with live data feed.

-Anant
take his free trial for live RT data h t t p : / /r a m a t echnical.in/
remove spaces
plz paste that AFL conds
thanx anant bhai have been a gr8 motivating force for me
 

Similar threads