I made a short video: http://www.youtube.com/watch?v=Ui3kG8xoB_0
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!
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
NinjaTrader
Removed DrawingTool object is added to the chart again.
Collapse
X
-
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?
I made a short video: http://www.youtube.com/watch?v=Ui3kG8xoB_0Tags: None
-
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
-
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
-
Hi Kate, I am working with the latest version 8.0.26.1.
Have you tested this with my file (RemoveDrawing_Test.zip)?Attached FilesLast edited by sidlercom80; 07-14-2022, 01:57 PM.
Comment
-
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
-
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] }
Comment
-
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
- Likes 1
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
by sidlercom80
Today, 04:40 AM
|
||
Started by Irukandji, Yesterday, 02:53 AM
|
2 responses
17 views
0 likes
|
Last Post
by Irukandji
Today, 03:55 AM
|
||
Started by adeelshahzad, Today, 03:54 AM
|
0 responses
3 views
0 likes
|
Last Post
by adeelshahzad
Today, 03:54 AM
|
||
Started by CortexZenUSA, Today, 12:53 AM
|
0 responses
4 views
0 likes
|
Last Post
by CortexZenUSA
Today, 12:53 AM
|
||
Started by CortexZenUSA, Today, 12:46 AM
|
0 responses
2 views
0 likes
|
Last Post
by CortexZenUSA
Today, 12:46 AM
|
Comment