Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Formatting Native Drawing Tols

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

    Formatting Native Drawing Tols

    Hi,

    Is there any documentation on coding custom drawing tools? I have a native tool which draws an object. I have been able to attach a price to it. What I would like to do is:

    1. Add a name tag with a colored background box around it. Currently the price sits below the object. I would also like to add a name tag above the object but I can't find any documentation on the positioning. Is it part of TextLayout?

    2. Have an option to place a colored box background around either the price, and/or the name tag. The idea is similar to how the colors are set for Region Highlight Y, with outline color spec and a Color Area spec.

    Any suggestions would be welcome and appreciated. Thank you.

    #2
    Hello Zeos6,

    Thank you for your post.

    There is no tutorial on creating the Drawing Tools but the currently existing Drawing Tools in the NinjaScript Editor can server as guides to building what you need.

    1. That is correct. You would use TextLayout and RenderTarget.DrawTextLayout: https://ninjatrader.com/support/help...textlayout.htm
    2. You can use RectangleF and RenterTarget.FillRectangle for this purpose: https://ninjatrader.com/support/help...lrectangle.htm

    Please let me know if you have any questions.

    Comment


      #3
      Thanks Patrick. I will check it out.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X