Request for Help on Pattern recognition AFL's

swagat86

Active Member
#1
Hiiii Frnds.

I came across links which has the code for Patterns like Flags and Pennants, i also hav the Code for Butterfly and Gartley.

The Problem im facin is that since i dont hav much idea of the AFL's coding can anybody pls help me code them into AFL for benifit of All.

Flags and Penants(Also has a Metastock Code)
http://www.purebytes.com/archives/amibroker/2005/msg05906.html
Can u put it a proper format. Im gettin Several Errors in the builder.

Gartley 222 pattern.
http://www.amibroker.com/library/detail.php?id=347
Can u put a Exploration command in it??


Doublbe TOP, Triangle etc can be found here
http://www.traderji.com/amibroker/10341-my-collection-amibroker-formulas.html
Thanks to Subhim

Butterly Pattern( one of the best Reversal Patterns)
Problem is i hav a Code for Metatrader. If u can pls Look at it u may find the Solution.

If u Guys want to encode it to Metastock Format u can do that too.

BUt Pls frnds help me. I think they can be VEry Very benificial to all..


In case, If u are curious wat a Butterfly pattern is all about. Check the images below. and to Know wat a gartley is just refer to the Images in the following link
http://www.traderji.com/equities/10580-bearish-gartley-nifty.html#post71561

AFL Experts PLs Comment.

Thanks
Happy New Year
 

Attachments

Last edited:
#6
hi swagat
u need to add Filter first
and then add some columns like buy, sell, ID etc and u r done
and this applies for all explorations(ie u add in same manner to any of the indicators) once u learn it , it is really very simple.
sometimes i feel AFL is easier than English(only thing syntax should be right)
cheers
 

swagat86

Active Member
#7
hi swagat
u need to add Filter first
and then add some columns like buy, sell, ID etc and u r done
and this applies for all explorations(ie u add in same manner to any of the indicators) once u learn it , it is really very simple.
sometimes i feel AFL is easier than English(only thing syntax should be right)
cheers
HI Roshana can u do me a favor by pls lookin at the Files above. If yes Take ur time no need to hurry.


Thanks
 

beginner_av

Well-Known Member
#8
dear swagat,

sorry to see it late

as for the first one...its perfectly fine...just find the lines and correct this

// Translation of Markos Katsanos Metastock Code for 'Flags and
Pennants' Trading System

Make this into one line...the comment continues to a new line and breaks flow

OR C<Ref(LLV(C,X1), -D2) //EXIT CONDITION 2 STOP LOSS ON BREAKING OF
LOWER FLAG TRENDLINE

Make this into one line...the comment continues to a new line and breaks flow

And you are done...will check the others later.
 

Similar threads