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

Gann Swing charts



PureBytes Links

Trading Reference Links

<x-html><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY>
<DIV><FONT size=2></FONT><FONT color=#000000 size=2></FONT><FONT size=2>The 
system is still under development, so I am open to any suggestion 
or</FONT></DIV>
<DIV><FONT size=2>comments.</FONT></DIV>
<DIV><FONT color=#000000 size=2>I must first take the time to thank Jan Greenen 
for helping with the testing!!!</FONT></DIV>
<DIV><FONT size=2>In a couple of TASC articles Robert Krausz describes a 
&quot;basic&quot; system he calls</FONT></DIV>
<DIV><FONT size=2>&quot;Gann Swing Trading&quot;, the problems with implementing 
this system into MetaStock</FONT></DIV>
<DIV><FONT size=2></FONT><FONT color=#000000 size=2>seem to mostly be cosmetic. 
First instead of using an indicator to plot from the </FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>Peak to Trough; to show 
&quot;swings&quot; and trend changes...I had to use the &quot;Expert 
Advisor&quot;</FONT></DIV>
<DIV><FONT size=2>to show the trend changes. Also Krausz method of using the 
&quot;HiLo&quot; is to have it </FONT></DIV>
<DIV><FONT size=2>plot one color on the high-side and a different color for 
low-side....since this can't be</FONT></DIV>
<DIV><FONT size=2>done in MS, I used the &quot;Expert&quot; to help visualize 
the day it changes. The following </FONT></DIV>
<DIV><FONT size=2>codes will create a Binary signal, that can then be used in 
the expert advisor. Also </FONT></DIV>
<DIV><FONT size=2>I have posted a graphic to show how I have set my 
&quot;Expert&quot; to look.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp; Best wishes,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Adam Hefner.<BR><A 
href="mailto:VonHef@xxxxxxxxxxxxx";>VonHef@xxxxxxxxxxxxx</A> </DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>-------------------------------------------------</FONT></DIV>
<DIV><FONT size=2>name: GANN-HiLo</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT 
size=2>HLd:=If(CLOSE&gt;Ref(Mov(H,3,S),-1),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}If(CLOSE&lt;Ref(Mov(L,3,S),-1),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}-1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}0));<BR>HLv:=ValueWhen(1,HLd&lt;&gt;0,HLd);<BR>HiLo:=If(HLv=-1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}Mov(H,3,S),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}Mov(L,3,S));<BR>HiLo;</FONT></DIV>
<DIV><FONT 
size=2>---------------------------------------------------</FONT></DIV>
<DIV><FONT size=2>name: GANN-Swing</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;{Market swing is defined as:<BR>&nbsp; Up&nbsp;&nbsp; = 
2 higher highs,<BR>&nbsp; Down = 2 lower highs.}<BR>Us:=BarsSince((H &gt; 
Ref(H,-1)) AND (Ref(H,-1) &gt; <BR>&nbsp;&nbsp;&nbsp; 
Ref(H,-2)));<BR>Ds:=BarsSince((L &lt; Ref(L,-1)) AND (Ref(L,-1) &lt; 
<BR>&nbsp;&nbsp;&nbsp; Ref(L,-2)));<BR>Sd1:=If(Us=0,<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
{then}If(Ref(L,-1)&lt;&gt;LowestSince(1,Ds=0,L),<BR>&n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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}0),<BR>&nbsp;&nbsp;&nbsp;&nbsp; {else} 
If(Sd1=-1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}If(Ref(BarsSince(Sd1=1),-1) 
&lt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Ref(BarsSince(Sd1=-1),-1),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}-1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}0),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}0));<BR>TD1:=ValueWhen(1,Sd2&lt;&gt;0,Sd2);<BR>Td1;</FONT></DIV>
<DIV><FONT 
size=2>-------------------------------------------------------------</FONT></DIV>
<DIV><FONT size=2>name: GANN-Trend</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;{Swing Direction}<BR>Sd:= 
FmlVar(&quot;GANN-Swing&quot;,&quot;TD1&quot;) ;<BR>&nbsp;{Swing Change 
High}<BR>Sch:=If(Sd=1 AND Ref(sd,-1)=-1,<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
{then}1,<BR>&nbsp;&nbsp;&nbsp;&nbsp; {else}0);<BR>&nbsp;{Swing Change 
Low}<BR>Scl:=If(Sd=-1 AND Ref(Sd,-1)=1,<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
{then}1,<BR>&nbsp;&nbsp;&nbsp;&nbsp; {else}0);<BR>&nbsp;{Peak 
Value}<BR>Pv:=If(Scl=1,<BR>&nbsp;&nbsp;&nbsp; 
{then}HighestSince(1,Sch=1,H),<BR>&nbsp;&nbsp;&nbsp; {else}0);<BR>&nbsp;{Trough 
Value}<BR>Tv:=If(Sch=1,<BR>&nbsp;&nbsp;&nbsp; 
{then}LowestSince(1,Scl=1,L),<BR>&nbsp;&nbsp;&nbsp; {else}0);<BR>&nbsp;{Trend 
Direction}<BR>Td:=If(H&gt;ValueWhen(1,Pv&gt;0,Pv),<BR>&nbsp;&nbsp;&nbsp; 
{then}1,<BR>&nbsp;&nbsp;&nbsp; 
{else}If(L&lt;ValueWhen(1,Tv&gt;0,Tv),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}-1,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}0));<BR>&nbsp;{UpTrend=1 DownTrend 
=-1}<BR>Tdv:=ValueWhen(1,Td&lt;&gt;0,Td);<BR>Tdv;</FONT></DIV>
<DIV><FONT size=2>-----------------------------------------------</FONT></DIV>
<DIV><FONT size=2></FONT><IMG align=baseline alt="" border=0 hspace=0 
src="cid:004201be67ea$1f7322c0$a6d5fed0@xxxxxxxxxxxxxxxxx";></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV></BODY></HTML>
</x-html>
Attachment Converted: "c:\eudora\attach\Gann Swing charts.gif"