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

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
    BertrandNinjaTrader Customer Service

    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
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cls71, Today, 04:45 AM
        0 responses
        1 view
        0 likes
        Last Post cls71
        by cls71
         
        Started by mjairg, 07-20-2023, 11:57 PM
        3 responses
        213 views
        1 like
        Last Post PaulMohn  
        Started by TheWhiteDragon, 01-21-2019, 12:44 PM
        4 responses
        544 views
        0 likes
        Last Post PaulMohn  
        Started by GLFX005, Today, 03:23 AM
        0 responses
        3 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        12 views
        0 likes
        Last Post XXtrader  
        Working...
        X