/*
   Generated by ex4-to-mq4 decompiler (forex-warez.com) 4.0.509.5
   Website:  w w w.f oreX -W a RE z .COM
   E-mail : AndReY b b rV@g MA I l .cOm
*/

#property indicator_chart_window
#property indicator_buffers 5
#property indicator_color1 Green
#property indicator_color2 Red
#property indicator_color3 Yellow
#property indicator_color4 Yellow
#property indicator_color5 Green

int Gia_76[8] = {12467703, 96, 48, 90, 97, 12, 816256};
int Gia_80[16] = {81, 98, 49, 19, 82, 55, 73, 66, 23, 34, 17, 29, 19, 20};
int Gi_unused_92 = -1;
int Gi_unused_96 = -1;
int Gi_unused_100 = 0;
int Gi_unused_104 = 0;
int Gi_unused_108 = 0;
int Gi_unused_112 = 0;
int Gia_unused_116[210];
int Gia_unused_120[5];
int Gia_unused_124[55];
int Gia_unused_128[55];
string Gs_unused_132 = "2010.12.30";
string Gs_unused_140 = "0987654321123456789009876543211234567890";
string Gs_unused_148 = "00000000000987654321123456789009876543211234567890";
string Gs_unused_156 = "11111111110987654321123456789009876543211234567890";
string Gs_unused_164 = "22222222220987654321123456789009876543211234567890";
string Gs_unused_172 = "33333333330987654321123456789009876543211234567890";
string Gs_unused_180 = "44444444440987654321123456789009876543211234567890";
string Gs_unused_188 = "55555555550987654321123456789009876543211234567890";
string Gs_unused_196 = "66666666660987654321123456789009876543211234567890";
string Gs_unused_204 = "77777777770987654321123456789009876543211234567890";
string Gs_unused_212 = "88888888880987654321123456789009876543211234567890";
string Gs_unused_220 = "99999999990987654321123456789009876543211234567890";
double Gda_unused_232[20];
string Gs_unused_236 = "水木外汇";
string Gs_unused_244 = "GFC-T     -Green Finance Centre";
string Gs_unused_252 = "PCForex-Server";
string Gs_unused_260 = "PCForex-Power Capital";
string Gs_unused_268 = "iTradeFX-Demo";
string Gs_unused_276 = "iTradeFX-Live";
extern string musicbuy = "alert.wav";
extern string musicsell = "alert.wav";
extern string musicclose = "alert.wav";
extern int Timeframe = 0;
extern bool showtime = TRUE;
int Gi_316 = 7;
int Gi_320 = 17;
int Gi_324 = 6;
extern bool 声音报警开关 = FALSE;
double Gd_332 = 0.0025;
double Gd_unused_340 = 0.01;
double Gd_348 = 0.2;
int G_period_356 = 21;
int G_period_360 = 96;
double G_ibuf_364[];
double G_ibuf_368[];
double G_ibuf_372[];
double G_ibuf_376[];
double G_ibuf_380[];
int Gi_unused_384 = 315532800;
int Gi_388 = 315532800;
int G_bars_392 = 240;
int Gi_396 = 0;
int Gi_400 = 0;
double Gd_404 = 0.0;
int Gi_412 = -1;
int Gi_416 = -1;
int Gi_420 = 0;
double G_price_424 = 0.0;
double G_price_432 = 0.0;
double G_price_440 = 0.0;
int Gi_unused_448 = 0;
int G_bars_452 = 300;
int Gi_456 = 0;
int Gi_460 = 0;
double Gd_464 = 0.0;
double Gd_472;
int G_datetime_480;
int G_datetime_484;
string Gs_unused_488 = "02:00";
string Gs_unused_496 = "17:00";
int Gi_unused_504 = 15631086;
string Gs_unused_508 = "15:00";
int Gi_unused_516 = 14381203;
string Gs_unused_520 = "10:00";
int Gi_unused_528 = 16748574;
string Gs_unused_532 = "08:00";
int Gi_unused_540 = 3937500;
bool Gi_unused_544 = TRUE;

int deinit() {
   Comment("");
   check();
   DelObj();
   ObjectsDeleteAll(0, OBJ_LABEL);
   ObjectsDeleteAll(0, OBJ_TEXT);
   ObjectsDeleteAll(0, OBJ_ARROW);
   ObjectsDeleteAll(0, OBJ_RECTANGLE);
   ObjectsDeleteAll(0, OBJ_TREND);
   return (0);
}

void DelObj() {
   ObjectDelete("TL1");
   ObjectDelete("TL2");
   ObjectDelete("MIDL");
}

int init() {
   ObjectsDeleteAll();
   SetIndexBuffer(0, G_ibuf_364);
   SetIndexStyle(0, DRAW_HISTOGRAM);
   SetIndexBuffer(1, G_ibuf_368);
   SetIndexStyle(1, DRAW_HISTOGRAM);
   SetIndexStyle(4, DRAW_ARROW);
   SetIndexArrow(4, 164);
   SetIndexBuffer(4, G_ibuf_372);
   SetIndexEmptyValue(4, 0.0);
   SetIndexBuffer(2, G_ibuf_376);
   SetIndexStyle(2, DRAW_HISTOGRAM);
   SetIndexBuffer(3, G_ibuf_380);
   SetIndexStyle(3, DRAW_HISTOGRAM);
   IndicatorShortName("开仓指令");
   C.Time();
   return (0);
}

