• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

test for a drawn object?

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

    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.


    #2
    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.
    DierkNinjaTrader Customer Service

    Comment


      #3
      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!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by MrSomebody, Today, 06:46 AM
      0 responses
      7 views
      0 likes
      Last Post MrSomebody  
      Started by catinabag, Today, 06:09 AM
      0 responses
      2 views
      0 likes
      Last Post catinabag  
      Started by Fiocco, Today, 05:59 AM
      0 responses
      7 views
      0 likes
      Last Post Fiocco
      by Fiocco
       
      Started by Perceivedshift, Today, 05:17 AM
      0 responses
      10 views
      0 likes
      Last Post Perceivedshift  
      Started by herbertmack, Today, 03:19 AM
      0 responses
      5 views
      0 likes
      Last Post herbertmack  
      Working...
      X