Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to display drawing object text in General/Tag property

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

    how to display drawing object text in General/Tag property

    With a custom add-on based on a DrawingTool.ChartShapeType (Rectangle, Ellipse, etc) or a DrawingTool.Region or other such area based drawing... is there a way to code the add-on to make it automatically display the text placed in the General/Tags property? I'm assuming this would require adding a DrawingTool.Text to the add-on in order to inherit all the properties and controls needed.

    I would very much like to see an example of how this would be done in a DrawingTool.Rectangle and a DrawingTool.Region.

    #2
    Hello xiinteractive,

    Thank you for your post.

    Could you please elaborate, unfortunately, I'm not clear on what text you are trying to display?

    the text placed in the General/Tags property?
    Are you trying to obtain the tag of a Region or Rectnagle Drawing Tool? Where exactly are you trying to display this information?

    Comment


      #3
      Click image for larger version

Name:	image.png
Views:	128
Size:	51.7 KB
ID:	1307182
      In this case, text that is placed in General/Tag property field... If I wanted to use that text to display on the chart somewhere in or near the display of the drawing object.
      Or is there a different field that is better to use if it were added?
      Either way, Im sure its doable. ​

      Comment


        #4
        Hello,

        There is an existing indicator on the User App Share you could take a look at called Labeled Lines Drawing Tool. You can take a look at this code for an idea of how to automatically display the tag on the chart with the drawing object:

        The tool demonstrates to automatically label the lines with price and can optionally add text to the line.

        https://ninjatraderecosystem.com/use...-drawing-tool/

        The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X