PureBytes Links
Trading Reference Links
|
[Perhaps your misunderstanding is the last day of your data.
As you see from gif, for that last day prices are equal.
Why?
Because, whithout data for tomorrow, the program gives for
ref(close,1) the available today?s price.
(In my opinion, it should indicate an {empty} value, because
ref(close,+1) exists for all previous days except the last one)
I do not know how it is designed, I know how it works.]
Anyway, the simple line for today?s close is
c1=c;
I hope this is more clear now.
Please note here that ref(close,+5), which is the close +5 days later
than examined day, has NOT ANY meaning for the last 4 days, no
matter if it is on your gaph and no matter if it gives you results in any
calculation. It SHOULD be handled with care.
Dimitris Tsokakis
------=_NextPart_001_0008_01C12003.2A878600
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 size=2>Anthony,</FONT></DIV>
<DIV><FONT size=2>"c1 = ref(close,0); which made no difference to the
calculations as<BR>when I had <BR>c1 = ref(close,1);"</FONT></DIV>
<DIV><FONT size=2>This is not correct.</FONT></DIV>
<DIV><FONT size=2>ref(close,0) is the close 0 days ago, ie today</FONT></DIV>
<DIV><FONT size=2>ref(close,1) is the close 1 day ahead, ie
tomorrow</FONT></DIV>
<DIV><FONT size=2>It makes difference to the calculation.</FONT></DIV>
<DIV><FONT size=2>See att. gif.</FONT></DIV>
<DIV><FONT size=2>The two above functions are plotted on the same
graph.</FONT></DIV>
<DIV><FONT size=2>Curves are different.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>[Perhaps your misunderstanding is the last day of your
data.</FONT></DIV>
<DIV><FONT size=2>As you see from gif, for that last day prices are
equal.</FONT></DIV>
<DIV><FONT size=2>Why?</FONT></DIV>
<DIV><FONT size=2>Because, whithout data for tomorrow, the program gives
for</FONT></DIV>
<DIV><FONT size=2>ref(close,1) the available today´s price.</FONT></DIV>
<DIV><FONT size=2>(In my opinion, it should indicate an {empty} value,
because</FONT></DIV>
<DIV><FONT size=2>ref(close,+1) exists for all previous days except the last
one)</FONT></DIV>
<DIV><FONT size=2>I do not know how it is designed, I know how it
works.]</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Anyway, the simple line for today´s close is</FONT></DIV>
<DIV><FONT size=2>c1=c;</FONT></DIV>
<DIV><FONT size=2>I hope this is more clear now.</FONT></DIV>
<DIV><FONT size=2>Please note here that ref(close,+5), which is the close+5
days later</FONT></DIV>
<DIV><FONT size=2>than examined day, has NOT ANY meaning for the last 4 days,
no</FONT></DIV>
<DIV><FONT size=2>matter if it is on your gaph and no matter if it gives you
results in any</FONT></DIV>
<DIV><FONT size=2>calculation. It SHOULD be handled with care.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Dimitris Tsokakis<BR><BR></DIV></FONT></BODY></HTML>
------=_NextPart_001_0008_01C12003.2A878600--
Attachment:
gif00100.gif
Attachment:
Description: "Description: GIF image"
|