Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access the properties in the "Drawing Objects" window?

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

    Access the properties in the "Drawing Objects" window?

    Hi, is there a way to access the properties in the "Drawing Objects" window? I would like to know if, for example, the "Anchor Y" price has changed, but not only when the window was closed, but already when "Apply" was clicked.

    Click image for larger version

Name:	Screenshot_2.jpg
Views:	184
Size:	32.5 KB
ID:	1210172

    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    You need to store a instance of the object to a variable to do that. There is a sample of using an object as a class level variable in the following link: https://ninjatrader.com/support/help...rawingtool.htm

    There is also a sample of using the DrawObjects collection in the following link, its the same basic concept. To get an objects properties you need to know what type of object it is so you can make a correct typed variable from the generic object. Once you have a typed variable like HorizontalLine you can access and public properties the HorizontalLine type has.

    https://ninjatrader.com/support/help...ub=drawobjects

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    580 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    335 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X