Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding a tooltip to a Draw.*

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Adding a tooltip to a Draw.*

    Hello, I've searched in the forum but can't find an existing solution. Is there a way to, on hover or on click of a Draw.Dot for example, to have custom structured text? My goal here is that I'm drawing a dot on bars that meet x % of the condition I'm looking for, and I want to put a table of conditions that was met into a popup, for visual debuggability.

    #2
    Hello transparenttrader,

    Thank you for your post.

    There's not a simple way to add a tool tip to a drawing object unfortunately. It could be possible to program that functionality into a new drawing tool. For example, you could have it monitor whether the mouse is over certain coordinates then have some code in OnRender that draws what would be the tool tip.

    Here's an older post I found (please excuse the poster's terrible choice in font color, I just selected all the text on the page to make it readable) that shows one user's workaround to display a tool tip:



    It's worth noting that the code he supplies is from a significantly older version of NinjaTrader and may need updating to work with the current version - there's been some changes to rendering in newer versions, but this may give you a jumping off point.

    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Excellent, thank you for the reference!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      30 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      16 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X