Is there a command to remove the Indicator from the condition?

 

Is there a command to remove the Indicator from the condition?

similar 

ExpertRemove()
 

It does not work the same way as ExpertRemove but it might work depending on how you implement it.

ChartIndicatorDelete

Removes an indicator with a specified name from the specified chart window

Documentation on MQL5: Chart Operations / ChartIndicatorDelete
Documentation on MQL5: Chart Operations / ChartIndicatorDelete
  • www.mql5.com
ChartIndicatorDelete - Chart Operations - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
فرناندو كارييرو # : It does not work in the same way as ExpertRemove depending on how the command is executed.

Chart indicator delete

Removes an indicator with a specific name from the chart window

Thanks

 
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
{
   IndicatorShortName("indicator01");
   //....
}

//- - - condition

ChartIndicatorDelete(0,0,"indicator01");