Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get collection of all drawn objects

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

    Get collection of all drawn objects

    Hello there

    does have NinjaScript any method which returns any Collection of all drawn objects?
    Let me explain:
    I will draw arrowline into chart and now I want that my custom indicator will "locate/recognize" on which bar the chart is showing.
    Because after that the indicator is doing some calculations with this bar.
    If I could get the instatnce of the drawn IArrowLine then I can use EndBarsAgo to get on which bar the arrow is showing.

    So how can I get instance of any object drawn in the chart with specific tag ??

    Thank you for your response.

    #2
    Yes zooinek, you can access the DrawObjects collection in NT7 via - http://www.ninjatrader.com/support/h...rawobjects.htm

    Comment


      #3
      And could you advice me, how to recognize any bar in chart?

      I mean this...
      I want to create indicator which is calculating OPEN-CLOSE just from ONE SPECIFIC BAR.
      So imagine I have open chart, now I click on any bar and indicator will write to outputWindow OPEN-CLOSE of this bar. After than I will click on any other bar, and indicator will write to outputWindow again OPEN-CLOSE of this other bar.

      So the thing is: I want that my code can "recognize" which historical or current bar is selected for the calculation.
      Is there some method for this?

      thank you

      Comment


        #4
        zooinek, there's unfortunately no supported method for this task available.

        You might check into this thread here dealing with the unsupported territory of methods - http://www.ninjatrader.com/support/f...ad.php?t=22435

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        607 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        353 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        560 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        561 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X