# Exploration - Gartley

##### Newbie
Hello,

I've been looking around for the code of Gartley Exploration!!!!

Does anybody know how to code it, in Metastock? ie, finding Gartley patterns in Metastock Explorer or rather finding AB = CD thru swings?

Thanx for the help in advance!!!!!

See following site...

Also see a code from Jose's site which is called harmoinic pattern indicator.

You may want to tweak the code to suit your requirement....

MetaStock -> Tools -> Indicator Builder -> New
Copy and paste formula below.

===========================
Harmonic Pattern Correlator
===========================
---8<---------------------------

{ Stock/Harmonic Pattern correlator v1.0 }
{ Plot on own window below price chart }
{ Zoom out & cycle trough stocks }
{ Search for meaningful patterns }
{ ©Copyrite 2004 Jose Silva }
{ http://www.metastocktools.com }

xshift:=Input("x wave shift (0~100)%",
0,100,50)/100+1;
yshift:=Input("y wave shift (0~100)%",
0,100,33.333333)/100+1;
zshift:=Input("z wave shift (0~100)%",
0,100,20)/100+1;
scalar:=Input("Scalar (1-100)",1,100,33.333333);

x:=Sin(Power(Cum(1/H),xshift));
y:=Sin(Power(Cum(1/L),yshift));
z:=Cos(Power(Cum(1/C),zshift));
odd:=Cum(1)/2=Int(Cum(1)/2);
pattern:=If(odd,x+y-z,x-y+z)*scalar;

pattern

---8<---------------------------

http://www.metastocktools.com

Hello zambuck,

This is just a indicator, what I was looking out for was an exploration, which you identify the gartley patterns, or rather AB = CD!!!!!!!

How can I put this in an exploration? I think it will require a lot of tweaking.

Anyways, this would really help me getting started.

Thank You again very much, You have been a great help.

I think you will have to play with the indicator code to see if you can tweak it to run for am exploration.....

Generally the codes for Indicator and Explorations are the same....

Perhaps you can run this indicator on chart and then run exploration on that indicator when certain line reaches a figure or crosses a point...????

There are lots of ways to achieve this......I think it's time to burn the midnight oil...!!!

zambuck said:
I think you will have to play with the indicator code to see if you can tweak it to run for am exploration.....

Generally the codes for Indicator and Explorations are the same....

Perhaps you can run this indicator on chart and then run exploration on that indicator when certain line reaches a figure or crosses a point...????

There are lots of ways to achieve this......I think it's time to burn the midnight oil...!!!

Yes, very true, been doing it !!!!!! :idea:

Replies
4
Views
7K
Replies
0
Views
6K
Replies
0
Views
2K
Replies
0
Views
1K
Replies
0
Views
2K