Как прописать удаление експерта?

 

Уважаемые метатрейдеры наведите на мысль о том как прописать удаление эксперта с графика после выполнения выше запрограмираванного.


//+------------------------------------------------------------------+
//|                                                           CL.mq4 |
//|                                              Kopanitskyy Evgeniy |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Kopanitskyy Evgeniy"
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
extern datetime bar_time=D'2017.07.04 12:00';
extern double Level=0;
extern int NormalizaDigi=5;//--- Digits after coma
//extern  double SHIFT=0;

string UPLINE="UPLINE";
string DOWNLINE="DOWNLINE";
string VERTICALLINE="VERTICALLINE";
//+---------------------------------------------------
//---------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
int SHIFT=iBarShift(Symbol(),0,bar_time);
double HIGHT=iHigh(Symbol(),0,SHIFT);
double LOW=iLow(Symbol(),0,SHIFT);

double normalLevel=Level*Point;

//Расчёт Уравня
double LEVELUP=NormalizeDouble((HIGHT+normalLevel),NormalizaDigi);
double LEVELDOWN=NormalizeDouble((LOW-normalLevel),NormalizaDigi);
double FIbaUP100=NormalizeDouble(((((LEVELUP-HIGHT)/23.6)*100)+HIGHT),NormalizaDigi);// 100% FibaUP
double BUY61_8=NormalizeDouble(((((LEVELUP-HIGHT)/23.6)*61.8)+HIGHT),NormalizaDigi);// BUY 61.8
double FIbaDOWN100=NormalizeDouble((LOW-(((LOW-LEVELDOWN)/23.6)*100)),NormalizaDigi);// 100% FibaUP
double SELL61_8=NormalizeDouble( (LOW-(((LOW-LEVELDOWN)/23.6)*61.8)),NormalizaDigi);// SELL 61.8
Alert(Symbol()," UP ",LEVELUP," DOWN ",LEVELDOWN," Фиба UP 0% ",HIGHT," Фиба UP 100% ",FIbaUP100," Фиба DOWN 0% ",LOW," Фиба DOWN 100% ",FIbaDOWN100);
Alert(Symbol()," BUY DATA - OPEN ",LEVELUP," BUY -  TP 61.8 ",BUY61_8," SELL DATA - OPEN ",LEVELDOWN," SELL -  TP 61.8 ",SELL61_8 );
//---
ObjectCreate(UPLINE,OBJ_HLINE,0,TimeCurrent(),LEVELUP);
ObjectCreate(VERTICALLINE,OBJ_VLINE,0,bar_time,0);      
ObjectCreate(DOWNLINE,OBJ_HLINE,0,TimeCurrent(),LEVELDOWN);   return(INIT_SUCCEEDED);
  
  
  
}
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
  

   
  }
//+------------------------------------------------------------------+

нужно удалить автоматически самого эксперта

 
 
скрипты сами удаляются
 
Dmitry Fedoseev:

ExpertRemove();


Спасибо