Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 alifarahani, Today, 09:40 AM
    4 responses
    20 views
    0 likes
    Last Post alifarahani  
    Started by gentlebenthebear, Today, 01:30 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PhillT, Today, 02:16 PM
    2 responses
    7 views
    0 likes
    Last Post PhillT
    by PhillT
     
    Started by Kaledus, Today, 01:29 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frankthearm, Yesterday, 09:08 AM
    14 responses
    47 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Working...
    X