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

How to tell whether a draw object exists?

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

    How to tell whether a draw object exists?

    Let's say I do a DrawRay("ABC"...) on my chart so that I have a draw object created. Is it possible to query to see if that object exists on the chart? I just want a true/false property or method to tell me if it exists or not.

    Thanks!
    cassb
    NinjaTrader Ecosystem Vendor - Logical Forex

    #2
    cassb,

    Unfortunately not. Not in 6.5. In 7 you can programmatically access draw objects.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by cassb View Post
      Let's say I do a DrawRay("ABC"...) on my chart so that I have a draw object created. Is it possible to query to see if that object exists on the chart? I just want a true/false property or method to tell me if it exists or not.

      Thanks!

      I looked for that too, but I ended up creating a tag (string or numeric) that I then check the value of to see if an object currently exists.

      I would really like to access a manually drawn object's properties (start/end value, bar numbers, date and time, etc) through program code - hoping that is possible in ver 7.

      (edit - looks like my wish comes true in 7!)

      Comment


        #4
        Originally posted by NinjaTrader_Josh View Post
        cassb,

        Unfortunately not. Not in 6.5. In 7 you can programmatically access draw objects.
        OK, in v7, how do you tell if a draw object exists, using the tag to look it up?
        cassb
        NinjaTrader Ecosystem Vendor - Logical Forex

        Comment


          #5
          cassb,

          Please make a new post in the V7 section of the forums and we can help you out there. That way other people looking for it can also find the answers. Thank you.
          Josh P.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Josh View Post
            cassb,

            Please make a new post in the V7 section of the forums and we can help you out there. That way other people looking for it can also find the answers. Thank you.
            If a new thread is started elsewhere, it would be nice to have a link there...

            Comment


              #7
              Hello,

              The post you revived is about 2 years old.

              There is a lot more up to date information available on our forum then this thread.

              Please be sure to search our forums or feel free to open a new ticket and one of our NinjaScript techs will help you find the information you need.

              In your case please see the below references and let me know if any questions:







              -Brett

              Comment


                #8
                Originally posted by NinjaTrader_Brett View Post
                Hello,

                The post you revived is about 2 years old.

                There is a lot more up to date information available on our forum then this thread.
                Thank you for the response. I got here from a search only to find the user to be directed to take the thread somewhere else. Which was a frustrating dead end on this topic without a resolution.

                The question I was looking to have answered is if there was an easy way to check if an object exists... in particular in v7. It seems that just looping through all objects is the only way.

                Thanks for the links! I will check them out.

                Daniel
                Last edited by neoikon; 04-02-2012, 12:43 PM.

                Comment


                  #9
                  Hello,

                  No problem, don't be afraid to ask questions we are here to help.

                  FYI. -> We don't make it standard practice anymore to have a user recreate a thread.

                  -Brett

                  Comment


                    #10
                    Hi -- sorry neoikon, that thread Josh asked me to create is here:

                    cassb
                    NinjaTrader Ecosystem Vendor - Logical Forex

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by mkouitra, 10-23-2021, 04:40 PM
                    17 responses
                    1,959 views
                    0 likes
                    Last Post NinjaTrader_Jason  
                    Started by Vietanhnguyen2hotmailcom, 05-03-2024, 10:29 AM
                    4 responses
                    27 views
                    0 likes
                    Last Post Vietanhnguyen2hotmailcom  
                    Started by PhillT, 04-19-2024, 02:16 PM
                    4 responses
                    36 views
                    0 likes
                    Last Post PhillT
                    by PhillT
                     
                    Started by ageeholdings, 05-01-2024, 05:22 AM
                    5 responses
                    38 views
                    0 likes
                    Last Post ageeholdings  
                    Started by reynoldsn, Yesterday, 02:34 PM
                    0 responses
                    16 views
                    0 likes
                    Last Post reynoldsn  
                    Working...
                    X