Is there a Way to Delete/Remove an Indicator e.g. by deleting the handle

 

Hi,

Is there a way to delete an Indicator that was started in OnInit() by handle = iCustom(..) and then after some 'live-time' in OnCalculate() or OnTick() it is not needed any more and could be deleted to remove it from RAM and further calculation?

How do I do that?

For files I have FileClose() with which it is removed from RAM.

 
Carl Schreiber:

Hi,

Is there a way to delete an Indicator that was started in OnInit() by handle = iCustom(..) and then after some 'live-time' in OnCalculate() or OnTick() it is not needed any more and could be deleted to remove it from RAM and further calculation?

How do I do that?

For files I have FileClose() with which it is removed from RAM.

https://www.mql5.com/en/docs/series/indicatorrelease
 
Amir Yacoby:
https://www.mql5.com/en/docs/series/indicatorrelease

Ah - thanks!