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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X