PureBytes Links
Trading Reference Links
|
Hans Tore Liland wrote:-
Could anybody help me with a Gann 3 day swing chart for Metastock 6.5?
I do not fully understand the formula you are trying to plot.
eg how can the trend be up if you have three consecutive lows ?
However herewith my interpretation of what you are trying to do.
Gann 3 Day Swing Chart
{gannup is true if
today's high > yesterday's high AND
yesterday's high > the high
two days ago AND
today's close > median price today}
{ganndown is similar on falling prices}
{plot selects the value to plot
if gannup is true plot today's high
if ganndown is true plot today's low
else plot the previous value}
gannup:= HIGH > Ref(HIGH,-1) AND
Ref(HIGH,-1) > Ref(HIGH,-2) AND
CLOSE > MP();
ganndown:= LOW < Ref(LOW,-1) AND
Ref(LOW,-1) < Ref(LOW,-2) AND
CLOSE < MP();
plot:= If(gannup,HIGH,
If(ganndown,LOW,
PREVIOUS)) ;
plot
Please let me know if this is what you were looking for ... Regards ...
Martin
[Image]
<x-html><HTML>
<I>Hans Tore Liland wrote:-</I>
<P><I>Could anybody help me with a Gann 3 day swing chart for Metastock
6.5?</I>
<P>I do not fully understand the formula you are trying to plot.
<BR>eg how can the trend be up if you have three consecutive lows ?
<P>However herewith my interpretation of what you are trying to do.
<P><B>Gann 3 Day Swing Chart</B>
<P>{gannup is true if
<BR> today's high > yesterday's
high AND
<BR> yesterday's high > the high
<BR>
two days ago AND
<BR> today's close > median price
today}
<P>{ganndown is similar on falling prices}
<BR>
<BR>{plot selects the value to plot
<BR> if gannup is true plot today's high
<BR> if ganndown is true plot today's low
<BR> else plot the previous value}
<P>gannup:= HIGH > Ref(HIGH,-1) AND
<BR>
Ref(HIGH,-1) > Ref(HIGH,-2) AND
<BR>
CLOSE > MP();
<P>ganndown:= LOW < Ref(LOW,-1) AND
<BR>
Ref(LOW,-1) < Ref(LOW,-2) AND
<BR>
CLOSE < MP();
<P>plot:= If(gannup,HIGH,
<BR>
If(ganndown,LOW,
<BR>
PREVIOUS)) ;
<P>plot
<P>Please let me know if this is what you were looking for ... Regards
... Martin
<P><IMG SRC="cid:part1.34A0E6E2.8B79E071@xxxxxxxxxxxxxx" HEIGHT=600 WIDTH=800>
<BR> </HTML>
</x-html>
Attachment Converted: "c:\eudora\attach\CWINDOWSTEMPnsmailJJ.gif"
|