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

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 geotrades1, Today, 10:02 AM
                1 response
                4 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by ender_wiggum, Today, 09:50 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by rajendrasubedi2023, Today, 09:50 AM
                1 response
                12 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Started by bmartz, Today, 09:30 AM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by geddyisodin, Today, 05:20 AM
                3 responses
                26 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Working...
                X