int start() {
   int Lia_4[];
   int Lia_8[];
   double ima_12;
   double ima_20;
   int Li_28;
   ArrayCopySeries(Lia_4, 5, Symbol(), Timeframe);
   ArrayCopySeries(Lia_8, 5, Symbol(), Timeframe);
   int index_32 = 0;
   int ind_counted_36 = IndicatorCounted();
   int Li_40 = Bars - ind_counted_36;
   int index_44 = 0;
   for (index_32 = 0; index_44 < Li_40; index_44++) {
      if (Time[index_44] < Lia_4[index_32]) index_32++;
      if (Time[index_44] < Lia_8[index_32]) index_32++;
      ima_12 = iMA(NULL, Timeframe, G_period_356, 0, MODE_LWMA, PRICE_CLOSE, index_32 + 1);
      ima_20 = iMA(NULL, Timeframe, G_period_360, 0, MODE_LWMA, PRICE_CLOSE, index_32 + 1);
      if (iSAR(NULL, Timeframe, Gd_332, Gd_348, index_44 + 1) > High[index_44 + 1] && ima_12 <= ima_20) {
         G_ibuf_364[index_44] = iMA(NULL, Timeframe, 26, 0, MODE_SMMA, PRICE_MEDIAN, index_32 + 1) + 2.0 * Point;
         G_ibuf_368[index_44] = iMA(NULL, Timeframe, 26, 0, MODE_SMMA, PRICE_MEDIAN, index_32 + 1) - 2.0 * Point;
         G_ibuf_376[index_44] = EMPTY_VALUE;
         G_ibuf_380[index_44] = EMPTY_VALUE;
      } else {
         if (iSAR(NULL, Timeframe, Gd_332, Gd_348, index_44 + 1) < High[index_44 + 1] && ima_12 > ima_20) {
            G_ibuf_368[index_44] = iMA(NULL, Timeframe, 26, 0, MODE_SMMA, PRICE_MEDIAN, index_32 + 1) + 2.0 * Point;
            G_ibuf_364[index_44] = iMA(NULL, Timeframe, 26, 0, MODE_SMMA, PRICE_MEDIAN, index_32 + 1) - 2.0 * Point;
            G_ibuf_376[index_44] = EMPTY_VALUE;
            G_ibuf_380[index_44] = EMPTY_VALUE;
         } else {
            G_ibuf_376[index_44] = iMA(NULL, Timeframe, 26, 0, MODE_SMMA, PRICE_MEDIAN, index_32 + 1) + 2.0 * Point;
            G_ibuf_380[index_44] = iMA(NULL, Timeframe, 26, 0, MODE_SMMA, PRICE_MEDIAN, index_32 + 1) - 2.0 * Point;
            G_ibuf_364[index_44] = EMPTY_VALUE;
            G_ibuf_368[index_44] = EMPTY_VALUE;
         }
      }
   }
   RefreshRates();
   Gd_472 = WindowPriceMin() + 20.0 * Point;
   if (showtime) {
      for (index_44 = Bars; index_44 > 0; index_44--) {
         if (TimeHour(Time[index_44]) == Gi_320 && TimeMinute(Time[index_44]) == 0) Li_28 = Time[index_44];
         if (TimeHour(Time[index_44]) == Gi_316 && TimeMinute(Time[index_44]) == 0) drawt(TimeToStr(Time[index_44], TIME_DATE), "                            " + TimeToStr(Time[index_44], TIME_DATE) + "" + week(Time[index_44]), Time[index_44], Gd_472);
         if (TimeHour(Time[index_44]) == Gi_316 && TimeMinute(Time[index_44]) == 0 && Li_28 != 0) {
            drawx(TimeToStr(Li_28, TIME_DATE) + "-Close", Time[index_44], Li_28, DarkSlateGray);
            Li_28 = 0;
         }
      }
      if (TimeHour(Time[0]) > Gi_320 || TimeHour(Time[0]) < Gi_316 && Li_28 != 0) drawx(TimeToStr(Li_28, TIME_DATE) + "-Close", Time[0], Li_28, DarkSlateGray);
      WindowRedraw();
   }
   if (声音报警开关 == TRUE && G_ibuf_368[0] > G_ibuf_364[0] && G_ibuf_368[1] <= G_ibuf_364[1] && Gi_388 != Time[0]) {
      PlaySound(musicbuy);
      Gi_388 = Time[0];
   }
   if (声音报警开关 == TRUE && G_ibuf_368[0] < G_ibuf_364[0] && G_ibuf_368[1] >= G_ibuf_364[1] && Gi_388 != Time[0]) {
      PlaySound(musicsell);
      Gi_388 = Time[0];
   }
   if (声音报警开关 == TRUE && G_ibuf_376[0] != G_ibuf_380[0] && G_ibuf_376[1] == G_ibuf_380[1] && Gi_388 != Time[0]) {
      PlaySound(musicclose);
      Gi_388 = Time[0];
   }
   if (G_bars_392 == 0 || Bars < G_bars_392) G_bars_452 = Bars;
   else G_bars_452 = G_bars_392;
   if (Gi_396 > 0) Gi_456 = Gi_396;
   else {
      switch (Period()) {
      case PERIOD_M1:
         Gi_456 = 12;
         break;
      case PERIOD_M5:
         Gi_456 = 48;
         break;
      case PERIOD_M15:
         Gi_456 = 24;
         break;
      case PERIOD_M30:
         Gi_456 = 24;
         break;
      case PERIOD_H1:
         Gi_456 = 12;
         break;
      case PERIOD_H4:
         Gi_456 = 15;
         break;
      case PERIOD_D1:
         Gi_456 = 10;
         break;
      case PERIOD_W1:
         Gi_456 = 6;
         break;
      default:
         DelObj();
         return (-1);
      }
   }
   Gi_400 = 2;
   Gi_412 = -1;
   Gi_416 = -1;
   Gi_420 = 0;
   while (Gi_412 == -1 || Gi_416 == -1 && Gi_400 < G_bars_452) {
      if (Gi_420 < 1 && Gi_400 == iLowest(Symbol(), Period(), MODE_LOW, Gi_456 * 2 + 1, Gi_400 - Gi_456)) {
         if (Gi_420 == 0) {
            Gi_420 = -1;
            Gi_412 = Gi_400;
            G_price_424 = Low[Gi_412];
         } else {
            Gi_416 = Gi_400;
            G_price_432 = Low[Gi_416];
         }
      }
      if (Gi_420 > -1 && Gi_400 == iHighest(Symbol(), Period(), MODE_HIGH, Gi_456 * 2 + 1, Gi_400 - Gi_456)) {
         if (Gi_420 == 0) {
            Gi_420 = 1;
            Gi_412 = Gi_400;
            G_price_424 = High[Gi_412];
         } else {
            Gi_416 = Gi_400;
            G_price_432 = High[Gi_416];
         }
      }
      Gi_400++;
   }
   if (Gi_412 == -1 || Gi_416 == -1) {
      DelObj();
      return (-1);
   }
   Gd_404 = (G_price_432 - G_price_424) / (Gi_416 - Gi_412);
   G_price_424 -= Gi_412 * Gd_404;
   Gi_412 = 0;
   Gi_460 = 0;
   Gd_464 = 0;
   if (Gi_420 == 1) {
      G_price_440 = Low[2] - 2.0 * Gd_404;
      for (index_44 = 3; index_44 <= Gi_416; index_44++)
         if (Low[index_44] < G_price_440 + Gd_404 * index_44) G_price_440 = Low[index_44] - index_44 * Gd_404;
      if (Low[0] < G_price_440) {
         Gi_460 = 0;
         Gd_464 = G_price_440;
      }
      if (Low[1] < G_price_440 + Gd_404) {
         Gi_460 = 1;
         Gd_464 = G_price_440 + Gd_404;
      }
      if (High[0] > G_price_424) {
         Gi_460 = 0;
         Gd_464 = G_price_424;
      }
      if (High[1] > G_price_424 + Gd_404) {
         Gi_460 = 1;
         Gd_464 = G_price_424 + Gd_404;
      }
   } else {
      G_price_440 = High[2] - 2.0 * Gd_404;
      for (index_44 = 3; index_44 <= Gi_416; index_44++)
         if (High[index_44] > G_price_440 + Gd_404 * index_44) G_price_440 = High[index_44] - index_44 * Gd_404;
      if (Low[0] < G_price_424) {
         Gi_460 = 0;
         Gd_464 = G_price_424;
      }
      if (Low[1] < G_price_424 + Gd_404) {
         Gi_460 = 1;
         Gd_464 = G_price_424 + Gd_404;
      }
      if (High[0] > G_price_440) {
         Gi_460 = 0;
         Gd_464 = G_price_440;
      }
      if (High[1] > G_price_440 + Gd_404) {
         Gi_460 = 1;
         Gd_464 = G_price_440 + Gd_404;
      }
   }
   G_price_432 = G_price_424 + G_bars_452 * Gd_404;
   G_datetime_480 = Time[Gi_412];
   G_datetime_484 = Time[G_bars_452];
   if (Gd_464 != 0.0) G_ibuf_372[Gi_460] = Gd_464;
   DelObj();
   ObjectCreate("TL1", OBJ_TREND, 0, G_datetime_484, G_price_440 + Gd_404 * G_bars_452, G_datetime_480, G_price_440);
   ObjectSet("TL1", OBJPROP_COLOR, Fuchsia);
   ObjectSet("TL1", OBJPROP_WIDTH, 1);
   ObjectSet("TL1", OBJPROP_STYLE, STYLE_SOLID);
   ObjectCreate("TL2", OBJ_TREND, 0, G_datetime_484, G_price_432, G_datetime_480, G_price_424);
   ObjectSet("TL2", OBJPROP_COLOR, Fuchsia);
   ObjectSet("TL2", OBJPROP_WIDTH, 1);
   ObjectSet("TL2", OBJPROP_STYLE, STYLE_SOLID);
   ObjectCreate("MIDL", OBJ_TREND, 0, G_datetime_484, (G_price_432 + G_price_440 + Gd_404 * G_bars_452) / 2.0, G_datetime_480, (G_price_424 + G_price_440) / 2.0);
   ObjectSet("MIDL", OBJPROP_COLOR, Fuchsia);
   ObjectSet("MIDL", OBJPROP_WIDTH, 1);
   ObjectSet("MIDL", OBJPROP_STYLE, STYLE_DOT);
   return (0);
}

