Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 wzgy0920, 04-20-2024, 06:09 PM
        2 responses
        27 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 02-22-2024, 01:11 AM
        5 responses
        32 views
        0 likes
        Last Post wzgy0920  
        Started by wzgy0920, 04-23-2024, 09:53 PM
        2 responses
        49 views
        0 likes
        Last Post wzgy0920  
        Started by Kensonprib, 04-28-2021, 10:11 AM
        5 responses
        193 views
        0 likes
        Last Post Hasadafa  
        Started by GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,235 views
        0 likes
        Last Post xiinteractive  
        Working...
        X