//+------------------------------------------------------------------+
//|                                                   TF Show v1.mq4 |
//|                              http://www.forexfactory.com/saronko |
//|                                                                  |
//+------------------------------------------------------------------+

#property copyright "Saronko"
#property version   "1.00"
#property link      "http://www.forexfactory.com/saronko"
#property description "Indicator display Current TimeFrame minuts"      
#property indicator_chart_window

//**************Strig init
extern string  Corner_Note             = "0 top left, 1 top right, 2 bottom left, 3 bottom right";
extern int     Corner_Position_Text    = 1;
extern int     X_Position_Text         = 1;
extern int     Y_Position_Text         = 1;
extern int     Font_Size_Text          = 12;
extern color   colortext               = Silver;
extern string  font                    = "Arial";//Lucida Console etc

//**************Define Object
#define OBJCurrTF    "CurrTF"


//Custom indicator initialization function 

int start()

   {
//****** Create Object start   
      ObjectCreate   (OBJCurrTF, OBJ_LABEL, 0, 0, 0);
      ObjectSet      (OBJCurrTF, OBJPROP_CORNER, Corner_Position_Text);
      ObjectSet      (OBJCurrTF, OBJPROP_YDISTANCE, 1+Y_Position_Text); //UP DOWN
      ObjectSet      (OBJCurrTF, OBJPROP_XDISTANCE, 1+X_Position_Text);//Left Right
      ObjectSetText  (OBJCurrTF, "TF: "+Period()+"m", Font_Size_Text, font, colortext);
      
//****** Create Object end
   WindowRedraw();
   
return(0);
}
//--- INIT AND DEINIT ------------------------------------- //

int init()
{
  return(0); 
}
//--- Delete object
int deinit()
{
     
   ObjectDelete(OBJCurrTF);     
    
return(0);
}
//************************end of code