void f0_0()
  {
   int Li_0=iBarShift(NULL,PERIOD_D1,Time[0])+1;
   G_ihigh_444= iHigh(NULL,PERIOD_D1,Li_0);
   G_ilow_452 = iLow(NULL,PERIOD_D1,Li_0);
   G_datetime_468=iTime(NULL,PERIOD_D1,Li_0);
   if(TimeDayOfWeek(G_datetime_468)==0)
     {
      G_ihigh_444= MathMax(G_ihigh_444,iHigh(NULL,PERIOD_D1,Li_0+1));
      G_ilow_452 = MathMin(G_ilow_452,iLow(NULL,PERIOD_D1,Li_0+1));
     }
   Gd_460=G_ihigh_444-G_ilow_452;
   f0_1();
  }
// 177469F06A7487E6FDDCBE94FDB6FD63
int f0_1()
  {
   if(ObjectFind("FiboUp")==-1) ObjectCreate("FiboUp",OBJ_FIBO,0,G_datetime_468,G_ihigh_444+Gd_460,G_datetime_468,G_ihigh_444);
   else
     {
      ObjectSet("FiboUp",OBJPROP_TIME2,G_datetime_468);
      ObjectSet("FiboUp",OBJPROP_TIME1,G_datetime_468);
      ObjectSet("FiboUp",OBJPROP_PRICE1,G_ihigh_444+Gd_460);
      ObjectSet("FiboUp",OBJPROP_PRICE2,G_ihigh_444);
     }
   ObjectSet("FiboUp",OBJPROP_LEVELCOLOR,G_color_428);
   ObjectSet("FiboUp",OBJPROP_FIBOLEVELS,13);
   ObjectSet("FiboUp",OBJPROP_FIRSTLEVEL,0.0);
   ObjectSetFiboDescription("FiboUp",0,"(100.0%) -  %$");
   ObjectSet("FiboUp",211,0.236);
   ObjectSetFiboDescription("FiboUp",1,"(123.6%) -  %$");
   ObjectSet("FiboUp",212,0.382);
   ObjectSetFiboDescription("FiboUp",2,"(138.2%) -  %$");
   ObjectSet("FiboUp",213,0.5);
   ObjectSetFiboDescription("FiboUp",3,"(150.0%) -  %$");
   ObjectSet("FiboUp",214,0.618);
   ObjectSetFiboDescription("FiboUp",4,"(161.8%) -  %$");
   ObjectSet("FiboUp",215,0.764);
   ObjectSetFiboDescription("FiboUp",5,"(176.4%) -  %$");
   ObjectSet("FiboUp",216,1.0);
   ObjectSetFiboDescription("FiboUp",6,"(200.0%) -  %$");
   ObjectSet("FiboUp",217,1.236);
   ObjectSetFiboDescription("FiboUp",7,"(223.6%) -  %$");
   ObjectSet("FiboUp",218,1.5);
   ObjectSetFiboDescription("FiboUp",8,"(250.0%) -  %$");
   ObjectSet("FiboUp",219,1.618);
   ObjectSetFiboDescription("FiboUp",9,"(261.8%) -  %$");
   ObjectSet("FiboUp",220,2.0);
   ObjectSetFiboDescription("FiboUp",10,"(300.0%) -  %$");
   ObjectSet("FiboUp",221,2.5);
   ObjectSetFiboDescription("FiboUp",11,"(350.0%) -  %$");
   ObjectSet("FiboUp",222,3.0);
   ObjectSetFiboDescription("FiboUp",12,"(400.0%) -  %$");
   ObjectSet("FiboUp",223,3.5);
   ObjectSetFiboDescription("FiboUp",13,"(450.0%) -  %$");
   ObjectSet("FiboUp",224,4.0);
   ObjectSetFiboDescription("FiboUp",14,"(500.0%) -  %$");
   ObjectSet("FiboUp",OBJPROP_RAY,TRUE);
   ObjectSet("FiboUp",OBJPROP_BACK,TRUE);
   if(ObjectFind("FiboDn")==-1) ObjectCreate("FiboDn",OBJ_FIBO,0,G_datetime_468,G_ilow_452-Gd_460,G_datetime_468,G_ilow_452);
   else
     {
      ObjectSet("FiboDn",OBJPROP_TIME2,G_datetime_468);
      ObjectSet("FiboDn",OBJPROP_TIME1,G_datetime_468);
      ObjectSet("FiboDn",OBJPROP_PRICE1,G_ilow_452-Gd_460);
      ObjectSet("FiboDn",OBJPROP_PRICE2,G_ilow_452);
     }
   ObjectSet("FiboDn",OBJPROP_LEVELCOLOR,G_color_436);
   ObjectSet("FiboDn",OBJPROP_FIBOLEVELS,19);
   ObjectSet("FiboDn",OBJPROP_FIRSTLEVEL,0.0);
   ObjectSetFiboDescription("FiboDn",0,"(0.0%) -  %$");
   ObjectSet("FiboDn",211,0.236);
   ObjectSetFiboDescription("FiboDn",1,"(-23.6%) -  %$");
   ObjectSet("FiboDn",212,0.382);
   ObjectSetFiboDescription("FiboDn",2,"(-38.2%) -  %$");
   ObjectSet("FiboDn",213,0.5);
   ObjectSetFiboDescription("FiboDn",3,"(-50.0%) -  %$");
   ObjectSet("FiboDn",214,0.618);
   ObjectSetFiboDescription("FiboDn",4,"(-61.8%) -  %$");
   ObjectSet("FiboDn",215,0.764);
   ObjectSetFiboDescription("FiboDn",5,"(-76.4%) -  %$");
   ObjectSet("FiboDn",216,1.0);
   ObjectSetFiboDescription("FiboDn",6,"(-100.0%) -  %$");
   ObjectSet("FiboDn",217,1.236);
   ObjectSetFiboDescription("FiboDn",7,"(-123.6%) -  %$");
   ObjectSet("FiboDn",218,1.382);
   ObjectSetFiboDescription("FiboDn",8,"(-138.2%) -  %$");
   ObjectSet("FiboDn",219,1.5);
   ObjectSetFiboDescription("FiboDn",9,"(-150.0%) -  %$");
   ObjectSet("FiboDn",220,1.618);
   ObjectSetFiboDescription("FiboDn",10,"(-161.8%) -  %$");
   ObjectSet("FiboDn",221,1.764);
   ObjectSetFiboDescription("FiboDn",11,"(-176.4%) -  %$");
   ObjectSet("FiboDn",222,2.0);
   ObjectSetFiboDescription("FiboDn",12,"(-200.0%) -  %$");
   ObjectSet("FiboDn",223,2.5);
   ObjectSetFiboDescription("FiboDn",13,"(-250.0%) -  %$");
   ObjectSet("FiboDn",224,3.0);
   ObjectSetFiboDescription("FiboDn",14,"(-300.0%) -  %$");
   ObjectSet("FiboDn",225,3.5);
   ObjectSetFiboDescription("FiboDn",15,"(-350.0%) -  %$");
   ObjectSet("FiboDn",226,4.0);
   ObjectSetFiboDescription("FiboDn",16,"(-400.0%) -  %$");
   ObjectSet("FiboDn",227,4.5);
   ObjectSetFiboDescription("FiboDn",17,"(-450.0%) -  %$");
   ObjectSet("FiboDn",228,5.0);
   ObjectSetFiboDescription("FiboDn",18,"(-500.0%) -  %$");
   ObjectSet("FiboDn",OBJPROP_RAY,TRUE);
   ObjectSet("FiboDn",OBJPROP_BACK,TRUE);
   if(Gi_440)
     {
      if(ObjectFind("FiboIn")==-1) ObjectCreate("FiboIn",OBJ_FIBO,0,G_datetime_468,G_ihigh_444,G_datetime_468+86400,G_ilow_452);
      else
        {
         ObjectSet("FiboIn",OBJPROP_TIME2,G_datetime_468);
         ObjectSet("FiboIn",OBJPROP_TIME1,G_datetime_468+86400);
         ObjectSet("FiboIn",OBJPROP_PRICE1,G_ihigh_444);
         ObjectSet("FiboIn",OBJPROP_PRICE2,G_ilow_452);
        }
      ObjectSet("FiboIn",OBJPROP_LEVELCOLOR,G_color_432);
      ObjectSet("FiboIn",OBJPROP_FIBOLEVELS,7);
      ObjectSet("FiboIn",OBJPROP_FIRSTLEVEL,0.0);
      ObjectSetFiboDescription("FiboIn",0,"Daily LOW (0.0) -  %$");
      ObjectSet("FiboIn",211,0.236);
      ObjectSetFiboDescription("FiboIn",1,"(23.6) -  %$");
      ObjectSet("FiboIn",212,0.382);
      ObjectSetFiboDescription("FiboIn",2,"(38.2) -  %$");
      ObjectSet("FiboIn",213,0.5);
      ObjectSetFiboDescription("FiboIn",3,"(50.0) -  %$");
      ObjectSet("FiboIn",214,0.618);
      ObjectSetFiboDescription("FiboIn",4,"(61.8) -  %$");
      ObjectSet("FiboIn",215,0.764);
      ObjectSetFiboDescription("FiboIn",5,"(76.4) -  %$");
      ObjectSet("FiboIn",216,1.0);
      ObjectSetFiboDescription("FiboIn",6,"Daily HIGH (100.0) -  %$");
      ObjectSet("FiboIn",OBJPROP_RAY,TRUE);
      ObjectSet("FiboIn",OBJPROP_BACK,TRUE);
     }
   else ObjectDelete("FiboIn");
   return (0);
  }