Deinit() runs when the chart symbol is changed, time period is changed, or the EA removed from the chart. Is there a way to determine what caused Deinit to run? I have objects on my chart I want removed when the EA is removed but I want them to remain if the symbol or time period is changed.
- Simple Indicator, Simple BUG
- How to - EA end itself
- Cannot Delete Objects in Deinit()
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register