MT4 doesn't delete anything on its own. Your running code is doing it.
Do you really expect an answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the file.
We can't see your broken code.
Fix your broken code.
No objects on chart can delete automatically, you have to do it manually or with ObjectDelete function. Your Labels deleted when you remove EA that means your ObjectDelete function is inside OnDeinit() event function. Just remove or comment out ObjectDelete function, it'll work.
![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
I had mt4 ea coded for me and asked programmer to have ea write some info to the chart.
That works and he used #include <Controls/Label.mqh>.
But every time the ea is dismounted mt4 deletes the info from the chart but i want the info to not be deleted.
I commented out void deleteDisplay(const int reason) {....} in the code but it still deletes the info.
Does anyone have any idea how to stop the deletion of the info from the chart when ea is stopped?
Thanks for any advice.