Code to Remove EA from one Chart


I have one EA that I would like put one routine when Equity < SomeDoubleValue not just desabilit the EA, but remove from the chart, like Pressing "F7"->Expert->Remove, but inside my EA code.
Tks guys,
Marcelo
Forex Trader:

I have one EA that I would like put one routine when Equity < SomeDoubleValue not just desabilit the EA, but remove from the chart, like Pressing "F7"->Expert->Remove, but inside my EA code.
Tks guys,
Marcelo

ExpertRemove();

Call above function Remove() in special function OnDeInit(). :)