Is there a way to delete all the objects of a single/specific chart, without deleting all the objects, of all the charts, that you have open?
Yellowbeard1881: Is there a way to delete all the objects of a single/specific chart, without deleting all the objects, of all the charts, that you have open?
-
Perhaps you should read the manual. What is the first parameter of ObjectsDeleteAll - Object Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5?
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up. -
You should never delete all objects, only what your code creates.
ObjectsDeleteAll is only working on the specific chart
Yellowbeard1881 #:
If you have several charts open, on your platform, and you apply ObjectsDeleteAll to one of them, it deletes all objects from all charts.
If you have several charts open, on your platform, and you apply ObjectsDeleteAll to one of them, it deletes all objects from all charts.
Please read the documentation again carefully ... "Removes all objects from the specified chart, specified chart subwindow, of the specified type."

Documentation on MQL5: Object Functions / ObjectsDeleteAll
- www.mql5.com
ObjectsDeleteAll - Object Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

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