Obviously bug in indicators OnInit() return value effect - page 2

 
Dominik Egert #:

As responded by MQ on russian forum, it is a feature, not a bug. Please see post here:

https://www.mql5.com/ru/forum/1111/page3465#comment_51950020


But here is a method for making an indicator permanent, unremovable by any means, except for restarting the entire terminal.


I am not sure, if this is meant to be that way, I guess not.

Supposedly, it is also not desired to retrieve a handle on the same instance of the indicator. - Questionable.

For now, this is the only generic way to gain access to custom defined buffers within the same indicator. - That actually works.

So in conclusion, it is possible to receive a handle to your own instance of indicator, retrieve its buffer values in a generic way, but you cannot remove the indicator anymore, after retrieving the handle.

https://www.mql5.com/ru/forum/1111/page3472#comment_51964852