Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
test for a drawn object?
Collapse
X
-
One alternate suggestion that might be easier to implement:
simply put the boolean return code on the RemoveDrawObject() method.
True if successful, false if not there. That might be simpler for your coders to implement.
Thanks!
-
Thanks for your suggestion. We'll add it to the list of future considerations.
Note: You always could maintain a collection of tags managed by your code.
Leave a comment:
-
test for a drawn object?
Is there a way to test for the existence of a specific drawn object on the chart, given the tag name is known? If not, please make one?
Similar to RemoveDrawnObject("unique_tagname") only a test for existence that simply returns a boolean flag...
There are times I want to modify a previous object, but not draw one if it doesn't exist. The original object creation logic is far too complex to repeat and would unnecessarily slow down the code, when all I want to know is if there's a drawn object of that name on the chart already.
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Belfortbucks, Today, 09:29 PM
|
0 responses
6 views
0 likes
|
Last Post
by Belfortbucks
Today, 09:29 PM
|
||
Started by zstheorist, Today, 07:52 PM
|
0 responses
7 views
0 likes
|
Last Post
by zstheorist
Today, 07:52 PM
|
||
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
151 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
6 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
Leave a comment: