PureBytes Links
Trading Reference Links
|
Have you tried:
Plot (Prec(EMA(Price, 10),2), "10EMA" , ema10color , styleNoLine |
styleDots);
- adjust number of decimal points of floating point number Math
functions
SYNTAX prec(ARRAY, precision )
RETURNS ARRAY
FUNCTION Truncates ARRAY to precision decimal places.
EXAMPL
The formula "prec( 10.12981, 2 )" returns 10.120. The formula "prec(
10.12981, 4 )" returns 10.12980.
----- Original Message -----
From: "mmqp" <mmqp@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 07, 2003 12:54 PM
Subject: [amibroker] how to specify # of digits after decimal pt. in IB.
> Hello,
>
> Anyone knows how to do this in IB. I have a bunch of plot statement
> as followed but no field to specify the significant digit after
> decimal TIA.
>
>
> Plot (EMA(Price, 10), "10EMA" , ema10color , styleNoLine |
> styleDots);
> Plot (EMA(Price, 21), "21EMA" , ema20color , styleNoLine |
> styleDots);
> Plot (EMA(Price, 50), "50EMA" , ema50color , styleNoLine |
> styleDots);
> Plot (EMA(Price,100), "100EMA", ema100color, styleNoLine |
> styleDots);
> Plot (EMA(Price,200), "200EMA", ema200color, styleNoLine |
> styleDots);
>
>
>
>
> 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 http://docs.yahoo.com/info/terms/
>
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|