MT5 OnDeinit bug

 

it appears that the reason parameter is not always correct in metatrader 5 for indicators.


When changing the timeframe or symbol the value passed to OnDeinit = REASON_REMOVE. Shouldn't this be REASON_CHARTCHANGE?


If I am incorrect how do you determine if the indicator is just being reloaded due to change of symbol or timeframe. I am working on a dll and this is something I really need to be able to determine.

Reason: