- ago
I want to see a text tooltip for multiple candles in a row on the chart. Text hints are quite voluminous. I'm looking for a way to make a tooltip when hovering over a candle or other chart object attached to a candle, or the ability to draw a link so that when I click on it, I see the full text in the browser window.

Because if I draw text using the "DrawText" function, then the text overlaps and becomes unreadable.

Can you please tell me what to do?
5
356
11 Replies

Reply

Bookmark

Sort
- ago
#1
Are you looking to accomplish this programmatically or "Draw a Text Note" might suffice?
What about DrawBarAnnotation?
0
Cone8
 ( 28.45% )
- ago
#2
It's not possible yet.

Instead of DrawText() let's make a function called DrawHint().
DrawHint would be similar but would only display an (H) icon. The underlying text would be displayed only when you hover over (H). I like this!

Probably the text box could be Markdown sensitive, so you could include a hyperlink.

Marked as Feature Request. Add your vote in Post #1.

1
- ago
#3
QUOTE:
DrawHint would be similar but would only display an (H) icon.

Let's have it display a unicode dingbat like a light bulb (like Visual Studio) or a heart. I like the idea.
0
Glitch8
 ( 11.64% )
- ago
#4
It makes sense to allow the caller to specify the text displayed, no?
1
Cone8
 ( 28.45% )
- ago
#5
Definitely.
DrawHint could have an optional character for the symbol used, as suggested above, , but you have to specify the text to display for the tooltip-type hint.
0
Glitch8
 ( 11.64% )
- ago
#6
I meant it should have two parameters. One for the text that appears on the chart, and another for the larger text that appears once hovered over. We could also have a parameter that controls the color.
1
- ago
#7
QUOTE:
It makes sense to allow the caller to specify the text displayed, no?

Yes as long as it's a dingbat. Simply give an example of how to display an interesting unicode dingbat. We only need one character because we want to keep the tooltip icon as small as possible on the Chart.

I suppose one could overload the DrawHint(...) method so it behaves differently if a character is passed ('\u2665') verses a string ("\u2665"). Just give an example of using both so the difference is illustrated.
0
Glitch8
 ( 11.64% )
- ago
#8
A dingbat is just a character. You can copy and paste it inside quotes just like this "✭".
0
- ago
#9
QUOTE:

Probably the text box could be Markdown sensitive, so you could include a hyperlink.


Cone, hello!

I was unable to display the link using "Markdown".

I followed the guide from the link: https://www.markdownguide.org/basic-syntax/#links

Please help me paste the link into a text message.
0
- ago
#10
This is a feature request, you cannot do it now.
1
- ago
#11
I'm trying to replace my DrawText calls with DrawHint calls instead so the message text is expressed as a ToolTip avoiding overstrikes (see screenshot below). The problem is I don't see how to specify a paneTag parameter on DrawHint like I can with DrawText. Can you add an optional paneTag parameter to DrawHint?

0

Reply

Bookmark

Sort