[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need Gann swing chart for Metastock



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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; today's high > yesterday's
high AND
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yesterday's high > the high
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
two days ago AND
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; today's close > median price
today}

<P>{ganndown is similar on falling prices}
<BR>&nbsp;
<BR>{plot selects the value to plot
<BR>&nbsp;&nbsp;&nbsp; if gannup is true plot today's high
<BR>&nbsp;&nbsp;&nbsp; if ganndown is true plot today's low
<BR>&nbsp;&nbsp;&nbsp; else plot the previous value}

<P>gannup:= HIGH > Ref(HIGH,-1) AND
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Ref(HIGH,-1) > Ref(HIGH,-2) AND
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CLOSE >&nbsp; MP();

<P>ganndown:= LOW &lt; Ref(LOW,-1) AND
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Ref(LOW,-1) &lt; Ref(LOW,-2) AND
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
CLOSE &lt; MP();

<P>plot:=&nbsp;&nbsp;&nbsp; If(gannup,HIGH,
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
If(ganndown,LOW,
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
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>&nbsp;</HTML>
</x-html>
Attachment Converted: "c:\eudora\attach\CWINDOWSTEMPnsmailJJ.gif"