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

Zero Balance



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.3509.100"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000 size=2>Well,</FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;Here is my effort to code Larry Williams 
&quot;Zero Balance&quot; to MetaStock.</FONT></DIV>
<DIV><FONT color=#000000 size=2>There are some differences I should point 
out:</FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp; Larry Williams uses High's and Low's in 
his calculations, and I used</FONT></DIV>
<DIV><FONT color=#000000 size=2>closing prices.</FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp; Instead of plotting actual points, I 
found (for forecasting future values) that</FONT></DIV>
<DIV><FONT color=#000000 size=2>graphing the actual &quot;Zero Balance&quot; in 
a stairstep fashion works pretty well.</FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;I was also unable to calculate the 
&quot;Important Recorded High's and Low's&quot;</FONT></DIV>
<DIV><FONT color=#000000 size=2>in the same fashion as Williams, so I used 5% 
ZigZag in my calculations,</FONT></DIV>
<DIV><FONT color=#000000 size=2>which seems to give similar 
results.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>&nbsp;</FONT></DIV>
<DIV><FONT color=#000000 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{ ZB8 }</FONT></DIV>
<DIV><FONT color=#000000 
size=2>IRH:=If((Zig(C,5,%)&gt;Ref(Zig(C,5,%),-1))AND<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(Zig(C,5,%)&gt;Ref(Zig(C,5,%),1)),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}C,{else}0);<BR>IRL:=If((Zig(C,5,%)&lt;Ref(Zig(C,5,%),-1))AND<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(Zig(C,5,%)&lt;Ref(Zig(C,5,%),1)),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}C,{else}0);<BR>ZB8:=If(BarsSince(IRH&gt;0)&lt;BarsSince(IRL&gt;0),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}(ValueWhen(1,IRL&gt;0,C)+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(2,IRH&gt;0,C))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-ValueWhen(3,IRH&gt;0,C),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}(ValueWhen(1,IRH&gt;0,C)+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(2,IRL&gt;0,C))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-ValueWhen(3,IRL&gt;0,C));<BR>ZB8;<BR>&nbsp;&nbsp;&nbsp; </FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;One of the ways Williams teaches to use 
Zero Balance is to look for 3 consecutive </FONT></DIV>
<DIV><FONT color=#000000 size=2>moves of ZB8 in the same direction (up or down, 
rather than up and down), he claims</FONT></DIV>
<DIV><FONT color=#000000 size=2>that many tops and bottoms can be detected this 
way. I have attached some graphs</FONT></DIV>
<DIV><FONT color=#000000 size=2>showing what he means.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2><IMG align=baseline alt="" border=0 hspace=0 
src="cid:001001bdef0c$6c7e3b60$66fb9bce@xxxxxxxxxxxxxxxxx";></FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>Does this work everytime? I dont know, I just 
developed the code last night, </FONT></DIV>
<DIV><FONT color=#000000 size=2>and I will test further. Could this next chart 
be signaling a market turn? Time</FONT></DIV>
<DIV><FONT color=#000000 size=2>will tell.</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2><IMG align=baseline alt="" border=0 hspace=0 
src="cid:001201bdef0c$6c7e3b60$66fb9bce@xxxxxxxxxxxxxxxxx";></FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>&nbsp;ZB8 calculates the value Zero Balance 
point 8 should be, </FONT></DIV>
<DIV><FONT color=#000000 size=2>In other words the peak or trough of the close 
shown on the</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>chart is where point 7 is 
calculated from, and the dashed line</FONT></DIV>
<DIV><FONT size=2>of ZB (that starts on the same day as a peak or trough ) 
is&nbsp;</FONT></DIV>
<DIV><FONT size=2>the projected value of the next peak or trough (ZB8). 
Williams</FONT></DIV>
<DIV><FONT size=2>claims that if the price is above ZB then it is 
&quot;overbought&quot;,</FONT></DIV>
<DIV><FONT size=2>and if below ZB then &quot;oversold&quot;. Williams seems to 
promote</FONT></DIV>
<DIV><FONT size=2>the 3 moves instead of&nbsp; overbought/oversold 
aspect.</FONT></DIV>
<DIV><FONT color=#000000 size=2>&nbsp;Now if you followed all that, this next 
formula will calculate the</FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>value of ZB point 9, keep in 
mind that this is plotting the ZB value</FONT></DIV>
<DIV><FONT size=2>that WILL be, a peak and trough in the future.</FONT></DIV>
<DIV><FONT size=2></FONT><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{ ZB9 }</FONT></DIV>
<DIV><FONT 
size=2>IRH:=If((Zig(C,5,%)&gt;Ref(Zig(C,5,%),-1))AND<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(Zig(C,5,%)&gt;Ref(Zig(C,5,%),1)),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}C,{else}0);<BR>IRL:=If((Zig(C,5,%)&lt;Ref(Zig(C,5,%),-1))AND<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
(Zig(C,5,%)&lt;Ref(Zig(C,5,%),1)),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}C,{else}0);<BR>ZB9:=If(BarsSince(IRH&gt;0)&lt;BarsSince(IRL&gt;0),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{then}(ValueWhen(1,IRH&gt;0,C)+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(1,IRL&gt;0,C))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-ValueWhen(2,IRL&gt;0,C),<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{else}(ValueWhen(1,IRL&gt;0,C)+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ValueWhen(1,IRH&gt;0,C))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-ValueWhen(2,IRH&gt;0,C));<BR>ZB9;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2>Perhaps there is a better way to do 
this.......... please feel free </FONT></DIV>
<DIV><FONT color=#000000 size=2></FONT><FONT size=2>to comment, </FONT></DIV>
<DIV><FONT 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Adam Hefner</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV></BODY></HTML>
</x-html>
Attachment Converted: "c:\eudora\attach\Zero Balance.gif"

Attachment Converted: "c:\eudora\attach\Zero Balance1.gif"