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

NT8.0.9.0 error drawing object tag names

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

    NT8.0.9.0 error drawing object tag names

    Hello,

    Since upgrading to NT8.0.9.0, I have been getting the error notice: Active drawing object tag names must be unique per drawing tool type, the tag '1104' is already in use by another active drawing tool of a different type and will be ignored. It is mainly occurring on 5 Min charts due to the D3SpotterV3 indicator which I adjusted some time ago to change the Draw.Dot to Draw.Text and use wingdings instead to draw the dots so that I could reduce their size. When I remove the indicator from the 5 Min chart, most of the error notices disappear. I have used different tag names so cannot see why this is happening. I have uploaded the indicator. Any help would be much appreciated.

    Thank you.
    Attached Files

    #2
    Hello GeorgeW,

    Thank you for writing in.

    I am not getting the error you are describing. Does the error take some time to appear? Could you please post your chart template here?

    Also, could you also please send me your log and trace files to*platformsupport[at]ninjatrader[dot]com.*
    You can do this by going to the Control Center-> Help-> Mail to Platform Support.
    Please reference the following in the email body: ATTN CHRISL <paste the link to this forum post here>

    I look forward to assisting further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello GeorgeW,

      Thanks for the reply.

      Looking at your logs, I see that the duplicate tag is a single bar value, not a concatenation. I am thinking the error is coming from all lines similar to line 518 of your script, where only the current bar is being used as a tag. Please change this to concatenate a description to the Current bar. Like so:

      Changing line 518 from this:

      Code:
      Draw.TriangleUp(this, CurrentBar.ToString(), true, 0, Low[0] - (TickSize * MarkerDistanceFactor), Brushes.Green);
      to this:

      Code:
      Draw.TriangleUp(this, "MyTriangle"+CurrentBar.ToString(), true, 0, Low[0] - (TickSize * MarkerDistanceFactor), Brushes.Green);
      If we may be of any further assistance, please let us know.
      Chris L.NinjaTrader Customer Service

      Comment


        #4
        That's fixed it.

        Thanks, ChrisL.

        Comment


          #5
          Hello ChrisL,

          I am trying to add a personal indicator with a plot to the D3SpotterV3 indicator to check for divergences on it, but am not having much luck at the moment. From what I can see, I need to add the indicator, which I am fine with, and the "Method" for the plot, which is where I think I am having the problem. This is the AddPlot line in my indicator:
          Code:
          AddPlot(new Stroke(Brushes.DarkOrange,2), PlotStyle.Line, "AverageKFX"); //Values[14]
          What would I use as the "Method" for the plot when adding it to the D3SpotterV3 indicator?

          Thank you.

          Comment


            #6
            Hello GeorgeW,

            Thanks for the follow up.

            That AddPlot looks good to me.

            I see that you have a comment next to that line saying that it will be Values[14]. The Values[][] array had two dimensions, so to populate the target plot, you must set Values[14][0] to the value of the indicator.

            Your code would look something like this:

            OnBarUpdate(){

            Values[14][0] = MyIndicator(<parameters>)

            }

            The constructor parameters sill show up in intellisense when you start typing the constructor in the NinjaScript editor.

            Please let us know if we may be of any further assistance.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by benmarkal, Yesterday, 12:52 PM
            3 responses
            22 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by helpwanted, Today, 03:06 AM
            1 response
            16 views
            0 likes
            Last Post sarafuenonly123  
            Started by Brevo, Today, 01:45 AM
            0 responses
            11 views
            0 likes
            Last Post Brevo
            by Brevo
             
            Started by aussugardefender, Today, 01:07 AM
            0 responses
            6 views
            0 likes
            Last Post aussugardefender  
            Started by pvincent, 06-23-2022, 12:53 PM
            14 responses
            244 views
            0 likes
            Last Post Nyman
            by Nyman
             
            Working...
            X