How can I tell if the indicator has been removed?

 

I have noticed that each time the user changes time frames say from H1 to H4 it activates the deinit() function, like the indicator had been removed and reloaded. Is there a way to tell if the user has actually removed the indicator and not just changed time frames, so that objects can be remove?


Thanks, Steve

 
See function UninitializeReason( ).