Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Remove Draw Object troubles

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

    #16
    Hello trader3419,

    Stick to the one thread with Jesse if you are already working with him on this matter. When we have additional information we will follow up with you on that thread.

    Comment


      #17
      Ok Thanks. I will

      Comment


        #18
        I'm having same trouble with RemoveDrawObjects on 8.0.1.0

        I have a subpanel indicator that draws rays on the price panel, at certain times...every couple of bars (varying number).

        I attempt to delete the prior ray and then draw the new ray.

        This code worked flawlessly in NT7

        I've ported it to NT8, and compiled it and, when it runs, there are varying numbers of rays still on the chart. Undeleted.

        Sometimes there's hundreds of rays, sometimes there's just 3 or 4.

        There should only be 1 ray, the current ray.
        I'm running NT8.0.1.0 64-bit

        Comment


          #19
          Hello sbgtrading,

          Thank you for your post.

          Do you have code you could provide for this use case?
          How are you removing the object from the chart in code?
          Are the Rays present in the collection or the chart visually?

          Comment


            #20
            trader3419

            Jessica explained to me the Global objects need a "@" before them. However I still had issues
            with them.

            Comment


              #21
              I'm having the exact same problem in 8.0.21.1 64-bit. Removing global drawing objects does not work reliably, while for local ones it works.

              Additionally, some globally drawn objects aren't even created. I've only tested this with normal lines, which is what I'm using.

              Comment


                #22
                Hello Matheusfx,

                I've tested but I am seeing that global drawing objects are being removed.

                Below is a link to a video of the test.


                Attached is the test script.
                Attached Files
                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
                601 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                347 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                559 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                558 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X