Add text to popup
Author: smiranda
Creation Date: 4/27/2009 8:21 AM
profile picture

smiranda

#1
Hello,

I am using candle charts & was wondering if there was a way to add additional detail to the text popup for each candle. I can see the Open, High, Low & Close. I would like to also see for example the range.

Thanks,
Sameer
profile picture

Eugene

#2
It is not possible.
profile picture

smiranda

#3
Thanks Eugene. I guess I could use annotatebar. Is there a way to display a calculated value in annotatebar instead of text.

for example this is what I have
CODE:
Please log in to see this code.


but I get a error message cannot convert from double to string.

Regards,
Sameer
profile picture

Eugene

#4
Use the standard .NET way of converting:
ToString Method (Double)
profile picture

Eugene

#5
Another possibility is to call Bars.FormatValue (please see it in the QuickRef).
profile picture

smiranda

#6
Thanks Eugene,

The conversion worked, but I see a lot of digits after the decimal point. Is there a way to only see a certain length displayed.

Regards,
SAmeer
profile picture

Eugene

#7
This is what the Bars.FormatValue property is used for (see above).

Alternatively, think .NET and use the many custom number/DateTime formatting options available:

String Format for Double
String Formatting in C#
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).