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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    63 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    92 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    48 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    106 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    63 views
    0 likes
    Last Post PaulMohn  
    Working...
    X