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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    169 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    326 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    252 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    353 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    180 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X