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

RE: [amibroker] Addition



PureBytes Links

Trading Reference Links










Thanks Tomasz, that fills in the gaps as to the why.

 



<font size=3 color=teal
face="Times New Roman">Cheers,
Graham

<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/ASXShareTrading

<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/FMSAustralia



<span
>-----Original Message-----
From: <font size=2
 face=Tahoma>Tomasz Janeczko<font
size=2 face=Tahoma>
[mailto:amibroker@xxxxxx] 
Sent: Monday, 14 April 2003 6:23
PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Addition

<font size=3
face="Times New Roman"> 



<font size=2
face="Times New Roman">Hello,





<font size=2
face="Times New Roman"> 





<font size=2
face="Times New Roman">Floating point accuracy
limits are imposed by IEEE standards. 





<font size=2
face="Times New Roman"><a
href=""><font
color=purple face="Courier New">http://www.math.grin.edu/~stone/courses/fundamentals/IEEE-reals.html





<font size=2
face="Times New Roman"> 





<font size=2
face="Times New Roman">See also





<font size=2
face="Times New Roman"><a
href="">http://groups.yahoo.com/group/amibroker/message/13179





<font size=2
face="Times New Roman"> 





<font size=2
face="Times New Roman">and





<font size=2
face="Times New Roman"><a
href="">http://groups.yahoo.com/group/amibroker/message/28513





<font size=2
face="Times New Roman"> 





<font size=2
face="Times New Roman">Best regards,
Tomasz Janeczko
amibroker.com







<span
>----- Original Message ----- 





<font
size=2 face=Arial>From: <a href=""
title="gkavanagh@xxxxxxxxxxxxx">Graham 





<span
>To:<font
size=2 face=Arial> <a
href="" title="amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx






<span
>Sent:<font
size=2 face=Arial> Monday,
April 14, 2003 11:36 AM





<span
>Subject:<font
size=2 face=Arial> RE:
[amibroker] Addition





<font size=2
face="Times New Roman"> 



<span
>Bit hard to see the formula in the
GIF, colours are not contrasting enough.

<span
>But I made similar post about this
recently in the past 2 weeks.

<span
>So far nobody has responded to my
memory, except a similar one I made a long time ago when TJ said it had
something to do with the way numbers are stored in the OS. Same happens with
decimals, they are not seen as straight numbers as we see them. 5.4 can
actually be 5.399968. I have a large problem when I do rounding of numbers for
box sizes in P&F charts. I have had to force some numbers to read correctly
to make the correct X or O on the P&F. The example of 5.399968 is actually
the real number of 5.4, but when I have Floor function it pulls it back to 5.3.
It may not sound much, but with P&F charts if it should be 5.4 then a new X
is created, but the number inaccuracy stops this.

<span
>I work around this by using this to
create the close price I need for rising column in P&F . The main problem
is only when the box size is small <1.

<font size=2 color=black
face="Courier New">CR = <span
lang=EN-AU >IIf<font
size=2 color=black face="Courier New">(box==<font size=2
color=fuchsia face="Courier New">0.1<font size=2
color=black face="Courier New"> <font size=2 color=red
face="Courier New">AND<span
lang=EN-AU > (<font
size=2 color=blue face="Courier New">ceil<font size=2
color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >/box)*box-<font
size=2 color=blue face="Courier New">floor<font size=2
color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >/box)*box)><font
size=2 color=fuchsia face="Courier New">0<font size=2
color=black face="Courier New">,<font size=2 color=blue
face="Courier New">ceil<span
lang=EN-AU >(<font
size=2 color=red face="Courier New">C<font size=2 color=black
face="Courier New">/box)*box,<span
lang=EN-AU >floor<font
size=2 color=black face="Courier New">(<font size=2 color=red
face="Courier New">C<span
lang=EN-AU >/box)*box);

<font size=3
face="Times New Roman"> 

<span
>I have been trying to find a way to
work around the large numbers, but have not found a solution as yet

<span
>I did do a test of the large numbers
to see what is actually being stored. So I did this little test and found that
the odd numbers were the same as the previous even number. Both are seen as the
same number when read back from the computer memory

<font size=2 color=red
face="Courier New">Filter<span
lang=EN-AU >=<font
size=2 color=fuchsia face="Courier New">1<font size=2
color=black face="Courier New">;

<font size=2 color=blue
face="Courier New">AddColumn<span
lang=EN-AU >(<font
size=2 color=blue face="Courier New">frac<font size=2
color=black face="Courier New">(<font size=2
color=fuchsia face="Courier New">19000004<font size=2
color=black face="Courier New">/<font size=2
color=fuchsia face="Courier New">10<font size=2
color=black face="Courier New">),<font size=2
color="#cc4466" face="Courier New">""<font
size=2 color=black face="Courier New">,<font size=2
color=fuchsia face="Courier New">1.9<font size=2
color=black face="Courier New">); 

<font size=2 color=blue
face="Courier New">AddColumn<span
lang=EN-AU >(<font
size=2 color=blue face="Courier New">frac<font size=2
color=black face="Courier New">(<font size=2
color=fuchsia face="Courier New">19000005<font size=2
color=black face="Courier New">/<font size=2
color=fuchsia face="Courier New">10<font size=2
color=black face="Courier New">),<font size=2
color="#cc4466" face="Courier New">""<font
size=2 color=black face="Courier New">,<font size=2
color=fuchsia face="Courier New">1.9<font size=2
color=black face="Courier New">); 

<font size=2 color=blue
face="Courier New">AddColumn<span
lang=EN-AU >(<font
size=2 color=blue face="Courier New">frac<font size=2
color=black face="Courier New">(<font size=2
color=fuchsia face="Courier New">19000006<font size=2
color=black face="Courier New">/<font size=2
color=fuchsia face="Courier New">10<font size=2
color=black face="Courier New">),<font size=2
color="#cc4466" face="Courier New">""<font
size=2 color=black face="Courier New">,<font size=2
color=fuchsia face="Courier New">1.9<font size=2
color=black face="Courier New">);

<font size=3
face="Times New Roman"> 

<font size=2 color=black
face="Courier New">Results

<span
>ADU    14/04/2003 
  0.375000000       0.375000000  
   0.625000000 

<font size=3
face="Times New Roman"> 

<font size=2 color=black
face="Courier New">Wish I had an answer



<font
size=3 color=teal face="Times New Roman">Cheers,
Graham

<font
size=2 color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/ASXShareTrading

<font
size=2 color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/FMSAustralia



<span
>-----Original Message-----
From: Dimitris Tsokakis
[mailto:TSOKAKIS@xxxxxxxxx] 
Sent: Monday, 14 April 2003 4:54
PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Addition

<font size=3
face="Times New Roman"> 



<font size=2
face="Times New Roman">Any idea to improve the
addition accuracy ?





<font size=2
face="Times New Roman">Dimitris Tsokakis



 

<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
size=2> 

Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=2> 

<font size=2
face="Times New Roman"> 

<font size=2
face="Times New Roman">

Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<font size=2
face="Courier New">
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
size=2> 

Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=2> 



<font size=2
face="Times New Roman">



<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html<font
size=2> 

Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=2> 










Yahoo! Groups Sponsor












Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.