Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I notice that function UninitializeReason() define, learn from help:
I want to use draw object to set price and time information for design some chart interactive indicator, what I need is:
1. keep the draw object position when chart close, include program exit and reopen;
2. If I delete the indicator, I want capture the indicator remove event, so I can delete the relate draw object in deinit function.
but it will return the same REASON_REMOVE in both situation.
It seems that REASON_CHARTCLOSE event is redundantly with REASON_REMOVE event in some way. (maybe, it like the windows OnClose event ?)
Could you redefine the event, statement a clear indicator DELETE event?