My indicator draws some text objects on the price panel. The problem is that I'd like to delete some of them without also removing the indicator that created them. Is it possible to dissociate a drawing object from the indicator or to assign it to a different owner?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ownership of drawing objects
Collapse
X
-
Ownership of drawing objects
Hello!
My indicator draws some text objects on the price panel. The problem is that I'd like to delete some of them without also removing the indicator that created them. Is it possible to dissociate a drawing object from the indicator or to assign it to a different owner?Tags: None
-
Thank you, that's interesting regarding a different approach to my problem. However, that's not exactly what I was looking for. I didn't explain myself clearly. What I want to do is to delete manually some text drawn algorithmically without also deleting the indicator from the chart
Comment
-
Hello Gianpiero,
If a script draws an object that script owns the object through its lifecycle. To remove the object you would need to program into that indicator a way for it to delete it. That would be based on conditions or in a more advanced case you could add a custom button to the chart which calls RemoveDrawObject in the indiators code.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
597 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
555 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment