PureBytes Links
Trading Reference Links
|
Hi - you can use NumToStr() function for title formatting...
Title= " Pctval = " + EncodeColor(SelectedValue(dyn_col)) + NumToStr(
pctval, 1.2 ) + "%";
Steve
----- Original Message -----
From: "doedau" <don.edwards@xxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, August 05, 2009 2:38 AM
Subject: [amibroker] dynamic color and decimal places in chart title
> Hi all,
> I am trying to modify color and decimal places in a chart title.
> I found some clever person had already solved the color problem as below,
> but I cant find a way to set the nummber of decimal places.
>
> I have tried functions prec and strtonum but didnt work.
>
> Can anyone help please?
>
> Code snippet:
>
> "pctval" is my calculated percentage for which I want to change color and
> decimal places.
>
> dyn_col = IIf(pctval>0,colorGreen,colorRed);
>
> Title= " Pctval = " + EncodeColor(SelectedValue(dyn_col)) + pctval + "%";
>
> Regards, Don from Perth Australia.
>
>
>
> ------------------------------------
>
> **** 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/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>
>
------------------------------------
**** 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/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|