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

Re: [EquisMetaStock Group] Re:Creating a Date function



PureBytes Links

Trading Reference Links



You cannot reply to this message via email because you have chosen not
to disclose your email address to the group.  Please use this
page to reply.
 




For those interested why this happens, it's due to 
the way Metastock internally does its calculations using Single Precision 
Floating Point numbers.
 
Computers are binary animals and therefore to 
represent numbers and fractions of numbers, a method called floating point 
representation is used.  The more "bits" (0s and 1s) used in representing a 
number, the more "precision" it will have and the two most common forms are 
single and double precision.  There is a computational performance penalty 
when using double precision numbers.
 
A single precision number occupies 32 bits (4 
bytes) of memory whereas a double precision is 64 bits (8 bytes) of 
information.
 
Unfortunately, with certain types of calculations 
and indicators, the errors introduced by single precision calculations can be 
significantly multiplied and cause a wide margin of error.  This is 
especially true of numbers that are either very large or numbers with lots of 
decimal places.  It's even worse when you try to multiply large numbers by 
small numbers etc and for cumulative values that reference all previous 
values in its calculation (eg. OBV).
 
Let's hope that Equis will someday implement double 
precision in both their formula calculations and their data format (or at least 
give the user the option).
 
Best regards,Richard DaleNorgate Investor Services- Premium 
Quality Stock & Futures Data covering Australia, Singapore and US Markets 
-www.premiumdata.net
 






Yahoo! Groups Sponsor


  ADVERTISEMENT









To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx





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