Thanks!
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!
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
NinjaTrader
How to tell whether a draw object exists?
Collapse
X
-
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!Tags: None
-
Originally posted by cassb View PostLet'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
-
Originally posted by NinjaTrader_Josh View Postcassb,
Unfortunately not. Not in 6.5. In 7 you can programmatically access draw objects.
Comment
-
Originally posted by NinjaTrader_Josh View Postcassb,
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.
Comment
-
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
-
Originally posted by NinjaTrader_Brett View PostHello,
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.
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.
DanielLast edited by neoikon; 04-02-2012, 12:43 PM.
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 Today, 12:51 AM | ||
Started by Vietanhnguyen2hotmailcom, 05-03-2024, 10:29 AM
|
4 responses
27 views
0 likes
|
Last Post Yesterday, 09:06 PM | ||
Started by PhillT, 04-19-2024, 02:16 PM
|
4 responses
36 views
0 likes
|
Last Post
by PhillT
Yesterday, 04:24 PM
|
||
Started by ageeholdings, 05-01-2024, 05:22 AM
|
5 responses
38 views
0 likes
|
Last Post
by ageeholdings
Yesterday, 03:21 PM
|
||
Started by reynoldsn, Yesterday, 02:34 PM
|
0 responses
16 views
0 likes
|
Last Post
by reynoldsn
Yesterday, 02:34 PM
|
Comment