//+------------------------------------------------------------------+
//|                                               High low value.mq4 |
//|                                                  Copyright © 2012|
//+------------------------------------------------------------------+

#property indicator_chart_window

extern string font_type = "Tahoma";
extern int font_size = 12;
extern color font_color = Blue;
extern int H_position = 5;
extern int V_position = 1;
extern bool normalize = true; 


int n_digits = 5;


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
{

// Create High value
      
   ObjectCreate("High", OBJ_LABEL, 0, 0, 0);
   ObjectSet("High", OBJPROP_CORNER, 1);   //object conner: 0 - for top-left corner, 1 - top-right, 2 - bottom-left, 3 - bottom-right
   ObjectSet("High", OBJPROP_XDISTANCE, H_position);  //distance_x
   ObjectSet("High", OBJPROP_YDISTANCE, V_position);   //distance_y
   ObjectSetText("High", "High = " + DoubleToStr (NormalizeDouble(High[0], 5), n_digits), font_size, font_type, font_color);
                                   
// Create Low value

   ObjectCreate("Low", OBJ_LABEL, 0, 0, 0);
   ObjectSet("Low", OBJPROP_CORNER, 3);   //object conner: 0 - for top-left corner, 1 - top-right, 2 - bottom-left, 3 - bottom-right
   ObjectSet("Low", OBJPROP_XDISTANCE, H_position);  //distance_x
   ObjectSet("Low", OBJPROP_YDISTANCE, V_position);   //distance_y
   ObjectSetText("Low", "Low = " + DoubleToStr (NormalizeDouble(Low[0], 5), n_digits), font_size, font_type, font_color);

   
   return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
{
   ObjectDelete("High");
   
   ObjectDelete("Low");


   return(0);
}

//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
{ 

       
   return(0);
}
//+------------------------------------------------------------------+