Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is behind this warning (new in 8.0.7.0)?

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

    What is behind this warning (new in 8.0.7.0)?

    With the release of 8.0.7.0, I started getting a warning to my output window that I have never received before. It says:
    Active drawing object tag names must be unique per drawing tool type, the tag '8239signal' is already in use by another active drawing tool of a different type and will be ignored.
    My indicator draws an up or down arrow on a signal. This indicator processes data every tick so it is possible that within one bar, there may be an up signal, a down signal and then no signal, in any order.

    Here is the the logic I have used (going back to NT 7):
    Code:
    if (longSignal)
    {
    	Draw.ArrowUp(this, signalBar.ToString()+SIGNAL, true, barsAgo, Low[barsAgo], arrowUpColor);
    }
    else if (shortSignal)
    {
    	Draw.ArrowDown(this, signalBar.ToString()+SIGNAL, true, barsAgo, High[barsAgo], arrowDownColor);
    }
    else
    {
    	RemoveDrawObject(signalBar.ToString()+SIGNAL);
    }
    Is the Draw.ArrowUp and the Draw.ArrowDown one tool or two?
    This code used to work. Now it behaves as if NT 8 has split the Draw.Arrow[Up|Dow] into two tools.

    What has changed?
    Any other observations that may have caused this new warning?

    Thanks,
    Gary

    #2
    Sounds like for whatever reason it does not like the fact you can have the same tag name for an up and down arrow I would suggest the simple thing would be to test this out by prefacing the Up and Down arrow tags with "UP"+SignalBar.ToString() + Signal or "DN" + SignalBar.ToString(). One other observation, if this is running on every tick "SignalBar" may not be unique causing draw objects to be moved and instead of new draw object created. But then again I am only going off what is implied by the name not what you are actually doing in your code.

    Comment


      #3
      Hello GaryAlbers,

      A tag name when res-used will cause a drawn object to be removed and the re-added using the new position (or other parameters). The tag name cannot used for two different drawing tool types. Please use unique names for each drawing item you want to appear on the chart and move separately. Re-use the name when you would like to move the object or change aspects of the object.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        This is an old thread -- but is this also an issue if the tag name is re-used AFTER the other drawing object was removed?

        e.g. I call .RemoveDrawObject(Line.Tag);

        and then try to draw another object type using the same Tag name, even though the prior object is removed, it seems I cannot reuse the name?

        Comment


          #5
          Hello b.j.d,

          If the object is removed, the tag name is unused and using that tag name would draw a new object.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          639 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          366 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          107 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          569 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          572 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X