Thank you very much !
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
How to know how a chart object has been removed from user or by reloading script.
Collapse
X
-
How to know how a chart object has been removed from user or by reloading script.
Is there a way to know from code ( from the OnTerminated method ) if a drawing object has been removed manually ( right click --> Remove ) or if it has been removed following reloading the script ( F5 or Reload NinjaScript ) ?
Thank you very much !Tags: None
-
Hello blar58,
Thank you for your inquiry.
That's going to be a bit tricky.
An example of tracking when an object is added to or removed from a chart may be found here:
However, seeing if it has been removed from a reload would mean you would have to track what was present before the Reload NS operation and then afterwards. You could use static variables to track what was present before and after pressing F5, but we wouldn't have an example of that functionality.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by RaddiFX, Today, 10:15 AM
|
2 responses
14 views
0 likes
|
Last Post
by RaddiFX
Today, 09:33 PM
|
||
Started by patrickmlee007, Today, 09:33 AM
|
2 responses
17 views
0 likes
|
Last Post Today, 08:56 PM | ||
Started by magnatauren, 08-15-2020, 02:12 PM
|
5 responses
206 views
0 likes
|
Last Post
by RaddiFX
Today, 08:46 PM
|
||
Started by rene69851, 05-02-2024, 03:25 PM
|
1 response
22 views
0 likes
|
Last Post
by rene69851
Today, 08:20 PM
|
||
Started by ETFVoyageur, Yesterday, 07:05 PM
|
5 responses
45 views
0 likes
|
Last Post
by ETFVoyageur
Today, 08:08 PM
|
Comment