void drawx(string A_name_0, int A_datetime_8, int A_datetime_12, color A_color_16) {
   RefreshRates();
   if (ObjectFind(A_name_0) == -1) {
      ObjectCreate(A_name_0, OBJ_RECTANGLE, 0, A_datetime_8, 0, A_datetime_12, 3000);
      ObjectSet(A_name_0, OBJPROP_COLOR, A_color_16);
      ObjectSet(A_name_0, OBJPROP_STYLE, STYLE_SOLID);
      ObjectSet(A_name_0, OBJPROP_BACK, TRUE);
      ObjectSet(A_name_0, OBJPROP_RAY, FALSE);
      ObjectSet(A_name_0, OBJPROP_WIDTH, 2);
      return;
   }
   ObjectMove(A_name_0, 0, A_datetime_8, 0);
   ObjectMove(A_name_0, 1, A_datetime_12, 3000);
}

void drawt(string A_name_0, string A_text_8, int A_datetime_16, double A_price_20, color A_color_28 = 65535) {
   if (ObjectFind(A_name_0) == -1) {
      ObjectCreate(A_name_0, OBJ_TEXT, 0, A_datetime_16, A_price_20, A_datetime_16, A_price_20);
      ObjectSetText(A_name_0, A_text_8, 9, "Arial", A_color_28);
      ObjectSet(A_name_0, OBJPROP_WIDTH, 1);
      return;
   }
   ObjectMove(A_name_0, 0, A_datetime_16, A_price_20);
}

