PureBytes Links
Trading Reference Links
|
myMACD = MACD() ;
Plot (myMACD, "" , colorBlue, styleLine);
_N(Title = EncodeColor( colorDarkRed ) +
Name()
+ EncodeColor( colorBlack ) + " - "
+ EncodeColor( colorGrey50 ) + Interval(2
) + " "
+ EncodeColor( colorDarkGrey ) + Date ( ) + " :"
+ EncodeColor( colorDarkBlue ) + " MACD "
+ EncodeColor( colorBlack ) + " = "
+ EncodeColor( colorBlue ) + WriteVal ( myMACD,
1.3 ) ) ; // 1.3 for 3 decimal,
Wilson
On 6/7/05, Steve <avalon-ardy@xxxxxxxxxxxxxxx> wrote:
Hi, thanks for that. Unfortunately it doesn't solve the problem. I've no trouble with the Price chart displaying 4 decimals, it's when I add an indicator, say for example a 10 day MA. It's current value is appended to the title string, but displays only 2 decimal places. In Forex that's as good as useless.
i.e 1.8307 shows as 1.83
cheers
----- Original Message -----
Sent: Tuesday, June 07, 2005 9:42 PM
Subject: [trading] Re: [amibroker] Re: How to set number of decimal digits displayed in Chart Title ?
Try this.. the chart title will displace the actual value of the stock from quote editor
_N (Title = EncodeColor( colorDarkRed ) + Name() +
EncodeColor( colorBlack ) + " - "
+ EncodeColor( colorGrey50 ) + Interval(2
) + " " + EncodeColor( colorDarkGrey ) +
Date ( )
+ StrFormat(" Open %g, High %g, Low %g, Close %g (%.1f%%) Vol " +
WriteVal( V, 1.0 )
+ "{{VALUES}}", O, H, L, C, SelectedValue(
ROC( C, 1 ))));
Plot (C, "", colorBlack, styleCandle );
Wilson
On 6/7/05, Steve <avalon-ardy@xxxxxxxxxxxxxxx
> wrote:
I should add that the standard Price chart title displays 4 but not so for custom indicators in the title.
---- Original Message ----- From: "Steve" < avalon-ardy@xxxxxxxxxxxxxxx
> To: <amibroker@xxxxxxxxxxxxxxx> Sent: Tuesday, June 07, 2005 6:51 PM Subject: [trading] [amibroker] How to set number of decimal digits displayed
in Chart Title ?
> Quick question. > How do I change the number of decimal digits displayed in the Chart Title? > It defaults to 2 whereas I need 4 ( Forex). Can't find anything in > preferences other than set deciaml places for RT quotes.
>
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
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
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
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
|