//+------------------------------------------------------------------+
//| CurrentTime                                                                 
//+------------------------------------------------------------------+
#property copyright "Валерий Федоров"
#property link      ""
#property indicator_chart_window

extern int Corner = 0;
extern int X = 5;
extern int Y = 20;
extern color Color = Blue;

string LabelName="CurrentTime";
//+------------------------------------------------------------------+
int init()
{
	ObjectCreate(LabelName, OBJ_LABEL, 0, 0, 0);
	return(0);
}
//+------------------------------------------------------------------+
int deinit()
{
  ObjectDelete(LabelName);
  return(0);
}
//+------------------------------------------------------------------+
int start()
{
  ObjectSet(LabelName, OBJPROP_CORNER, Corner);      
  ObjectSet(LabelName, OBJPROP_XDISTANCE, X ); 
  ObjectSet(LabelName, OBJPROP_YDISTANCE, Y);
  ObjectSetText(LabelName,"Текущее время = "+ TimeToStr(TimeCurrent(),TIME_DATE)+" "+TimeToStr(TimeCurrent(),TIME_SECONDS),8,"Arial",Color);
  return(0);
}