• 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

  • Lost Trader
    replied
    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!

    Leave a comment:


  • NinjaTrader_Dierk
    replied
    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:


  • Lost Trader
    started a topic test for a drawn object?

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by lunardiplomacy, Yesterday, 02:16 PM
1 response
9 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by Mykro, Yesterday, 02:05 PM
1 response
4 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by J_o_s, Today, 12:10 AM
1 response
4 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by futurestrader7, Yesterday, 11:31 AM
1 response
9 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by MarkFrench1991, Yesterday, 03:47 AM
1 response
15 views
0 likes
Last Post NinjaTrader_ChelseaB  
Working...
X