ObjectsDeleteAll

 
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?
  1. 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.

  2. You should never delete all objects, only what your code creates.

 
ObjectsDeleteAll is only working on the specific chart
 
amando #:
ObjectsDeleteAll is only working on the specific chart
If you have several charts open, on your platform, and you apply  ObjectsDeleteAll  to one of them, it deletes all objects from all charts.
 
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.

Wrong.

 
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.

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
Documentation on MQL5: Object Functions / ObjectsDeleteAll
  • www.mql5.com
ObjectsDeleteAll - Object Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5