When I want the indicator to remove only the objects it created on exit I do it like this:
I declare in itit()
Then the string name of every object the indicator creates is prefixed with ID for example:
So then to remove all the objects in deinit() search for all objects whose name begins with the ID and delete them.
I am sorry to bump this. But it really helpfull!
Please,How to tell the objectname does NOT contain "myCustomString" ?Regards.