Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how do i create simple text boxes at x,y coordinates

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

    how do i create simple text boxes at x,y coordinates

    I'd like to create a simple dashboard using a box with text in it. I will change the text and box color depending on what different indicator status is. I tried to figure out Draw.Text and Draw.TextFixed but couldn't figure out how to get them to do what I need.

    I want to place a filled text box at certain x,y coordinates on the price chart like in the attached image

    can someone point me in the right direction?

    #2
    Hello Cre8able,

    Thank you for your note.

    You'd need to use custom rendering to create a text box at specific X, Y coordinates.

    The following example script from our publicly available User App Share gives a good example of creating a text box with changing information:

    This indicator provides a customizable text box which displays a position’s UnRealized PnL, Realized PnL of a selected account, and the overall cash value of the account.


    This requires the use of SharpDX rendering. Here's a link to our help guide that goes over using SharpDX to custom render objects and text on your chart:



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

    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


      #3
      got it

      thank you

      Comment

      Latest Posts

      Collapse

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