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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        35 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        13 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        19 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X