If Amibroker doesn’t have double precision, then setting the number of decimal 
points can be quite inaccurate.

 

From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of 
Paul D
Sent: Monday, July 19, 2010 6:38 PM
To: amibroker@yahoogroups.com
Subject: Re: [amibroker] Why does adding 10000 to PositionScore cause problems?

 

  

Oh whoops. Sorry - apparently I didn't read your question carefully enough. Not 
sure how to solve the precision problem. 

Paul

 

  _____  

From: Herman <psy...@magma.ca>
To: bistrader <amibroker@yahoogroups.com>
Sent: Mon, July 19, 2010 3:19:01 PM
Subject: Re: [amibroker] Why does adding 10000 to PositionScore cause problems?

  

You are exceeding the 7-digit precision (32 bits?) of AmiBroker.

herman

> I have an afl with PositionScore at 77.904854 for one
> ticker.  PositionScore also has negative values for
> certain tickers for certain dates.  So, I add 10000 to
> PositionScore as I want all PositionScore values to be
> positive.  I do so as followings and notice that 77.904854
> changes to 10077.90527.  Happens to many tickers.  Not
> what I expected.  I expected values to increase by exactly 10000.

> PositionScore = rank; // 77.904854 is one value observed
> PositionScaore = PositionScore + 10000; // expect to get
> 10077.904854 but get 10077.90527

> I know I am missing something with precision.  I looked
> in help but could not find anything to help.  Does anyone
> know what is going on and where in documentation?

> Thanks.



> ------------ --------- --------- ------

> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.

> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.com

> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
 <http://www.amibroker.com/feedback/> > http://www.amibroke r.com/feedback/
> (submissions sent via other channels won't be considered)

> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 <http://www.amibroker.com/devlog/> > http://www.amibroke r.com/devlog/

> Yahoo! Groups Links



 



<<image001.jpg>>

<<image002.jpg>>

Reply via email to