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

Re: [amibroker] Digits



PureBytes Links

Trading Reference Links

Hello Tomasz,

thanks for your help, i fully understand.

Regards

Thomas
www.tradingbasis.com


Tomasz Janeczko wrote:
Thomas,
 
Regardless of symbol (stock or currency) prices are always stored in floating point 32-bit representation
Number of digits displayed depends only on formula used.
For example if you use 2 in second parameter of WriteVal you will get 2 decimal digits
if you use 4 you will get 4.
 
The same with printf function. Printf ("%.2f", close ); will print 2 decimals Printf( "%.4f", close ); will print 4 decimals.
 
As for formulas that come with AmiBroker, most recent beta versions have number of digits user-definable
in Tools->Prefs->Misc

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Thomas Z
Sent: Saturday, October 29, 2005 10:33 AM
Subject: Re: [amibroker] Digits

Hello Graham,

i would like to get the value of available numbers after the comma.
Some stocks are quoted with two digits like 127.46 while currencies are quoted with 2 or 4 digits like eurusd 1.2721
i would use it for some values in the title line.

regards

Thomas




Graham wrote:
Thomas, what do you mean by price digits?

On 10/29/05, Thomas Z <tzg@xxxxxxxxxxxxxxxx> wrote:
  
Hello,

is there any way to get the number of price digits of the displayed chart ?

--
Regards

Thomas
www.tradingbasis.com




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html


Yahoo! Groups Links







    


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



  

-- 
Regards

Thomas
www.tradingbasis.com
    

-- 
Regards

Thomas
www.tradingbasis.com


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS