Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
[DrawingTool] How to determine method of reaching State.Terminated?
Collapse
X
-
I have not yet tried it on a drawingtool, but it had worked successfully in the past for me (on an indicator script)
-
Hello gubbar924,
There would be no supported method however I will submit a feature request.
I'm curious to know if you were able to get edges suggestion to work.
Please let us know if you need further assistance.
Leave a comment:
-
@-=Edge=-
Thank you, I had forgotten about using a variable for state checking, I'll give that a go.
@NinjaTrader_AlanP
I dont need to do anything specific with it, I was just wondering if there was a way to run some code only if/when the script/item is being removed from the chart.
thanks guys!
Leave a comment:
-
Originally posted by gubbar924 View PostDoes anybody know how to tell the difference in how a drawing reaches State.Terminated?
1.) Declare and set private bool in your drawing tool to false..
private bool b_ConfigSet = false;
2.) In State.Configure set bool true.. (this only runs once)
b_ConfigSet = true;
3.) In State.Terminated use bool as Condition.. (only print if configured)
if(b_ConfigSet) Print("Something");
Leave a comment:
-
Hello gubbar924,
I’m not seeing a simple way to check this.
What are you trying to do in State.Terminated that you need to know the difference?
I look forward to your reply.
Leave a comment:
-
[DrawingTool] How to determine method of reaching State.Terminated?
hello,
Does anybody know how to tell the difference in how a drawing reaches State.Terminated?
I'm trying to check if my custom drawingtool reaches Terminated state when a drawing is deleted/removed, as opposed to reaching State.Terminated via reloading ninjascript.
Thanks!
TGTags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
93 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
138 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
123 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
73 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Leave a comment: