//+------------------------------------------------------------------+
//|                                                 Delete_Lines.mq4 |
//|                                  Copyright © 2009, Kenny Hubbard |
//|                                        http://www.compu-forex.com|
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, Kenny Hubbard"
#property link      "http://www.compu-forex.com"


//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
{
int 
   Obj_Index;
double
   Line_Val;
string
   Line_Name;
 
   for(int i=0;i <= ObjectsTotal(OBJ_HLINE);i++){
      Line_Name = ObjectName(i);
      Line_Val = ObjectGet(Line_Name,OBJPROP_PRICE1);
      if (Bid >= Line_Val - 0.0001 && Bid <= Line_Val + 0.0001)ObjectDelete(Line_Name);
   }
return(0);
}
//+------------------------------------------------------------------+