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

Removed DrawingTool object is added to the chart again.

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

    Removed DrawingTool object is added to the chart again.

    Hi, I have noticed the following behavior: A line is drawn via indicator, if the line is deleted while the properties window of the line is open, the line is drawn again after closing the window. Is this a bug, or how can I prevent this?

    Click image for larger version

Name:	Screenshot_2.jpg
Views:	171
Size:	65.8 KB
ID:	1208487

    I made a short video: http://www.youtube.com/watch?v=Ui3kG8xoB_0
    sidlercom80
    NinjaTrader Ecosystem Vendor - Sidi Trading

    #2
    Hello sidlercom80,

    Thank you for your note.

    I am not seeing the line reappear when the line is manually deleted, which is what I would expect since you're not nullifying the line variable. Have you removed the indicator from the chart and readded it after making changes and compiling?

    Thanks in advance, I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi Kate, yes I have restarted the indicator and compiled, the problem remains. I have also included a bool that does not allow the line to be redrawn or the variable to be referenced.

      Click image for larger version

Name:	Screenshot_1.jpg
Views:	144
Size:	85.4 KB
ID:	1208501
      sidlercom80
      NinjaTrader Ecosystem Vendor - Sidi Trading

      Comment


        #4
        Hello sidlercom80,

        Thank you for your reply.

        I'm still unable to replicate this on my end. Can you confirm what version of the platform you are currently using? You can find this under Help > About. The current version is 8.0.26.1.

        Thanks in advance; I look forward to assisting you further.
        Kate W.NinjaTrader Customer Service

        Comment


          #5
          Hi Kate, I am working with the latest version 8.0.26.1.

          Have you tested this with my file (RemoveDrawing_Test.zip)?
          Attached Files
          Last edited by sidlercom80; 07-14-2022, 01:57 PM.
          sidlercom80
          NinjaTrader Ecosystem Vendor - Sidi Trading

          Comment


            #6
            Hello sidlercom80,

            Thank you for your reply.

            Yes, I have tested with your script and I am not seeing the line remain after removing it from either just the chart with the delete key or via the drawing tools dialog. As I cannot replicate the behavior, there's not much further I can suggest here, unfortunately, as it appears to be working on my end.

            Please let us know if we may be of further assistance to you.
            Kate W.NinjaTrader Customer Service

            Comment


              #7
              Hi Kate, I may not have explained myself clearly enough. The line is automatically deleted by the script when the price is equal to the price of the line, not by hand! Manual removal by hand is no problem, it works.

              you would have seen this if you had looked at my code ;-)
              Code:
              if (Close[0] == line.StartAnchor.Price)
              {[INDENT]RemoveDrawObject(line.Tag);
              line = null;[/INDENT]
                }
              Click image for larger version

Name:	Screenshot_4.jpg
Views:	142
Size:	89.3 KB
ID:	1208531
              sidlercom80
              NinjaTrader Ecosystem Vendor - Sidi Trading

              Comment


                #8
                Hello sidlercom80,

                Thank you for your clarification.

                I was able to reproduce this and while I think it may be expected due to the object being cloned to populate the Drawing Tools window, I am sending this over to our QA team to confirm. We're currently tracking this under the number TS-2857. I'll let you know what I hear back from them.

                Thanks in advance; I look forward to assisting you further.
                Kate W.NinjaTrader Customer Service

                Comment


                  #9
                  NinjaTrader_Kate hi Kate, is there any news with "TS-2857"?
                  sidlercom80
                  NinjaTrader Ecosystem Vendor - Sidi Trading

                  Comment


                    #10
                    Hello sidlercom80,

                    Thank you for your reply.

                    It's currently on our QA team's plate, but we haven't gotten any updates from them thus far. We'll let you know when they get back to us.

                    Please let us know if we may be of further assistance to you.
                    Kate W.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by sidlercom80, 10-28-2023, 08:49 AM
                    172 responses
                    2,278 views
                    0 likes
                    Last Post sidlercom80  
                    Started by Irukandji, Yesterday, 02:53 AM
                    2 responses
                    17 views
                    0 likes
                    Last Post Irukandji  
                    Started by adeelshahzad, Today, 03:54 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post adeelshahzad  
                    Started by CortexZenUSA, Today, 12:53 AM
                    0 responses
                    4 views
                    0 likes
                    Last Post CortexZenUSA  
                    Started by CortexZenUSA, Today, 12:46 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post CortexZenUSA  
                    Working...
                    X