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 cmoran13, 04-16-2026, 01:02 PM
        0 responses
        42 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        25 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        162 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        98 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        157 views
        2 likes
        Last Post CaptainJack  
        Working...
        X