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

Trendline



PureBytes Links

Trading Reference Links

------=_NextPart_001_0010_01C12A91.A8944B80
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-7" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I just noticed that the "trendline formula" is not 
always correct.</FONT></DIV>
<DIV><FONT face=Arial size=2>s11=h;</FONT></DIV>
<DIV><FONT face=Arial size=2>x=cum(1);<BR>endvalue1 = lastvalue( peak( s11, 1, 1 
) );<BR>startvalue1 = lastvalue( peak( s11, 1, 2 ) );<BR>endbar1 = lastvalue( 
valuewhen( s11 == endvalue1, x, 1 ) );<BR>startbar1 = lastvalue( valuewhen( s11 
== startvalue1, x, 1 ) );<BR>graph2=endbar1-startbar1;</FONT></DIV>
<DIV><FONT face=Arial size=2>Some times may give negative graph2, as ifthe 
previous peak</FONT></DIV>
<DIV><FONT face=Arial size=2>was AFTER the last, which is a bit 
impossible.</FONT></DIV>
<DIV><FONT face=Arial size=2>This may happen, if a high after the last peak is, 
by coincidence,</FONT></DIV>
<DIV><FONT face=Arial size=2>equal to the first peak.</FONT></DIV>
<DIV><FONT face=Arial size=2>In att. gif, the high at A is 2.33 and graph2=4 
days from peak to peak.</FONT></DIV>
<DIV><FONT face=Arial size=2>If you plot above, you will read graph2=-3, simply 
because the </FONT></DIV>
<DIV><FONT face=Arial size=2>high at C is EXACTLY 2.33 and the VALUEWHEN 
function will read</FONT></DIV>
<DIV><FONT face=Arial size=2>this and not the expected from point 
A.</FONT></DIV>
<DIV><FONT face=Arial size=2>So, some formulas need to be revised.</FONT></DIV>
<DIV><FONT face=Arial size=2>I will revert with details.</FONT></DIV>
<DIV><FONT face=Arial size=2>Dimitris Tsokakis</FONT></DIV></BODY></HTML>

------=_NextPart_001_0010_01C12A91.A8944B80--

Attachment:
gif00143.gif

Attachment: Description: "Description: GIF image"