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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      57 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      36 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      20 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      9 views
      0 likes
      Last Post cre8able  
      Working...
      X