Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tag already in use

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

    Tag already in use

    Hi guys. I have an odd message appearing and would appreciate some help. When I put a line on my chart and put a tag in the data field it is ok for awhile.

    The problem is if I delete the line and then try and add another line with the same tag name it comes up with the message (please see attached).

    I notice it may occur when I use the attach to "All charts" but not sure. I am referencing this in a program as follows:

    if ( draw.Tag.ToUpper().CompareTo("T1")== 0 ) {
    targetone = (IHorizontalLine) draw;

    The issue is the T1 tag cannot be reused. Any ideas on this one?

    ps. I noticed if I opened a new chart and loaded the indicators on again the tags were ok, so for some reason the tags hang around on the old chart even though the indicators/lines are removed and then added in again.

    Thanks
    DJ
    Attached Files
    Last edited by djkiwi; 01-11-2012, 01:04 PM.

    #2
    djwiki,

    I am happy to assist you.

    How are you removing this draw object? Could you possible post more of your code?

    I look forward to helping you resolve your issue.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Adam for the response, I will send the code to you at ninja trader support.

      Cheers
      DJ

      Comment


        #4
        DJ,

        Nice project you're working on here - I was able to reproduce, however only when I set the line as a global drawing object. Please note that there is no support for Global draw objects through NinjaScript at this time. You should not run into this when using a local drawing object on a single chart.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        168 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        323 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        247 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X