private void RemoveDrawing(string tag)
{[INDENT]IsDrawingMarksToDelete = RemoveDrawObject(tag);
if (IsDrawingMarksToDelete)
{[/INDENT][INDENT=2]//...[/INDENT][INDENT]}
else
{[/INDENT][INDENT=2]//...[/INDENT][INDENT]}[/INDENT]
}
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
RemoveDrawObject() => Drawing is marks for deleting
Collapse
X
-
RemoveDrawObject() => Drawing is marks for deleting
Hi, is there a way to determine if a drawing object was successfully deleted from the chart, or marked to be deleted in the next process?
Code:Tags: None
-
Hello sidlercom80,
There are no specific events for pending deletion or successful deletion. There is an unsupported way to observe the chart objects changed event, there is a sample here:
Alternatively you would likely have to use the DrawObjects["Tag"] syntax and check if the returned object was null or not.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
41 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
28 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
45 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
37 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment