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 AaronKoRn, Today, 09:49 PM
        0 responses
        5 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Today, 08:42 PM
        0 responses
        8 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Today, 07:51 PM
        0 responses
        9 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,975 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        9 views
        0 likes
        Last Post rbeckmann05  
        Working...
        X