• 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 rblunsom, Today, 11:19 AM
        2 responses
        20 views
        0 likes
        Last Post guidoisot  
        Started by drewski1980, Today, 02:38 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by jfep1977, Today, 02:31 PM
        2 responses
        10 views
        0 likes
        Last Post jfep1977  
        Started by dmking, Today, 12:39 PM
        6 responses
        22 views
        0 likes
        Last Post dmking
        by dmking
         
        Started by marioresa, Today, 10:15 AM
        4 responses
        26 views
        0 likes
        Last Post marioresa  
        Working...
        X