string week(int Ai_0) {
   if (TimeDayOfWeek(Ai_0) == 1) return ("周一");
   if (TimeDayOfWeek(Ai_0) == 2) return ("周二");
   if (TimeDayOfWeek(Ai_0) == 3) return ("周三");
   if (TimeDayOfWeek(Ai_0) == 4) return ("周四");
   if (TimeDayOfWeek(Ai_0) == 5) return ("周五");
   if (TimeDayOfWeek(Ai_0) == 6) return ("周六");
   if (TimeDayOfWeek(Ai_0) == 7) return ("周日");
   return ("");
}

void C.Time() {
   if (GlobalVariableCheck("timezone") == FALSE) GlobalVariableSet("timezone", Gi_324);
   Gi_324 = GlobalVariableGet("timezone");
   Gi_316 = 12 - Gi_324;
   Gi_320 = 22 - Gi_324;
}

void check() {
   int Li_unused_0 = 1;
   int Li_unused_4 = 1;
   bool Li_8 = TRUE;
   bool Li_12 = TRUE;
   bool Li_16 = TRUE;
   double Ld_20 = 0;
   double iclose_28 = iClose(NULL, PERIOD_H1, 1);
   double iclose_36 = iClose(NULL, PERIOD_H1, 2);
   double iclose_44 = iClose(NULL, PERIOD_H1, 3);
   double iclose_52 = iClose(NULL, PERIOD_H1, 4);
   double iclose_60 = iClose(NULL, PERIOD_H1, 5);
   double iclose_68 = iClose(NULL, PERIOD_H1, 6);
   double iclose_76 = iClose(NULL, PERIOD_H1, 7);
   double iclose_84 = iClose(NULL, PERIOD_H1, 8);
   double iclose_92 = iClose(NULL, PERIOD_H1, 9);
   double iclose_100 = iClose(NULL, PERIOD_H1, 10);
   double iclose_108 = iClose(NULL, PERIOD_H1, 11);
   double iclose_116 = iClose(NULL, PERIOD_H1, 12);
   double iclose_124 = iClose(NULL, PERIOD_H1, 13);
   double iopen_132 = iOpen(NULL, PERIOD_H1, 1);
   double iopen_140 = iOpen(NULL, PERIOD_H1, 2);
   double iopen_148 = iOpen(NULL, PERIOD_H1, 3);
   double iopen_156 = iOpen(NULL, PERIOD_H1, 4);
   double iopen_164 = iOpen(NULL, PERIOD_H1, 5);
   double iopen_172 = iOpen(NULL, PERIOD_H1, 6);
   double iopen_180 = iOpen(NULL, PERIOD_H1, 7);
   double iopen_188 = iOpen(NULL, PERIOD_H1, 8);
   double iopen_196 = iOpen(NULL, PERIOD_H1, 9);
   double iopen_204 = iOpen(NULL, PERIOD_H1, 10);
   double iopen_212 = iOpen(NULL, PERIOD_H1, 11);
   double iopen_220 = iOpen(NULL, PERIOD_H1, 12);
   double iopen_228 = iOpen(NULL, PERIOD_H1, 13);
   double ihigh_236 = iHigh(NULL, PERIOD_H1, 1);
   double ihigh_244 = iHigh(NULL, PERIOD_H1, 2);
   double ihigh_252 = iHigh(NULL, PERIOD_H1, 3);
   double ihigh_260 = iHigh(NULL, PERIOD_H1, 4);
   double ihigh_268 = iHigh(NULL, PERIOD_H1, 5);
   double ihigh_276 = iHigh(NULL, PERIOD_H1, 6);
   double ihigh_284 = iHigh(NULL, PERIOD_H1, 7);
   double ihigh_292 = iHigh(NULL, PERIOD_H1, 8);
   double ihigh_300 = iHigh(NULL, PERIOD_H1, 9);
   double ihigh_308 = iHigh(NULL, PERIOD_H1, 10);
   double ihigh_316 = iHigh(NULL, PERIOD_H1, 11);
   double ihigh_324 = iHigh(NULL, PERIOD_H1, 12);
   double ihigh_332 = iHigh(NULL, PERIOD_H1, 13);
   double ilow_340 = iLow(NULL, PERIOD_H1, 1);
   double ilow_348 = iLow(NULL, PERIOD_H1, 2);
   double ilow_356 = iLow(NULL, PERIOD_H1, 3);
   double ilow_364 = iLow(NULL, PERIOD_H1, 4);
   double ilow_372 = iLow(NULL, PERIOD_H1, 5);
   double ilow_380 = iLow(NULL, PERIOD_H1, 6);
   double ilow_388 = iLow(NULL, PERIOD_H1, 7);
   double ilow_396 = iLow(NULL, PERIOD_H1, 8);
   double ilow_404 = iLow(NULL, PERIOD_H1, 9);
   double ilow_412 = iLow(NULL, PERIOD_H1, 10);
   double ilow_420 = iLow(NULL, PERIOD_H1, 11);
   double ilow_428 = iLow(NULL, PERIOD_H1, 12);
   double ilow_436 = iLow(NULL, PERIOD_H1, 13);
   if ((Li_8 && Li_16 > iclose_68 + 110.0 * Ld_20) || (Li_12 && (iclose_28 >= iclose_36 && iclose_28 >= iclose_44 && iopen_156 > iclose_52 && iclose_60 > iopen_164 &&
      iopen_156 - iclose_52 >= 50.0 * Ld_20 && iopen_164 - ilow_372 <= 5.0 * Ld_20 && ihigh_260 - iopen_156 <= 5.0 * Ld_20) || (iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_36 > iopen_140 && iclose_28 > iopen_132 && iclose_68 - iopen_172 < iclose_60 - iopen_164 && iclose_60 - iopen_164 < iclose_52 - iopen_156 && iclose_52 - iopen_156 > iclose_44 - iopen_148 && iclose_44 - iopen_148 < iclose_36 - iopen_140 && iclose_36 - iopen_140 < iclose_28 - iopen_132 && iclose_44 - iopen_148 < 4.0 * (ihigh_252 - iclose_44) && iclose_36 - iopen_140 < 2.0 * (ihigh_244 - iclose_36) && ihigh_236 < ihigh_244) ||
      (iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_36 > iopen_140 && iclose_28 > iopen_132 && iclose_60 - iopen_164 < iclose_52 - iopen_156 &&
      iclose_52 - iopen_156 < iclose_44 - iopen_148 && iclose_44 - iopen_148 > iclose_36 - iopen_140 && iclose_36 - iopen_140 < iclose_28 - iopen_132 && iclose_36 - iopen_140 < 10.0 * (ihigh_244 - iclose_36) && iclose_28 - iopen_132 < 2.0 * (ihigh_236 - iclose_28)) ||
      (iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_36 > iopen_140 && iclose_28 < iopen_132 && iclose_60 - iopen_164 > 110.0 * Ld_20 &&
      iclose_60 - iopen_164 > iclose_52 - iopen_156 && iclose_52 - iopen_156 >= iclose_44 - iopen_148 && iclose_44 - iopen_148 < iclose_36 - iopen_140 && ihigh_268 > ihigh_260 &&
      ihigh_268 > ihigh_252 && ihigh_268 > ihigh_244 && ihigh_268 > ihigh_236 && ihigh_244 > ihigh_236 && ilow_372 < ihigh_260 && ilow_364 < ihigh_252 && ilow_356 < ihigh_244 &&
      ilow_340 < ihigh_244) || (iclose_44 > iopen_148 && iclose_36 > iopen_140 && iclose_28 > iopen_132 && iclose_44 - iopen_148 <= 10.0 * Ld_20 && iclose_36 - iopen_140 >= 50.0 * Ld_20 && ihigh_252 < ihigh_244 && ihigh_244 < ihigh_236 && iopen_148 - ilow_356 <= 5.0 * Ld_20 && iopen_140 - ilow_348 <= 5.0 * Ld_20 && iopen_132 - ilow_340 <= 5.0 * Ld_20) ||
      (iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_36 > iopen_140 && iclose_52 - iopen_156 <= 10.0 * Ld_20 && iclose_44 - iopen_148 >= 50.0 * Ld_20 && ihigh_260 < ihigh_252 &&
      ihigh_252 < ihigh_244 && iopen_156 - ilow_364 <= 5.0 * Ld_20 && iopen_148 - ilow_356 <= 5.0 * Ld_20 && iopen_140 - ilow_348 <= 5.0 * Ld_20 && ihigh_236 < ihigh_244) ||
      (iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_60 - iopen_164 <= 10.0 * Ld_20 && iclose_52 - iopen_156 >= 50.0 * Ld_20 && ihigh_268 < ihigh_260 &&
      ihigh_260 < ihigh_252 && iopen_164 - ilow_372 <= 5.0 * Ld_20 && iopen_156 - ilow_364 <= 5.0 * Ld_20 && iopen_148 - ilow_356 <= 5.0 * Ld_20 && ihigh_244 < ihigh_252 &&
      ihigh_236 < ihigh_244) || (iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_68 - iopen_172 <= 10.0 * Ld_20 && iclose_60 - iopen_164 >= 50.0 * Ld_20 && ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 && iopen_172 - ilow_380 <= 5.0 * Ld_20 && iopen_164 - ilow_372 <= 5.0 * Ld_20 && iopen_156 - ilow_364 <= 5.0 * Ld_20 && ihigh_252 < ihigh_260 && ihigh_244 < ihigh_252 && ihigh_236 < ihigh_244) ||
      (iclose_76 > iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_76 - iopen_180 <= 10.0 * Ld_20 && iclose_68 - iopen_172 >= 50.0 * Ld_20 && ihigh_284 < ihigh_276 &&
      ihigh_276 < ihigh_268 && iopen_180 - ilow_388 <= 5.0 * Ld_20 && iopen_172 - ilow_380 <= 5.0 * Ld_20 && iopen_164 - ilow_372 <= 5.0 * Ld_20 && ihigh_260 < ihigh_268 &&
      ihigh_252 < ihigh_260 && ihigh_244 < ihigh_252 && ihigh_236 < ihigh_244) || (iclose_84 > iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 < iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_36 >= iopen_140 && iclose_28 < iopen_132 && ilow_396 < ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348 && ilow_348 > ilow_340 && ihigh_292 <= ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 < ihigh_252 && ihigh_252 < ihigh_244 && ihigh_244 > ihigh_236) ||
      (iclose_76 > iopen_180 && iclose_68 < iopen_172 && iclose_60 > iopen_164 && iclose_52 < iopen_156 && iclose_44 > iopen_148 && iclose_36 > iopen_140 && iclose_28 < iopen_132 &&
      ihigh_284 > ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 > ihigh_260 && ihigh_260 < ihigh_252 && ihigh_252 < ihigh_244 && ihigh_244 > ihigh_236 && ilow_388 > ilow_380 &&
      ilow_380 < ilow_372 && ilow_372 > ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348 && ilow_348 < ilow_340) || (iclose_84 > iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 < iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_36 < iopen_140 && ihigh_292 > ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 < ihigh_252 && ihigh_252 > ihigh_244 && ilow_396 > ilow_388 && ilow_388 < ilow_380 && ilow_380 > ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348) ||
      (iclose_92 > iopen_196 && iclose_84 < iopen_188 && iclose_76 > iopen_180 && iclose_68 < iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 < iopen_148 &&
      ihigh_300 > ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 > ihigh_252 && ilow_404 > ilow_396 &&
      ilow_396 < ilow_388 && ilow_388 > ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356) || (iclose_100 > iopen_204 && iclose_92 < iopen_196 && iclose_84 > iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 < iopen_156 && ihigh_308 > ihigh_300 && ihigh_300 < ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 > ihigh_260 && ilow_412 > ilow_404 && ilow_404 < ilow_396 && ilow_396 > ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364) ||
      (iclose_76 < iopen_180 && iclose_68 < iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iopen_148 > iclose_44 && iopen_140 > iclose_36 && iclose_28 > iopen_132 &&
      ihigh_284 < ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 > ihigh_252 && ihigh_252 > ihigh_244 && ihigh_244 >= ihigh_236 && ilow_388 > ilow_380 &&
      ilow_380 > ilow_372 && ilow_372 < ilow_364 && ilow_364 > ilow_356 && ilow_356 > ilow_348 && ilow_348 < ilow_340 && iclose_76 - ilow_388 <= 5.0 * Ld_20 && iclose_68 - ilow_380 <= 5.0 * Ld_20 &&
      ihigh_252 - iopen_148 <= 5.0 * Ld_20 && ihigh_244 - iopen_140 <= 5.0 * Ld_20 && ihigh_236 - iclose_28 <= 5.0 * Ld_20) || (iclose_84 < iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iopen_156 > iclose_52 && iopen_148 > iclose_44 && iclose_36 > iopen_140 && ihigh_292 < ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 > ihigh_260 && ihigh_260 > ihigh_252 && ihigh_252 >= ihigh_244 && ilow_396 > ilow_388 && ilow_388 > ilow_380 && ilow_380 < ilow_372 && ilow_372 > ilow_364 && ilow_364 > ilow_356 && ilow_356 < ilow_348 && iclose_84 - ilow_396 <= 5.0 * Ld_20 && iclose_76 - ilow_388 <= 5.0 * Ld_20 && ihigh_260 - iopen_156 <= 5.0 * Ld_20 && ihigh_252 - iopen_148 <= 5.0 * Ld_20 && ihigh_244 - iclose_36 <= 5.0 * Ld_20) ||
      (iclose_92 < iopen_196 && iclose_84 < iopen_188 && iclose_76 > iopen_180 && iclose_68 > iopen_172 && iopen_164 > iclose_60 && iopen_156 > iclose_52 && iclose_44 > iopen_148 &&
      ihigh_300 < ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 > ihigh_260 && ihigh_260 >= ihigh_252 && ilow_404 > ilow_396 &&
      ilow_396 > ilow_388 && ilow_388 < ilow_380 && ilow_380 > ilow_372 && ilow_372 > ilow_364 && ilow_364 < ilow_356 && iclose_92 - ilow_404 <= 5.0 * Ld_20 && iclose_84 - ilow_396 <= 5.0 * Ld_20 &&
      ihigh_268 - iopen_164 <= 5.0 * Ld_20 && ihigh_260 - iopen_156 <= 5.0 * Ld_20 && ihigh_252 - iclose_44 <= 5.0 * Ld_20) || (iclose_100 < iopen_204 && iclose_92 < iopen_196 && iclose_84 > iopen_188 && iclose_76 > iopen_180 && iopen_172 > iclose_68 && iopen_164 > iclose_60 && iclose_52 > iopen_156 && ihigh_308 < ihigh_300 && ihigh_300 > ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 >= ihigh_260 && ilow_412 > ilow_404 && ilow_404 > ilow_396 && ilow_396 < ilow_388 && ilow_388 > ilow_380 && ilow_380 > ilow_372 && ilow_372 < ilow_364 && iclose_100 - ilow_412 <= 5.0 * Ld_20 && iclose_92 - ilow_404 <= 5.0 * Ld_20 && ihigh_276 - iopen_172 <= 5.0 * Ld_20 && ihigh_268 - iopen_164 <= 5.0 * Ld_20 && ihigh_260 - iclose_52 <= 5.0 * Ld_20) ||
      (iclose_100 > iopen_204 && iopen_196 > iclose_92 && iclose_84 > iopen_188 && iclose_76 > iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 &&
      iclose_44 < iopen_148 && iclose_36 > iopen_140 && iclose_28 > iopen_132 && ihigh_308 < ihigh_300 && ihigh_300 > ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 < ihigh_276 &&
      ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 < ihigh_252 && ihigh_252 < ihigh_244 && ihigh_244 < ihigh_236 && ilow_412 > ilow_404 && ilow_404 < ilow_396 &&
      ilow_396 < ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 > ilow_348 && ilow_348 < ilow_340) || (iclose_92 < iopen_196 && iclose_84 >= iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 < iopen_148 && iclose_36 > iopen_140 && iclose_28 > iopen_132 && ihigh_300 < ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 < ihigh_252 && ihigh_252 > ihigh_244 && ihigh_244 < ihigh_236 && ilow_404 < ilow_396 && ilow_396 > ilow_388 && ilow_388 > ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 <= ilow_348 && ilow_348 < ilow_340) ||
      (iclose_100 < iopen_204 && iclose_92 >= iopen_196 && iclose_84 < iopen_188 && iclose_76 > iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 < iopen_156 &&
      iclose_44 > iopen_148 && iclose_36 > iopen_140 && ihigh_308 < ihigh_300 && ihigh_300 < ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 < ihigh_268 &&
      ihigh_268 < ihigh_260 && ihigh_260 > ihigh_252 && ihigh_252 < ihigh_244 && ilow_412 < ilow_404 && ilow_404 > ilow_396 && ilow_396 > ilow_388 && ilow_388 < ilow_380 &&
      ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 <= ilow_356 && ilow_356 < ilow_348) || (iclose_100 > iopen_204 && iclose_92 > iopen_196 && iclose_84 < iopen_188 && iclose_76 > iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 && iclose_36 < iopen_140 && iclose_28 < iopen_132 && ihigh_308 < ihigh_300 && ihigh_300 > ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 < ihigh_252 && ihigh_252 > ihigh_244 && ihigh_244 > ihigh_236 && ilow_412 < ilow_404 && ilow_404 > ilow_396 && ilow_396 > ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 > ilow_348 && ilow_348 > ilow_340) ||
      (iclose_92 >= iclose_92 && iclose_84 < iopen_188 && iclose_76 < iopen_180 && iclose_68 < iopen_172 && iclose_60 < iopen_164 && iclose_52 > iopen_156 && iclose_44 > iopen_148 &&
      iclose_36 < iopen_140 && iclose_28 > iopen_132 && ihigh_300 > ihigh_292 && ihigh_292 >= ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 > ihigh_260 &&
      ihigh_260 < ihigh_252 && ihigh_252 > ihigh_244 && ihigh_244 < ihigh_236 && ilow_404 > ilow_396 && ilow_396 > ilow_388 && ilow_388 > ilow_380 && ilow_380 < ilow_372 &&
      ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348 && ilow_348 < ilow_340) || (iclose_100 >= iclose_100 && iclose_92 < iopen_196 && iclose_84 < iopen_188 && iclose_76 < iopen_180 && iclose_68 < iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 < iopen_148 && iclose_36 > iopen_140 && ihigh_308 > ihigh_300 && ihigh_300 >= ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 > ihigh_252 && ihigh_252 < ihigh_244 && ilow_412 > ilow_404 && ilow_404 > ilow_396 && ilow_396 > ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348) ||
      (iclose_92 > iopen_196 && iclose_84 >= iopen_188 && iclose_76 > iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 < iopen_148 &&
      iclose_36 < iopen_140 && iclose_28 > iopen_132 && ihigh_300 >= ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 &&
      ihigh_260 < ihigh_252 && ihigh_252 > ihigh_244 && ihigh_244 >= ihigh_236 && ilow_404 < ilow_396 && ilow_396 <= ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 &&
      ilow_372 <= ilow_364 && ilow_364 < ilow_356 && ilow_356 > ilow_348 && ilow_348 < ilow_340) || (iclose_100 > iopen_204 && iclose_92 >= iopen_196 && iclose_84 > iopen_188 && iclose_76 > iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 < iopen_156 && iclose_44 < iopen_148 && iclose_36 > iopen_140 && ihigh_308 >= ihigh_300 && ihigh_300 < ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 > ihigh_252 && ihigh_252 >= ihigh_244 && ilow_412 < ilow_404 && ilow_404 <= ilow_396 && ilow_396 < ilow_388 && ilow_388 < ilow_380 && ilow_380 <= ilow_372 && ilow_372 < ilow_364 && ilow_364 > ilow_356 && ilow_356 < ilow_348) ||
      (iclose_92 > iopen_196 && iclose_84 > iopen_188 && iclose_76 > iopen_180 && iclose_68 < iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 < iopen_148 &&
      iclose_36 > iopen_140 && iclose_28 > iopen_132 && ihigh_300 < ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 > ihigh_268 && ihigh_268 < ihigh_260 &&
      ihigh_260 < ihigh_252 && ihigh_252 > ihigh_244 && ihigh_244 < ihigh_236 && ilow_404 < ilow_396 && ilow_396 < ilow_388 && ilow_388 <= ilow_380 && ilow_380 > ilow_372 &&
      ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 > ilow_348 && ilow_348 < ilow_340) || (iclose_100 > iopen_204 && iclose_92 > iopen_196 && iclose_84 > iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 < iopen_156 && iclose_44 > iopen_148 && iclose_36 > iopen_140 && ihigh_308 < ihigh_300 && ihigh_300 < ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 > ihigh_252 && ihigh_252 < ihigh_244 && ilow_412 < ilow_404 && ilow_404 < ilow_396 && ilow_396 <= ilow_388 && ilow_388 > ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 > ilow_356 && ilow_356 < ilow_348) ||
      (iclose_92 > iopen_196 && iclose_84 > iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 < iopen_148 &&
      iclose_36 > iopen_140 && iclose_28 > iopen_132 && ihigh_300 < ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 > ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 < ihigh_260 &&
      ihigh_260 > ihigh_252 && ihigh_252 < ihigh_244 && ihigh_244 > ihigh_236 && ilow_404 < ilow_396 && ilow_396 > ilow_388 && ilow_388 > ilow_380 && ilow_380 < ilow_372 &&
      ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348 && ilow_348 < ilow_340) || (iclose_100 > iopen_204 && iclose_92 > iopen_196 && iclose_84 < iopen_188 && iclose_76 > iopen_180 && iclose_68 > iopen_172 && iclose_60 > iopen_164 && iclose_52 < iopen_156 && iclose_44 > iopen_148 && iclose_36 > iopen_140 && ihigh_308 < ihigh_300 && ihigh_300 > ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 < ihigh_268 && ihigh_268 > ihigh_260 && ihigh_260 < ihigh_252 && ihigh_252 > ihigh_244 && ilow_412 < ilow_404 && ilow_404 > ilow_396 && ilow_396 > ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348) ||
      (iclose_92 > iopen_196 && iclose_84 < iopen_188 && iclose_76 < iopen_180 && iclose_68 > iopen_172 && iclose_60 < iopen_164 && iclose_52 < iopen_156 && iclose_44 > iopen_148 &&
      iclose_36 > iopen_140 && iclose_28 < iopen_132 && ihigh_300 > ihigh_292 && ihigh_292 > ihigh_284 && ihigh_284 >= ihigh_276 && ihigh_276 >= ihigh_268 && ihigh_268 >= ihigh_260 &&
      ihigh_260 < ihigh_252 && ihigh_252 < ihigh_244 && ihigh_244 > ihigh_236 && ilow_404 < ilow_396 && ilow_396 > ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 &&
      ilow_372 > ilow_364 && ilow_364 < ilow_356 && ilow_356 < ilow_348 && ilow_348 > ilow_340) || (iclose_92 < iopen_196 && iclose_84 > iopen_188 && iclose_76 > iopen_180 && iclose_68 >= iopen_172 && iclose_60 > iopen_164 && iclose_52 > iopen_156 && iclose_44 < iopen_148 && iclose_36 > iopen_140 && iclose_28 > iopen_132 && ihigh_300 < ihigh_292 && ihigh_292 < ihigh_284 && ihigh_284 < ihigh_276 && ihigh_276 <= ihigh_268 && ihigh_268 < ihigh_260 && ihigh_260 > ihigh_252 && ihigh_252 > ihigh_244 && ihigh_244 < ihigh_236 && ilow_404 < ilow_396 && ilow_396 < ilow_388 && ilow_388 < ilow_380 && ilow_380 < ilow_372 && ilow_372 < ilow_364 && ilow_364 < ilow_356 && ilow_356 > ilow_348 && ilow_348 < ilow_340))) Li_unused_0 = 0;
}
