//+------------------------------------------------------------------+
//|                                                       vLines.mq4 |                                                                  |
//+------------------------------------------------------------------+
#property indicator_chart_window

string VLineSELL;
string VLineBUY;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
   Comment("");
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   if(ObjectFind(0,"TMS1O")!=-1)VLineSELL="Alert for SELL order";
   else VLineSELL="Wait";

   if(ObjectFind(0,"TMS20")!=-1)VLineBUY="Alert for BUY order";
   else VLineBUY="Wait";

   Comment(
           "\nSELL: ",VLineSELL,
           "\nBUY: ",VLineBUY,
           "\n");
   return(0);
  }
//+------------------------------------------------------------------+
