Download MetaTrader 5

Delete

Removes an attached graphical object from the chart.

bool  Delete()

Return Value

true - success, false - cannot remove the object.

Example:

//--- example for CChartObject::Delete 
#include <ChartObjects\ChartObject.mqh> 
//--- 
void OnStart() 
  { 
   CChartObject object; 
   //--- detach chart object  
   if(!object.Delete()) 
     { 
      printf("Object delete error"); 
      return
     } 
  } 


Updated: 2016.03.23