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 gravdigaz6, Today, 11:40 PM
                0 responses
                6 views
                0 likes
                Last Post gravdigaz6  
                Started by MarianApalaghiei, Today, 10:49 PM
                3 responses
                10 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by XXtrader, Today, 11:30 PM
                0 responses
                4 views
                0 likes
                Last Post XXtrader  
                Started by love2code2trade, Yesterday, 01:45 PM
                4 responses
                28 views
                0 likes
                Last Post love2code2trade  
                Started by funk10101, Today, 09:43 PM
                0 responses
                9 views
                0 likes
                Last Post funk10101  
                Working...
                X