Removing and Indicator programmatically

 

Hi Anyone know if it is possible to remove an indicator programmatically from a chart.


https://www.mql5.com/en/forum/115967 shows how to attach and indicator, script or ea


void StartCustomIndicator(int hWnd, string IndicatorName, bool AutomaticallyAcceptDefaults = false)
{
   int MessageNumber = RegisterWindowMessageA("MetaTrader4_Internal_Message");
   PostMessageA(hWnd, MessageNumber, 15, IndicatorName);
   if (AutomaticallyAcceptDefaults) ClearConfigDialog();
}


So is there a similar method to remove.

 
pfx:

Hi Anyone know if it is possible to remove an indicator programmatically from a chart.


https://www.mql5.com/en/forum/115967 shows how to attach and indicator, script or ea



So is there a similar method to remove.


I would be also interested in this
 

a simple way to do it, load a template

here u have more complicated way (russian)

Reason: