• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to get bounding box of chart objects

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

    How to get bounding box of chart objects

    What is the procedure for getting the bounding box of chart objects?

    #2
    Hello wbennettjr,

    Thank you for posting in our forum. Can you please clarify what you mean by getting the bounding box of chart objects?

    To select a chart object, such as an indicator or drawing object, left click it once, and then you will see several circles on the object indicating that it is selected. To get to the properties menu of a drawing object, double click the object.

    I look forward to your reply.
    MicahNinjaTrader Customer Service

    Comment


      #3
      Thanks Micah,

      Let's say I do "var dot = Draw.Dot(...)". I want to get a Rect instance that is the bounds for that dot. Essentially the smallest rectangle that encompasses the dot or triangle or ellipse or whatever other drawing/chart object.

      Thanks,
      Wil

      Comment


        #4
        Hello wbennettjr,

        Thank you for your response.

        There is no property to pull the bounds of a drawing tool. You could use custom rendering to draw your dots, triangles, etc. and then draw rectangles inside them.

        For information on custom rendering please visit the following link: http://ninjatrader.com/support/helpG...s/onrender.htm

        Please let me know if you have any questions.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by dariuszszyc, Today, 09:08 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_JoshG  
        Started by Sadat, Today, 09:09 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_JoshG  
        Started by login_dejavu, Today, 07:57 AM
        4 responses
        18 views
        0 likes
        Last Post login_dejavu  
        Started by Lender, Yesterday, 05:15 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by rcmcd, Today, 07:52 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Working...
        X