Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawObjects.Count returns zero

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

    DrawObjects.Count returns zero

    I have a 3rd party indicator on a chart that draws some Rays on it.

    I'm trying to iterate over these objects.

    When I call DrawObjects.Count I get 0

    One thing I noticed is that when I look at the drawing properties on the chart by double clikcing on them, the Attach To: is read only. When I draw from my own indicator, the attach to is not read only.

    1. Why is the Attach To read only?
    2. Could that be related to the reason the DrawObjects is seeing these drawings?

    #2
    Hello onnb1,

    Drawing objects that are drawn by an indicator are locked and cannot be manually edited.

    Would you like to submit a feature request to allow drawing objects drawn by scripts to be manually editable?

    Drawing objects that are drawn by one indicator, will not appear in the DrawObjects list of another indicator, as that other indicator will not be able to modify drawing objects from other scripts.

    Would you like to submit a feature request to allow indicators to modify drawing objects drawn by other indicators?
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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