In Metatrader terminal click on menu Charts, click on Object List (CTRL+B), click on List All, select all objects (CTRL+A), press Delete key
In Metatrader terminal click on menu Charts, click on Object List (CTRL+B), click on List All, select all objects (CTRL+A), press Delete key
Te original EA has to clean up the chart when it is leaving by removing the objects in the OnDeinit() function.
If it doesn't do that and leaves objects on the chart it is a bad coding job unless it was specifically designed to leave some markers.
To write a script to clean up some other EA's junk may be the wrong approach but if the buttons use a prefix you can write a small script that deletes all buttons with that prefix in one go.
And please don't double post.The template is readable, sort of xml file. Remove the EA from the template with a text editor so it doesn't get loaded when opening the chart.
Keep a backup just in case. Search for *.tpl and drag the file onto the editor. Post the content here if you're not sure what to do.
A quick fix is, change the EA name by appending XX or so, then save the file and restart the terminal, it shouldn't load with the template now.
- Don't double post! You already had this
thread open.
General rules and best pratices of the Forum. - General - MQL5 programming forum - Max:These are buttons not normal chart objects. I believe buttons are not objects, they were introduced to my4 fairly recently.Build 600 five½ (5½) years ago. 2014.02.03
They are objects and they appear in the list. The List all button should have worked.
Keep a backup just in case. Search for *.tpl and drag the file onto the editor. Post the content here if you're not sure what to do.
A quick fix is, change the EA name by appending XX or so, then save the file and restart the terminal, it shouldn't load with the template now.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How can I remove orphaned buttons from a removed EA without using the EA that originally created them?
Please is there a script or something, its driving me bananas. cheers