Cleaning All Charts at once

 

hi, i'm trying to clean all charts at once in MT5, i have this following script, it works on one chart only, and i want to make it work on all chart simultaenously, kindly help.

//+------------------------------------------------------------------+
void OnStart()
  {
//---
   Comment("");
   ObjectsDeleteAll(0,-1,-1);
   ChartRedraw();
  }
//+------------------------------------------------------------------+
 

Loop over and specify

ChartID();
 
BoltX :

hi, i'm trying to clean all charts at once in MT5, i have this following script, it works on one chart only, and i want to make it work on all chart simultaenously, kindly help.

Code example: Cleaning All Charts:

 
Vladimir Karputov:

Code example: Cleaning All Charts:

thank you, it's beautiful. :) i never thought of clearing comment, it works great, Good idea :)