Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to know how a chart object has been removed from user or by reloading script.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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 !

    #2
    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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    561 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    325 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X