#property copyright "Copyright © 2008, MetaQuotes Software Corp."
#property link      ""

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Black

extern int Corner = 0;
extern int y_distance=0;

int init() {
   string l_name_0 = "F1 TF M1";
   ObjectDelete(l_name_0);
   ObjectCreate(l_name_0, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_0, "M1", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_0, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_0, OBJPROP_XDISTANCE, 720);
   ObjectSet(l_name_0, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_8 = "F1 TF M5";
   ObjectDelete(l_name_8);
   ObjectCreate(l_name_8, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_8, "M5", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_8, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_8, OBJPROP_XDISTANCE, 760);
   ObjectSet(l_name_8, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_16 = "F1 TF M15";
   ObjectDelete(l_name_16);
   ObjectCreate(l_name_16, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_16, "M15", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_16, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_16, OBJPROP_XDISTANCE, 800);
   ObjectSet(l_name_16, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_24 = "F1 TF M30";
   ObjectDelete(l_name_24);
   ObjectCreate(l_name_24, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_24, "M30", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_24, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_24, OBJPROP_XDISTANCE, 840);
   ObjectSet(l_name_24, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_32 = "F1 TF H1";
   ObjectDelete(l_name_32);
   ObjectCreate(l_name_32, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_32, "H1", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_32, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_32, OBJPROP_XDISTANCE, 880);
   ObjectSet(l_name_32, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_40 = "F1 TF H4";
   ObjectDelete(l_name_40);
   ObjectCreate(l_name_40, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_40, "H4", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_40, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_40, OBJPROP_XDISTANCE, 920);
   ObjectSet(l_name_40, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_48 = "F1 TF D1";
   ObjectDelete(l_name_48);
   ObjectCreate(l_name_48, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_48, "D1", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_48, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_48, OBJPROP_XDISTANCE, 960);
   ObjectSet(l_name_48, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_56 = "F1 TF W1";
   ObjectDelete(l_name_56);
   ObjectCreate(l_name_56, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_56, "W1", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_56, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_56, OBJPROP_XDISTANCE, 1000);
   ObjectSet(l_name_56, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_64 = "F1 TF MN";
   ObjectDelete(l_name_64);
   ObjectCreate(l_name_64, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_64, "MN", 7, "Arial Bold", LightSalmon);
   ObjectSet(l_name_64, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_64, OBJPROP_XDISTANCE, 1040);
   ObjectSet(l_name_64, OBJPROP_YDISTANCE, 540+y_distance );
   string l_name_72 = "Maximum";
   ObjectDelete(l_name_72);
   ObjectCreate(l_name_72, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_72, "Highest :", 7, "Arial Bold", Gainsboro);
   ObjectSet(l_name_72, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_72, OBJPROP_XDISTANCE, 650);
   ObjectSet(l_name_72, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_80 = "Minimum";
   ObjectDelete(l_name_80);
   ObjectCreate(l_name_80, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_80, "Lowest :", 7, "Arial Bold", Gainsboro);
   ObjectSet(l_name_80, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_80, OBJPROP_XDISTANCE, 650);
   ObjectSet(l_name_80, OBJPROP_YDISTANCE, 580+y_distance );
   return (0);
}

int deinit()
  {
   for(int li_0 = ObjectsTotal() - 1; li_0 >= 0; li_0--)
     {
       string l_name_4 = ObjectName(li_0);
       if(StringFind(l_name_4, "", 0) < 0) 
           continue;
       ObjectDelete(l_name_4);
     }
   return (0);
  }

int start() {
   string ls_unused_4;
   string ls_unused_12;
   string l_text_20;
   string l_text_28;
   if (Period() < PERIOD_M1) return (0);
   int l_ind_counted_0 = IndicatorCounted();
   color l_color_36 = SlateBlue;
   color l_color_40 = Yellow;
   double l_icustom_44 = iCustom(NULL, PERIOD_M1, "Formula_2", 0, 0);
   double l_icustom_52 = iCustom(NULL, PERIOD_M1, "Formula_2", 1, 0);
   double l_icustom_60 = iCustom(NULL, PERIOD_M1, "Formula_2", 2, 0);
   double l_icustom_68 = iCustom(NULL, PERIOD_M1, "Formula_2", 3, 0);
   double l_icustom_76 = iCustom(NULL, PERIOD_M1, "Formula_2", 4, 0);
   double l_icustom_84 = iCustom(NULL, PERIOD_M1, "Formula_2", 5, 0);
   double l_icustom_92 = iCustom(NULL, PERIOD_M1, "Formula_2", 6, 0);
   double l_icustom_100 = iCustom(NULL, PERIOD_M1, "Formula_2", 7, 0);
   double ld_108 = MathMax(l_icustom_44, l_icustom_52);
   double ld_116 = MathMax(ld_108, l_icustom_60);
   double ld_124 = MathMax(ld_116, l_icustom_68);
   double ld_132 = MathMax(ld_124, l_icustom_76);
   double ld_140 = MathMax(ld_132, l_icustom_84);
   double ld_148 = MathMax(ld_140, l_icustom_92);
   double ld_156 = MathMax(ld_148, l_icustom_100);
   double ld_164 = MathMin(l_icustom_44, l_icustom_52);
   double ld_172 = MathMin(ld_164, l_icustom_60);
   double ld_180 = MathMin(ld_172, l_icustom_68);
   double ld_188 = MathMin(ld_180, l_icustom_76);
   double ld_196 = MathMin(ld_188, l_icustom_84);
   double ld_204 = MathMin(ld_196, l_icustom_92);
   double ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_220 = "max M1";
   ObjectDelete(l_name_220);
   ObjectCreate(l_name_220, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_220, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_220, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_220, OBJPROP_XDISTANCE, 715);
   ObjectSet(l_name_220, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_228 = "min M1";
   ObjectDelete(l_name_228);
   ObjectCreate(l_name_228, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_228, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_228, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_228, OBJPROP_XDISTANCE, 715);
   ObjectSet(l_name_228, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_M5, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_M5, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_M5, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_M5, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_M5, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_M5, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_M5, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_M5, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_236 = "max M5";
   ObjectDelete(l_name_236);
   ObjectCreate(l_name_236, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_236, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_236, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_236, OBJPROP_XDISTANCE, 755);
   ObjectSet(l_name_236, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_244 = "min M5";
   ObjectDelete(l_name_244);
   ObjectCreate(l_name_244, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_244, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_244, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_244, OBJPROP_XDISTANCE, 755);
   ObjectSet(l_name_244, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_M15, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_M15, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_M15, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_M15, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_M15, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_M15, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_M15, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_M15, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_252 = "max M15";
   ObjectDelete(l_name_252);
   ObjectCreate(l_name_252, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_252, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_252, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_252, OBJPROP_XDISTANCE, 795);
   ObjectSet(l_name_252, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_260 = "min M15";
   ObjectDelete(l_name_260);
   ObjectCreate(l_name_260, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_260, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_260, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_260, OBJPROP_XDISTANCE, 795);
   ObjectSet(l_name_260, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_M30, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_M30, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_M30, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_M30, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_M30, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_M30, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_M30, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_M30, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_268 = "max M30";
   ObjectDelete(l_name_268);
   ObjectCreate(l_name_268, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_268, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_268, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_268, OBJPROP_XDISTANCE, 835);
   ObjectSet(l_name_268, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_276 = "min M30";
   ObjectDelete(l_name_276);
   ObjectCreate(l_name_276, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_276, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_276, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_276, OBJPROP_XDISTANCE, 835);
   ObjectSet(l_name_276, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_H1, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_H1, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_H1, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_H1, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_H1, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_H1, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_H1, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_H1, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_284 = "max H1";
   ObjectDelete(l_name_284);
   ObjectCreate(l_name_284, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_284, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_284, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_284, OBJPROP_XDISTANCE, 875);
   ObjectSet(l_name_284, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_292 = "min H1";
   ObjectDelete(l_name_292);
   ObjectCreate(l_name_292, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_292, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_292, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_292, OBJPROP_XDISTANCE, 875);
   ObjectSet(l_name_292, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_H4, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_H4, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_H4, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_H4, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_H4, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_H4, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_H4, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_H4, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_300 = "max H4";
   ObjectDelete(l_name_300);
   ObjectCreate(l_name_300, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_300, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_300, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_300, OBJPROP_XDISTANCE, 915);
   ObjectSet(l_name_300, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_308 = "min H4";
   ObjectDelete(l_name_308);
   ObjectCreate(l_name_308, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_308, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_308, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_308, OBJPROP_XDISTANCE, 915);
   ObjectSet(l_name_308, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_D1, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_D1, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_D1, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_D1, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_D1, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_D1, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_D1, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_D1, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_316 = "max D1";
   ObjectDelete(l_name_316);
   ObjectCreate(l_name_316, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_316, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_316, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_316, OBJPROP_XDISTANCE, 955);
   ObjectSet(l_name_316, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_324 = "min D1";
   ObjectDelete(l_name_324);
   ObjectCreate(l_name_324, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_324, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_324, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_324, OBJPROP_XDISTANCE, 955);
   ObjectSet(l_name_324, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_W1, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_W1, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_W1, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_W1, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_W1, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_W1, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_W1, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_W1, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_332 = "max W1";
   ObjectDelete(l_name_332);
   ObjectCreate(l_name_332, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_332, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_332, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_332, OBJPROP_XDISTANCE, 995);
   ObjectSet(l_name_332, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_340 = "min W1";
   ObjectDelete(l_name_340);
   ObjectCreate(l_name_340, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_340, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_340, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_340, OBJPROP_XDISTANCE, 995);
   ObjectSet(l_name_340, OBJPROP_YDISTANCE, 580+y_distance );
   l_icustom_44 = iCustom(NULL, PERIOD_MN1, "Formula_2", 0, 0);
   l_icustom_52 = iCustom(NULL, PERIOD_MN1, "Formula_2", 1, 0);
   l_icustom_60 = iCustom(NULL, PERIOD_MN1, "Formula_2", 2, 0);
   l_icustom_68 = iCustom(NULL, PERIOD_MN1, "Formula_2", 3, 0);
   l_icustom_76 = iCustom(NULL, PERIOD_MN1, "Formula_2", 4, 0);
   l_icustom_84 = iCustom(NULL, PERIOD_MN1, "Formula_2", 5, 0);
   l_icustom_92 = iCustom(NULL, PERIOD_MN1, "Formula_2", 6, 0);
   l_icustom_100 = iCustom(NULL, PERIOD_MN1, "Formula_2", 7, 0);
   ld_108 = MathMax(l_icustom_44, l_icustom_52);
   ld_116 = MathMax(ld_108, l_icustom_60);
   ld_124 = MathMax(ld_116, l_icustom_68);
   ld_132 = MathMax(ld_124, l_icustom_76);
   ld_140 = MathMax(ld_132, l_icustom_84);
   ld_148 = MathMax(ld_140, l_icustom_92);
   ld_156 = MathMax(ld_148, l_icustom_100);
   ld_164 = MathMin(l_icustom_44, l_icustom_52);
   ld_172 = MathMin(ld_164, l_icustom_60);
   ld_180 = MathMin(ld_172, l_icustom_68);
   ld_188 = MathMin(ld_180, l_icustom_76);
   ld_196 = MathMin(ld_188, l_icustom_84);
   ld_204 = MathMin(ld_196, l_icustom_92);
   ld_212 = MathMin(ld_204, l_icustom_100);
   if (ld_156 == l_icustom_44) l_text_20 = "USD";
   if (ld_156 == l_icustom_52) l_text_20 = "EUR";
   if (ld_156 == l_icustom_60) l_text_20 = "GBP";
   if (ld_156 == l_icustom_68) l_text_20 = "CHF";
   if (ld_156 == l_icustom_76) l_text_20 = "JPY";
   if (ld_156 == l_icustom_84) l_text_20 = "AUD";
   if (ld_156 == l_icustom_92) l_text_20 = "CAD";
   if (ld_156 == l_icustom_100) l_text_20 = "NZD";
   if (ld_212 == l_icustom_44) l_text_28 = "USD";
   if (ld_212 == l_icustom_52) l_text_28 = "EUR";
   if (ld_212 == l_icustom_60) l_text_28 = "GBP";
   if (ld_212 == l_icustom_68) l_text_28 = "CHF";
   if (ld_212 == l_icustom_76) l_text_28 = "JPY";
   if (ld_212 == l_icustom_84) l_text_28 = "AUD";
   if (ld_212 == l_icustom_92) l_text_28 = "CAD";
   if (ld_212 == l_icustom_100) l_text_28 = "NZD";
   string l_name_348 = "max MN";
   ObjectDelete(l_name_348);
   ObjectCreate(l_name_348, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_348, l_text_20, 7, "Arial Bold", l_color_36);
   ObjectSet(l_name_348, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_348, OBJPROP_XDISTANCE, 1035);
   ObjectSet(l_name_348, OBJPROP_YDISTANCE, 560+y_distance );
   string l_name_356 = "min MN";
   ObjectDelete(l_name_356);
   ObjectCreate(l_name_356, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(l_name_356, l_text_28, 7, "Arial Bold", l_color_40);
   ObjectSet(l_name_356, OBJPROP_CORNER, Corner);
   ObjectSet(l_name_356, OBJPROP_XDISTANCE, 1035);
   ObjectSet(l_name_356, OBJPROP_YDISTANCE, 580+y_distance );
   return (0);
}