TRUE Forex

Просмотр кода форекс индикатора ! Alfa Romeo Z.mq4

#property copyright "Copyright © 2013,EA Compilator."
#property link      "http://www.assassintrader.blogspot.com"

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Black
#property indicator_color2 Black

extern string Indicator_Name = "!Alfa Romeo Z";
extern string Coder = "EA Compilator";
extern color timeColor = White;
double Gda_unused_96[];
int Gi_100 = 15624315;
int Gi_104 = 65535;
int Gi_108 = 16776960;
double Gd_112;
extern string Rebate = "Rebate Setting";
extern double MoneyPerLot = 1.7;
extern int period = 0;
extern bool ShowTrend = TRUE;
extern color TrendColor = Blue;
extern int TrendSize = 2;
string G_name_152 = "";
extern int forcedtf = 0;
extern bool drawzones = TRUE;
extern bool solidzones = TRUE;
extern bool solidretouch = TRUE;
extern bool recolorretouch = TRUE;
extern bool recolorweakretouch = TRUE;
extern bool zonestrength = TRUE;
extern bool noweakzones = TRUE;
extern bool drawedgeprice = TRUE;
extern int zonewidth = 2;
extern bool zonefibs = FALSE;
extern int fibstyle = 0;
extern bool HUDon = TRUE;
extern bool timeron = TRUE;
extern int layerzone = 0;
extern int layerHUD = 20;
extern int cornerHUD = 2;
extern int posx = 100;
extern int posy = 20;
extern bool alerton = TRUE;
extern bool alertpopup = TRUE;
extern string alertsound = "alert.wav";
extern color colorsupstrong = Green;
extern color colorsupweak = Yellow;
extern color colorsupretouch = DarkGreen;
extern color colordemstrong = Crimson;
extern color colordemweak = HotPink;
extern color colordemretouch = MediumVioletRed;
extern color colorfib = DodgerBlue;
extern color colorHUDtf = Navy;
extern color colorarrowup = SeaGreen;
extern color colorarrowdn = Crimson;
extern color colortimerback = DarkGray;
extern color colortimerbar = Red;
extern color colorshadow = DarkSlateGray;
extern bool limitzonevis = FALSE;
extern bool sametfvis = TRUE;
extern bool showonm1 = FALSE;
extern bool showonm5 = TRUE;
extern bool showonm15 = FALSE;
extern bool showonm30 = FALSE;
extern bool showonh1 = FALSE;
extern bool showonh4 = FALSE;
extern bool showond1 = FALSE;
extern bool showonw1 = FALSE;
extern bool showonmn = FALSE;
extern int Price_Width = 1;
extern int timeoffset = 0;
extern bool globals = FALSE;
double G_ibuf_360[];
double G_ibuf_364[];
double Gda_368[4];
double Gda_372[4];
double Gd_376;
double Gd_384;
string Gs_392;
string Gs_400;
int Gi_408;
string Gs_412 = "Comic Sans MS";
int Gi_420 = 20;
string Gs_424 = "Arial Bold";
int Gi_432 = 12;
int Gi_436 = 112;
int Gi_440 = 113;
string Gs_444 = "WingDings 3";
int Gi_452 = 40;
int Gi_unused_456 = 8;
string Gs_460;
int G_color_468;
int Gi_472;
int G_angle_476 = 270;
int G_str_len_480;
string Gs_484 = "|||||||||||||||||||||||";
string G_fontname_492 = "Arial Bold";
int G_fontsize_500 = 8;
double Gd_504;
double Gd_512;
double Gda_520[4] = {3, 8, 13, 34};
int Gia_524[4] = {2, 5, 8, 13};
int Gia_528[4] = {2, 3, 5, 8};
int G_datetime_532;
int G_time_536;
double Gd_548;
string G_symbol_556;
double Gd_564;
int G_digits_572;
int G_timeframe_576;
string Gs_580;
double Gd_588;
double Gd_596;
int G_count_604;
int G_count_608;
int Gi_612;
int Gi_616;
double Gd_620;
double Gd_628;
double Gda_636[13] = {0.0, 0.236, 0.386, 0.5, 0.618, 0.786, 1.0, 1.276, 1.618, 2.058, 2.618, 3.33, 4.236};
string Gsa_640[13] = {"0", "23.6%", "38.6%", "50%", "61.8%", "78.6%", "100%", "127.6%", "161.8%", "205.8%", "261.80%", "333%", "423.6%"};
int G_x_644;
int G_y_648;
int Gi_652;
int Gi_656;
int Gi_660;
int Gi_664;
int Gi_668;
int Gi_672;
int Gi_676;
int Gi_680;
int Gi_692;
int Gi_696;
int Gi_700;
int Gi_704;
int Gi_708;
int Gi_712;
int Gi_716;
int Gi_720;
int G_datetime_724 = 0;
int Gi_728 = 0;

// E37F0136AA3FFAF149B351F6A4C948E9
int init() {
   G_name_152 = "trend1" + period;
   SetIndexBuffer(1, G_ibuf_360);
   SetIndexEmptyValue(1, 0.0);
   SetIndexStyle(1, DRAW_NONE);
   SetIndexBuffer(0, G_ibuf_364);
   SetIndexEmptyValue(0, 0.0);
   SetIndexStyle(0, DRAW_NONE);
   if (layerHUD > 25) layerHUD = 25;
   Gs_392 = CharToStr(layerHUD + 97);
   if (layerzone > 25) layerzone = 25;
   Gs_400 = CharToStr(layerzone + 97);
   G_symbol_556 = Symbol();
   if (forcedtf != 0) G_timeframe_576 = forcedtf;
   else G_timeframe_576 = Period();
   Gd_564 = Point;
   G_digits_572 = Digits;
   if (G_digits_572 == 3 || G_digits_572 == 5) Gd_564 = 10.0 * Gd_564;
   if (HUDon && (!drawzones)) Gs_580 = "II_HUD" + G_timeframe_576;
   else Gs_580 = "II_SupDem" + G_timeframe_576;
   G_str_len_480 = StringLen(Gs_484);
   if (HUDon) f0_9();
   if (limitzonevis) f0_3();
   f0_6(Gs_392 + Gs_580);
   f0_6(Gs_400 + Gs_580);
   return (0);
}

// 52D46093050F38C27267BCE42543EF60
int deinit() {
   ObjectsDeleteAll();
   return (0);
}

// EA2B2676C28C0DB26D39331A336C6B92
int start() {
   int index_56;
   double Ld_unused_60;
   int Li_8 = Time[0] + 60 * Period() - TimeCurrent();
   double Ld_0 = Li_8 / 60.0;
   int Li_12 = Li_8 % 60;
   Li_8 = (Li_8 - Li_8 % 60) / 60;
   ObjectDelete("time");
   if (ObjectFind("time") != 0) {
      ObjectCreate("time", OBJ_TEXT, 0, Time[0], Close[0] + 0.0005);
      ObjectSetText("time", "                       " + Li_8 + ":" + Li_12, 10, "Rockwell", timeColor);
   } else ObjectMove("time", 0, Time[0], Close[0] + 0.0005);
   f0_19();
   f0_20();
   int ind_counted_20 = IndicatorCounted();
   if (f0_1() == 1) {
      Gi_612 = 1;
      Gi_616 = 1;
      f0_6(Gs_400 + Gs_580);
      f0_7(G_ibuf_360, G_ibuf_364, Gda_520[0], Gia_524[0], Gia_528[0]);
      f0_22(G_ibuf_360, G_ibuf_364);
      f0_4();
      if (HUDon) f0_26();
   }
   if (HUDon && timeron) f0_27();
   if (alerton) f0_0();
   if (G_datetime_724 != iTime(Symbol(), period, 0)) {
      G_datetime_724 = iTime(Symbol(), period, 0);
      ObjectDelete(G_name_152);
      double Lda_48[4] = {0, 0, 0, 0};
      int Lia_52[4] = {0, 0, 0, 0};
      index_56 = 0;
      Ld_unused_60 = 0;
      for (int Li_68 = 0; index_56 < 4; Li_68++) {
         if (iCustom(Symbol(), period, "ZigZag", 12, 5, 3, 0, Li_68) != 0.0) {
            Lda_48[index_56] = iCustom(Symbol(), period, "ZigZag", 12, 5, 3, 0, Li_68);
            Lia_52[index_56] = iTime(Symbol(), period, Li_68);
            index_56++;
         }
      }
      ObjectDelete(G_name_152);
      if (ShowTrend) {
         ObjectCreate(G_name_152, OBJ_CHANNEL, 0, Lia_52[3], Lda_48[3], Lia_52[1], Lda_48[1], Lia_52[2], Lda_48[2]);
         ObjectSet(G_name_152, OBJPROP_COLOR, TrendColor);
         ObjectSet(G_name_152, OBJPROP_WIDTH, TrendSize);
      }
   }
   return (0);
}

// 413466DC5223EEA550615483B5638906
int f0_8() {
   int count_0 = 0;
   for (int pos_4 = OrdersTotal() - 1; pos_4 >= 0; pos_4--) {
      OrderSelect(pos_4, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_BUY) count_0++;
      }
   }
   return (count_0);
}

// 41D60B7FA3B2CBB4FAA31A65B6C9B36E
int f0_10() {
   int count_0 = 0;
   for (int pos_4 = OrdersTotal() - 1; pos_4 >= 0; pos_4--) {
      OrderSelect(pos_4, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_SELL) count_0++;
      }
   }
   return (count_0);
}

// 52ACDC00F964F10904DD0026167B1749
double f0_15() {
   double Ld_ret_0 = 0;
   for (int pos_8 = OrdersTotal() - 1; pos_8 >= 0; pos_8--) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_BUY) Ld_ret_0 += OrderLots();
      }
   }
   return (Ld_ret_0);
}

// 3B644A05595E4194F02C478505F7064B
double f0_5() {
   double Ld_ret_0 = 0;
   for (int pos_8 = OrdersTotal() - 1; pos_8 >= 0; pos_8--) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_SELL) Ld_ret_0 += OrderLots();
      }
   }
   return (Ld_ret_0);
}

// 74928358B06F9740D994012FDF520047
int f0_18() {
   int count_0 = 0;
   for (int pos_4 = OrdersTotal() - 1; pos_4 >= 0; pos_4--) {
      OrderSelect(pos_4, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_BUYSTOP) count_0++;
      }
   }
   return (count_0);
}

// 4DF0F70F574A6674432EC47CD924A390
int f0_14() {
   int count_0 = 0;
   for (int pos_4 = OrdersTotal() - 1; pos_4 >= 0; pos_4--) {
      OrderSelect(pos_4, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_SELLSTOP) count_0++;
      }
   }
   return (count_0);
}

// 447A9A1E2FFBDD7DC213BA63180F23CB
double f0_12() {
   double Ld_ret_0 = 0;
   for (int pos_8 = OrdersTotal() - 1; pos_8 >= 0; pos_8--) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_BUYSTOP) Ld_ret_0 += OrderLots();
      }
   }
   return (Ld_ret_0);
}

// 98BFC4410FFA0503D9FC511048F2D2EE
double f0_21() {
   double Ld_ret_0 = 0;
   for (int pos_8 = OrdersTotal() - 1; pos_8 >= 0; pos_8--) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_SELLSTOP) Ld_ret_0 += OrderLots();
      }
   }
   return (Ld_ret_0);
}

// 42994A6C2030E46EBC3EEA0889EC2AFE
int f0_11() {
   int count_0 = 0;
   for (int pos_4 = OrdersTotal() - 1; pos_4 >= 0; pos_4--) {
      OrderSelect(pos_4, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_BUYLIMIT) count_0++;
      }
   }
   return (count_0);
}

// 6910875A7D149D336C05ECE877F70528
int f0_16() {
   int count_0 = 0;
   for (int pos_4 = OrdersTotal() - 1; pos_4 >= 0; pos_4--) {
      OrderSelect(pos_4, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_SELLLIMIT) count_0++;
      }
   }
   return (count_0);
}

// 1BBBF0E1D97A25931D4E002E3350BF3D
double f0_2() {
   double Ld_ret_0 = 0;
   for (int pos_8 = OrdersTotal() - 1; pos_8 >= 0; pos_8--) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_BUYLIMIT) Ld_ret_0 += OrderLots();
      }
   }
   return (Ld_ret_0);
}

// 466065BEE70A1EED6AD712B897E8C03E
double f0_13() {
   double Ld_ret_0 = 0;
   for (int pos_8 = OrdersTotal() - 1; pos_8 >= 0; pos_8--) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_TRADES);
      if (OrderSymbol() == Symbol()) {
         if (OrderSymbol() == Symbol())
            if (OrderType() == OP_SELLLIMIT) Ld_ret_0 += OrderLots();
      }
   }
   return (Ld_ret_0);
}

// C35F03BC6946F29576213CB29AF19291
double f0_24() {
   Gd_112 = 0;
   double Ld_ret_0 = 0;
   for (int pos_8 = 0; pos_8 < OrdersHistoryTotal(); pos_8++) {
      OrderSelect(pos_8, SELECT_BY_POS, MODE_HISTORY);
      if (OrderType() == OP_BUY && 1) Gd_112 += OrderLots();
   }
   Ld_ret_0 = Gd_112 * MoneyPerLot;
   return (Ld_ret_0);
}

// 03A0368D6E45543A04F25987910062D6
void f0_0() {
   double Ld_0 = ObjectGet(Gs_400 + Gs_580 + "UPAR" + Gi_612, OBJPROP_PRICE1);
   if (Close[0] > Ld_0 && Ld_0 > Gd_564) {
      if (alertpopup) Alert(G_symbol_556 + " " + f0_23(G_timeframe_576) + " Supply Zone Entered at " + DoubleToStr(Ld_0, Digits));
      PlaySound(alertsound);
      Gi_612++;
   }
   Ld_0 = ObjectGet(Gs_400 + Gs_580 + "DNAR" + Gi_616, OBJPROP_PRICE1);
   if (Close[0] < Ld_0) {
      Alert(G_symbol_556 + " " + f0_23(G_timeframe_576) + " Demand Zone Entered at " + DoubleToStr(Ld_0, Digits));
      PlaySound(alertsound);
      Gi_616++;
   }
}

// 2D03C2D5A7EC65EF4619E0582C272EC2
void f0_4() {
   int count_24;
   int count_28;
   color color_32;
   string name_36;
   bool Li_44;
   bool Li_48;
   bool Li_60;
   bool Li_64;
   double Ld_68;
   double price_76;
   double price_84;
   int Li_92;
   int Li_96;
   int Li_100;
   int Li_104;
   int arr_size_112;
   bool Li_0 = FALSE;
   bool Li_4 = FALSE;
   int index_8 = 0;
   int index_12 = 0;
   bool Li_56 = FALSE;
   bool Li_52 = FALSE;
   G_count_604 = 0;
   G_count_608 = 0;
   Gd_588 = 0;
   Gd_596 = 0;
   for (int Li_16 = 0; Li_16 < iBars(G_symbol_556, G_timeframe_576); Li_16++) {
      if (G_ibuf_364[Li_16] > Gd_564) {
         Li_60 = FALSE;
         Li_64 = FALSE;
         G_datetime_532 = iTime(G_symbol_556, G_timeframe_576, Li_16);
         G_time_536 = Time[0];
         Gd_548 = MathMin(iClose(G_symbol_556, G_timeframe_576, Li_16), iOpen(G_symbol_556, G_timeframe_576, Li_16));
         if (Li_16 > 0) Gd_548 = MathMax(Gd_548, MathMax(iLow(G_symbol_556, G_timeframe_576, Li_16 - 1), iLow(G_symbol_556, G_timeframe_576, Li_16 + 1)));
         if (Li_16 > 0) Gd_548 = MathMax(Gd_548, MathMin(iOpen(G_symbol_556, G_timeframe_576, Li_16 - 1), iClose(G_symbol_556, G_timeframe_576, Li_16 - 1)));
         Gd_548 = MathMax(Gd_548, MathMin(iOpen(G_symbol_556, G_timeframe_576, Li_16 + 1), iClose(G_symbol_556, G_timeframe_576, Li_16 + 1)));
         Li_48 = TRUE;
         if (recolorretouch || (!solidretouch)) {
            Li_44 = FALSE;
            for (int Li_20 = Li_16; Li_20 >= 0; Li_20--) {
               if (Li_20 == 0 && (!Li_44)) {
                  Li_48 = FALSE;
                  break;
               }
               if ((!Li_44) && iHigh(G_symbol_556, G_timeframe_576, Li_20) < Gd_548) Li_44 = TRUE;
               else {
                  if (Li_44 && iHigh(G_symbol_556, G_timeframe_576, Li_20) > Gd_548) {
                     Li_60 = TRUE;
                     if (!(zonefibs && Li_0 == FALSE)) break;
                     Gd_588 = Gd_548;
                     Li_0 = Li_20;
                     break;
                  }
               }
            }
         }
         if (G_count_604 != 0) Ld_68 = ObjectGet(Gs_580 + "UPZONE" + G_count_604, OBJPROP_PRICE2);
         else Ld_68 = 0;
         if (drawzones && Li_48 && G_ibuf_364[Li_16] != Ld_68) {
            Li_64 = TRUE;
            color_32 = colorsupstrong;
            if (zonestrength && Li_60 || (!recolorretouch)) {
               count_24 = 0;
               count_28 = 0;
               for (Li_20 = Li_16; Li_20 < 1000000; Li_20++) {
                  if (iHigh(G_symbol_556, G_timeframe_576, Li_20 + 1) < Gd_548) count_24++;
                  if (iHigh(G_symbol_556, G_timeframe_576, Li_20 + 1) > G_ibuf_364[Li_16]) count_28++;
                  if (count_24 > 1) break;
                  if (count_28 > 1) {
                     color_32 = colorsupweak;
                     if (!(noweakzones)) break;
                     Li_48 = FALSE;
                     break;
                  }
               }
            }
            if (Li_48) {
               if (recolorretouch && Li_60 && count_28 < 2) color_32 = colorsupretouch;
               else
                  if (recolorweakretouch && Li_60 && count_28 > 1) color_32 = colorsupretouch;
               G_count_604++;
               if (drawedgeprice) {
                  name_36 = Gs_400 + Gs_580 + "UPAR" + G_count_604;
                  ObjectCreate(name_36, OBJ_ARROW, 0, 0, 0);
                  ObjectSet(name_36, OBJPROP_ARROWCODE, SYMBOL_RIGHTPRICE);
                  ObjectSet(name_36, OBJPROP_TIME1, G_time_536);
                  ObjectSet(name_36, OBJPROP_PRICE1, Gd_548);
                  ObjectSet(name_36, OBJPROP_COLOR, color_32);
                  ObjectSet(name_36, OBJPROP_WIDTH, Price_Width);
                  if (limitzonevis) ObjectSet(name_36, OBJPROP_TIMEFRAMES, Gi_472);
               }
               name_36 = Gs_400 + Gs_580 + "UPZONE" + G_count_604;
               ObjectCreate(name_36, OBJ_RECTANGLE, 0, 0, 0, 0, 0);
               ObjectSet(name_36, OBJPROP_TIME1, G_datetime_532);
               ObjectSet(name_36, OBJPROP_PRICE1, G_ibuf_364[Li_16]);
               ObjectSet(name_36, OBJPROP_TIME2, G_time_536);
               ObjectSet(name_36, OBJPROP_PRICE2, Gd_548);
               ObjectSet(name_36, OBJPROP_COLOR, color_32);
               ObjectSet(name_36, OBJPROP_BACK, TRUE);
               if (limitzonevis) ObjectSet(name_36, OBJPROP_TIMEFRAMES, Gi_472);
               if (!solidzones) {
                  ObjectSet(name_36, OBJPROP_BACK, FALSE);
                  ObjectSet(name_36, OBJPROP_WIDTH, zonewidth);
               }
               if ((!solidretouch) && Li_60) {
                  ObjectSet(name_36, OBJPROP_BACK, FALSE);
                  ObjectSet(name_36, OBJPROP_WIDTH, zonewidth);
               }
               if (globals) {
                  GlobalVariableSet(Gs_580 + "S.PH" + G_count_604, G_ibuf_364[Li_16]);
                  GlobalVariableSet(Gs_580 + "S.PL" + G_count_604, Gd_548);
                  GlobalVariableSet(Gs_580 + "S.T" + G_count_604, iTime(G_symbol_556, G_timeframe_576, Li_16));
               }
               if ((!Li_56) && color_32 != colordemretouch) {
                  Li_56 = TRUE;
                  GlobalVariableSet(Gs_580 + "GOSHORT", Gd_548);
               }
            }
         }
         if (Li_48 && index_8 < 4 && HUDon && Li_64) {
            if (index_8 == 0) Gd_376 = G_ibuf_364[Li_16] - Gd_548;
            Gda_368[index_8] = Gd_548;
            index_8++;
         }
      }
      if (G_ibuf_360[Li_16] > Gd_564) {
         Li_60 = FALSE;
         Li_64 = FALSE;
         G_datetime_532 = iTime(G_symbol_556, G_timeframe_576, Li_16);
         G_time_536 = Time[0];
         Gd_548 = MathMax(iClose(G_symbol_556, G_timeframe_576, Li_16), iOpen(G_symbol_556, G_timeframe_576, Li_16));
         if (Li_16 > 0) Gd_548 = MathMin(Gd_548, MathMin(iHigh(G_symbol_556, G_timeframe_576, Li_16 + 1), iHigh(G_symbol_556, G_timeframe_576, Li_16 - 1)));
         if (Li_16 > 0) Gd_548 = MathMin(Gd_548, MathMax(iOpen(G_symbol_556, G_timeframe_576, Li_16 - 1), iClose(G_symbol_556, G_timeframe_576, Li_16 - 1)));
         Gd_548 = MathMin(Gd_548, MathMax(iOpen(G_symbol_556, G_timeframe_576, Li_16 + 1), iClose(G_symbol_556, G_timeframe_576, Li_16 + 1)));
         color_32 = colordemstrong;
         Li_48 = TRUE;
         if (recolorretouch || (!solidretouch)) {
            Li_44 = FALSE;
            for (Li_20 = Li_16; Li_20 >= 0; Li_20--) {
               if (Li_20 == 0 && (!Li_44)) {
                  Li_48 = FALSE;
                  break;
               }
               if ((!Li_44) && iLow(G_symbol_556, G_timeframe_576, Li_20) > Gd_548) Li_44 = TRUE;
               else {
                  if (Li_44 && iLow(G_symbol_556, G_timeframe_576, Li_20) < Gd_548) {
                     Li_60 = TRUE;
                     if (!(zonefibs && Li_4 == FALSE)) break;
                     Gd_596 = Gd_548;
                     Li_4 = Li_20;
                     break;
                  }
               }
            }
         }
         if (G_count_608 != 0) Ld_68 = ObjectGet(Gs_580 + "DNZONE" + G_count_608, OBJPROP_PRICE2);
         else Ld_68 = 0;
         if (drawzones && Li_48 && G_ibuf_360[Li_16] != Ld_68) {
            Li_64 = TRUE;
            if (zonestrength && Li_60 || (!recolorretouch)) {
               count_24 = 0;
               count_28 = 0;
               for (Li_20 = Li_16; Li_20 < 1000000; Li_20++) {
                  if (iLow(G_symbol_556, G_timeframe_576, Li_20 + 1) > Gd_548) count_24++;
                  if (iLow(G_symbol_556, G_timeframe_576, Li_20 + 1) < G_ibuf_360[Li_16]) count_28++;
                  if (count_24 > 1) break;
                  if (count_28 > 1) {
                     if (noweakzones) Li_48 = FALSE;
                     color_32 = colordemweak;
                     break;
                  }
               }
            }
            if (Li_48) {
               if (recolorretouch && Li_60 && count_28 < 2) color_32 = colordemretouch;
               else
                  if (recolorweakretouch && Li_60 && count_28 > 1) color_32 = colordemretouch;
               G_count_608++;
               if (drawedgeprice) {
                  name_36 = Gs_400 + Gs_580 + "DNAR" + G_count_608;
                  ObjectCreate(name_36, OBJ_ARROW, 0, 0, 0);
                  ObjectSet(name_36, OBJPROP_ARROWCODE, SYMBOL_RIGHTPRICE);
                  ObjectSet(name_36, OBJPROP_TIME1, G_time_536);
                  ObjectSet(name_36, OBJPROP_PRICE1, Gd_548);
                  ObjectSet(name_36, OBJPROP_COLOR, color_32);
                  ObjectSet(name_36, OBJPROP_WIDTH, Price_Width);
                  if (limitzonevis) ObjectSet(name_36, OBJPROP_TIMEFRAMES, Gi_472);
               }
               name_36 = Gs_400 + Gs_580 + "DNZONE" + G_count_608;
               ObjectCreate(name_36, OBJ_RECTANGLE, 0, 0, 0, 0, 0);
               ObjectSet(name_36, OBJPROP_TIME1, G_datetime_532);
               ObjectSet(name_36, OBJPROP_PRICE1, Gd_548);
               ObjectSet(name_36, OBJPROP_TIME2, G_time_536);
               ObjectSet(name_36, OBJPROP_PRICE2, G_ibuf_360[Li_16]);
               ObjectSet(name_36, OBJPROP_COLOR, color_32);
               ObjectSet(name_36, OBJPROP_BACK, TRUE);
               if (limitzonevis) ObjectSet(name_36, OBJPROP_TIMEFRAMES, Gi_472);
               if (!solidzones) {
                  ObjectSet(name_36, OBJPROP_BACK, FALSE);
                  ObjectSet(name_36, OBJPROP_WIDTH, zonewidth);
               }
               if ((!solidretouch) && Li_60) {
                  ObjectSet(name_36, OBJPROP_BACK, FALSE);
                  ObjectSet(name_36, OBJPROP_WIDTH, zonewidth);
               }
               if (globals) {
                  GlobalVariableSet(Gs_580 + "D.PL" + G_count_608, G_ibuf_360[Li_16]);
                  GlobalVariableSet(Gs_580 + "D.PH" + G_count_608, Gd_548);
                  GlobalVariableSet(Gs_580 + "D.T" + G_count_608, iTime(G_symbol_556, G_timeframe_576, Li_16));
               }
               if ((!Li_52) && color_32 != colordemretouch) {
                  Li_52 = TRUE;
                  GlobalVariableSet(Gs_580 + "GOLONG", Gd_548);
               }
            }
         }
         if (Li_48 && index_12 < 4 && HUDon && Li_64) {
            if (index_12 == 0) Gd_384 = Gd_548 - G_ibuf_360[Li_16];
            Gda_372[index_12] = Gd_548;
            index_12++;
         }
      }
   }
   if (zonefibs || HUDon) {
      Li_92 = 0;
      Li_96 = 0;
      Li_100 = 0;
      Li_104 = 0;
      for (Li_16 = 0; Li_16 < 100000; Li_16++) {
         if (iHigh(G_symbol_556, G_timeframe_576, Li_16) > Gd_588 && Li_96 == 0) Li_96 = Li_16;
         if (iHigh(G_symbol_556, G_timeframe_576, Li_16) > Gda_368[0] && Li_104 == 0) Li_104 = Li_16;
         if (iLow(G_symbol_556, G_timeframe_576, Li_16) < Gd_596 && Li_92 == 0) Li_92 = Li_16;
         if (iLow(G_symbol_556, G_timeframe_576, Li_16) < Gda_372[0] && Li_100 == 0) Li_100 = Li_16;
         if (Li_96 != 0 && Li_104 != 0 && Li_92 != 0 && Li_100 != 0) break;
      }
   }
   if (zonefibs) {
      if (Li_92 < Li_96) {
         price_84 = Gd_596;
         price_76 = Gda_368[0];
      } else {
         price_84 = Gd_588;
         price_76 = Gda_372[0];
      }
      name_36 = Gs_400 + Gs_580 + "FIBO";
      ObjectCreate(name_36, OBJ_FIBO, 0, Time[0], price_76, Time[0], price_84);
      ObjectSet(name_36, OBJPROP_COLOR, CLR_NONE);
      ObjectSet(name_36, OBJPROP_STYLE, fibstyle);
      ObjectSet(name_36, OBJPROP_RAY, TRUE);
      ObjectSet(name_36, OBJPROP_BACK, TRUE);
      if (limitzonevis) ObjectSet(name_36, OBJPROP_TIMEFRAMES, Gi_472);
      arr_size_112 = ArraySize(Gda_636);
      ObjectSet(name_36, OBJPROP_FIBOLEVELS, arr_size_112);
      ObjectSet(name_36, OBJPROP_LEVELCOLOR, colorfib);
      for (Li_20 = 0; Li_20 < arr_size_112; Li_20++) {
         ObjectSet(name_36, Li_20 + 210, Gda_636[Li_20]);
         ObjectSetFiboDescription(name_36, Li_20, Gsa_640[Li_20]);
      }
   }
   if (HUDon) {
      if (Li_100 < Li_104) {
         price_84 = Gda_372[0];
         price_76 = Gda_368[0];
         Gs_460 = CharToStr(Gi_436);
         G_color_468 = colorarrowup;
      } else {
         price_84 = Gda_368[0];
         price_76 = Gda_372[0];
         Gs_460 = CharToStr(Gi_440);
         G_color_468 = colorarrowdn;
      }
      Gd_504 = MathMin(price_76, price_84);
      Gd_512 = MathMax(price_76, price_84);
   }
}

// 09470FB701C11F8B07320EA009403A60
int f0_1() {
   if (iTime(G_symbol_556, G_timeframe_576, 0) + timeoffset != Gi_728) {
      Gi_728 = iTime(G_symbol_556, G_timeframe_576, 0) + timeoffset;
      return (1);
   }
   return (0);
}

// 3B6B0C1FF666CC49A2DCBDC950C224CE
void f0_6(string As_0) {
   string name_16;
   int str_len_8 = StringLen(As_0);
   int Li_12 = 0;
   while (Li_12 < ObjectsTotal()) {
      name_16 = ObjectName(Li_12);
      if (StringSubstr(name_16, 0, str_len_8) != As_0) Li_12++;
      else ObjectDelete(name_16);
   }
}

// 3CA4C22A90227AC4A7684A00FAEE2BA5
int f0_7(double &Ada_0[], double &Ada_4[], int Ai_8, int Ai_12, int Ai_16) {
   double Ld_36;
   double Ld_44;
   double Ld_52;
   double Ld_60;
   double Ld_68;
   double Ld_76;
   int Li_84 = iBars(G_symbol_556, G_timeframe_576) - Ai_8;
   for (int Li_20 = Li_84; Li_20 >= 0; Li_20--) {
      Ld_36 = iLow(G_symbol_556, G_timeframe_576, iLowest(G_symbol_556, G_timeframe_576, MODE_LOW, Ai_8, Li_20));
      if (Ld_36 == Ld_76) Ld_36 = 0.0;
      else {
         Ld_76 = Ld_36;
         if (iLow(G_symbol_556, G_timeframe_576, Li_20) - Ld_36 > Ai_12 * Point) Ld_36 = 0.0;
         else {
            for (int Li_24 = 1; Li_24 <= Ai_16; Li_24++) {
               Ld_44 = Ada_0[Li_20 + Li_24];
               if (Ld_44 != 0.0 && Ld_44 > Ld_36) Ada_0[Li_20 + Li_24] = 0.0;
            }
         }
      }
      Ada_0[Li_20] = Ld_36;
      Ld_36 = iHigh(G_symbol_556, G_timeframe_576, iHighest(G_symbol_556, G_timeframe_576, MODE_HIGH, Ai_8, Li_20));
      if (Ld_36 == Ld_68) Ld_36 = 0.0;
      else {
         Ld_68 = Ld_36;
         if (Ld_36 - iHigh(G_symbol_556, G_timeframe_576, Li_20) > Ai_12 * Point) Ld_36 = 0.0;
         else {
            for (Li_24 = 1; Li_24 <= Ai_16; Li_24++) {
               Ld_44 = Ada_4[Li_20 + Li_24];
               if (Ld_44 != 0.0 && Ld_44 < Ld_36) Ada_4[Li_20 + Li_24] = 0.0;
            }
         }
      }
      Ada_4[Li_20] = Ld_36;
   }
   Ld_68 = -1;
   int Li_28 = -1;
   Ld_76 = -1;
   int Li_32 = -1;
   for (Li_20 = Li_84; Li_20 >= 0; Li_20--) {
      Ld_52 = Ada_0[Li_20];
      Ld_60 = Ada_4[Li_20];
      if (Ld_52 == 0.0 && Ld_60 == 0.0) continue;
      if (Ld_60 != 0.0) {
         if (Ld_68 > 0.0) {
            if (Ld_68 < Ld_60) Ada_4[Li_28] = 0;
            else Ada_4[Li_20] = 0;
         }
         if (Ld_68 < Ld_60 || Ld_68 < 0.0) {
            Ld_68 = Ld_60;
            Li_28 = Li_20;
         }
         Ld_76 = -1;
      }
      if (Ld_52 != 0.0) {
         if (Ld_76 > 0.0) {
            if (Ld_76 > Ld_52) Ada_0[Li_32] = 0;
            else Ada_0[Li_20] = 0;
         }
         if (Ld_52 < Ld_76 || Ld_76 < 0.0) {
            Ld_76 = Ld_52;
            Li_32 = Li_20;
         }
         Ld_68 = -1;
      }
   }
   for (Li_20 = iBars(G_symbol_556, G_timeframe_576) - 1; Li_20 >= 0; Li_20--) {
      if (Li_20 >= Li_84) Ada_0[Li_20] = 0.0;
      else {
         Ld_44 = Ada_4[Li_20];
         if (Ld_44 != 0.0) Ada_4[Li_20] = Ld_44;
      }
   }
   return (0);
}

// 9F1BFF196B458CFDFF8DE3A24AAFEA26
void f0_22(double &Ada_0[], double &Ada_4[]) {
   Gd_620 = 0;
   int Li_8 = 0;
   Gd_628 = 0;
   int Li_12 = 0;
   double Ld_16 = 0;
   double Ld_24 = 0;
   double Ld_32 = 0;
   double Ld_40 = 0;
   double Ld_48 = 0;
   double Ld_56 = 0;
   for (int Li_64 = 0; Li_64 < iBars(G_symbol_556, G_timeframe_576); Li_64++) {
      if (Ada_0[Li_64] > 0.0) {
         Gd_620 = Ada_0[Li_64];
         Ld_24 = Ada_0[Li_64];
         Ld_32 = Ld_24;
         break;
      }
   }
   for (Li_64 = 0; Li_64 < iBars(G_symbol_556, G_timeframe_576); Li_64++) {
      if (Ada_4[Li_64] > 0.0) {
         Gd_628 = Ada_4[Li_64];
         Ld_16 = Ada_4[Li_64];
         Ld_40 = Ld_16;
         break;
      }
   }
   for (Li_64 = 0; Li_64 < iBars(G_symbol_556, G_timeframe_576); Li_64++) {
      if (Ada_4[Li_64] >= Ld_40) {
         Ld_40 = Ada_4[Li_64];
         Li_12 = Li_64;
      } else Ada_4[Li_64] = 0.0;
      if (Ada_4[Li_64] <= Gd_628 && Ada_0[Li_64] > 0.0) Ada_4[Li_64] = 0.0;
      if (Ada_0[Li_64] <= Ld_32 && Ada_0[Li_64] > 0.0) {
         Ld_32 = Ada_0[Li_64];
         Li_8 = Li_64;
      } else Ada_0[Li_64] = 0.0;
      if (Ada_0[Li_64] > Gd_620) Ada_0[Li_64] = 0.0;
   }
   Ld_48 = MathMin(iOpen(G_symbol_556, G_timeframe_576, Li_12), iClose(G_symbol_556, G_timeframe_576, Li_12));
   Ld_56 = MathMax(iOpen(G_symbol_556, G_timeframe_576, Li_8), iClose(G_symbol_556, G_timeframe_576, Li_8));
   for (Li_64 = MathMax(Li_8, Li_12); Li_64 >= 0; Li_64--) {
      if (Ada_4[Li_64] > Ld_48 && Ada_4[Li_64] != Ld_40) Ada_4[Li_64] = 0.0;
      else {
         if (Ada_4[Li_64] > 0.0) {
            Ld_40 = Ada_4[Li_64];
            Ld_48 = MathMin(iClose(G_symbol_556, G_timeframe_576, Li_64), iOpen(G_symbol_556, G_timeframe_576, Li_64));
            if (Li_64 > 0) Ld_48 = MathMax(Ld_48, MathMax(iLow(G_symbol_556, G_timeframe_576, Li_64 - 1), iLow(G_symbol_556, G_timeframe_576, Li_64 + 1)));
            if (Li_64 > 0) Ld_48 = MathMax(Ld_48, MathMin(iOpen(G_symbol_556, G_timeframe_576, Li_64 - 1), iClose(G_symbol_556, G_timeframe_576, Li_64 - 1)));
            Ld_48 = MathMax(Ld_48, MathMin(iOpen(G_symbol_556, G_timeframe_576, Li_64 + 1), iClose(G_symbol_556, G_timeframe_576, Li_64 + 1)));
         }
      }
      if (Ada_0[Li_64] <= Ld_56 && Ada_0[Li_64] > 0.0 && Ada_0[Li_64] != Ld_32) Ada_0[Li_64] = 0.0;
      else {
         if (Ada_0[Li_64] > 0.0) {
            Ld_32 = Ada_0[Li_64];
            Ld_56 = MathMax(iClose(G_symbol_556, G_timeframe_576, Li_64), iOpen(G_symbol_556, G_timeframe_576, Li_64));
            if (Li_64 > 0) Ld_56 = MathMin(Ld_56, MathMin(iHigh(G_symbol_556, G_timeframe_576, Li_64 + 1), iHigh(G_symbol_556, G_timeframe_576, Li_64 - 1)));
            if (Li_64 > 0) Ld_56 = MathMin(Ld_56, MathMax(iOpen(G_symbol_556, G_timeframe_576, Li_64 - 1), iClose(G_symbol_556, G_timeframe_576, Li_64 - 1)));
            Ld_56 = MathMin(Ld_56, MathMax(iOpen(G_symbol_556, G_timeframe_576, Li_64 + 1), iClose(G_symbol_556, G_timeframe_576, Li_64 + 1)));
         }
      }
   }
}

// D2D84C1FC4F2D5D5F1C43BDB29DC236F
void f0_26() {
   string Ls_0 = f0_23(G_timeframe_576);
   string dbl2str_8 = DoubleToStr(ObjectGet(Gs_400 + Gs_580 + "UPAR" + 1, OBJPROP_PRICE1), Digits);
   string dbl2str_16 = DoubleToStr(ObjectGet(Gs_400 + Gs_580 + "DNAR" + 1, OBJPROP_PRICE1), Digits);
   string Ls_24 = "b";
   f0_25(Ls_24, Ls_0, Gi_660, Gi_664, colorHUDtf, Gs_412, Gi_420, cornerHUD);
   f0_25(Ls_24, Gs_460, Gi_652, Gi_656, G_color_468, Gs_444, Gi_452, cornerHUD, 0, 1);
   f0_25(Ls_24, dbl2str_8, Gi_668, Gi_672, colorsupstrong, Gs_424, Gi_432, cornerHUD);
   f0_25(Ls_24, dbl2str_16, Gi_676, Gi_680, colordemstrong, Gs_424, Gi_432, cornerHUD);
   Ls_24 = "a";
   f0_25(Ls_24, Ls_0, Gi_700, Gi_704, colorshadow, Gs_412, Gi_420, cornerHUD);
   f0_25(Ls_24, Gs_460, Gi_692, Gi_696, colorshadow, Gs_444, Gi_452, cornerHUD, 0, 1);
   f0_25(Ls_24, dbl2str_8, Gi_708, Gi_712, colorshadow, Gs_424, Gi_432, cornerHUD);
   f0_25(Ls_24, dbl2str_16, Gi_716, Gi_720, colorshadow, Gs_424, Gi_432, cornerHUD);
}

// EBF5AFCC653FE82BBC750E25B74931F9
void f0_27() {
   int Li_0 = 0;
   int Li_4 = 0;
   double Ld_8 = 0.0;
   string str_concat_16 = "";
   string Ls_24 = "";
   string name_32 = Gs_392 + Gs_580 + "btimerback";
   if (ObjectFind(name_32) == -1) {
      ObjectCreate(name_32, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_32, OBJPROP_XDISTANCE, G_x_644);
      ObjectSet(name_32, OBJPROP_YDISTANCE, G_y_648);
      ObjectSet(name_32, OBJPROP_CORNER, cornerHUD);
      ObjectSet(name_32, OBJPROP_ANGLE, G_angle_476);
      ObjectSetText(name_32, Gs_484, G_fontsize_500, G_fontname_492, colortimerback);
   }
   Li_4 = TimeCurrent() - iTime(G_symbol_556, G_timeframe_576, 0);
   Li_0 = (G_str_len_480 - 1) * Li_4 / (60 * G_timeframe_576);
   Ld_8 = 100 - 100.0 * Li_4 / (60 * G_timeframe_576);
   if (Li_0 > G_str_len_480 - 1) Li_0 = G_str_len_480 - 1;
   if (Li_0 < G_str_len_480 - 1) Ls_24 = StringSubstr(Gs_484, Li_0 + 1, G_str_len_480 - Li_0 - 1);
   str_concat_16 = StringConcatenate("|", Ls_24);
   name_32 = Gs_392 + Gs_580 + "timerfront";
   if (ObjectFind(name_32) == -1) {
      ObjectCreate(name_32, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_32, OBJPROP_XDISTANCE, G_x_644);
      ObjectSet(name_32, OBJPROP_YDISTANCE, G_y_648);
      ObjectSet(name_32, OBJPROP_CORNER, cornerHUD);
      ObjectSet(name_32, OBJPROP_ANGLE, G_angle_476);
   }
   ObjectSetText(name_32, str_concat_16, G_fontsize_500, G_fontname_492, colortimerbar);
}

// CC0E6ACC657AB511326581BDF1677E0A
void f0_25(string As_0, string A_text_8, int A_x_16, int A_y_20, color A_color_24, string A_fontname_28, int A_fontsize_36, int A_corner_40 = 0, int A_angle_44 = 0, bool Ai_48 = FALSE) {
   string name_52 = Gs_392 + Gs_580 + As_0 + A_x_16 + A_y_20;
   ObjectDelete(name_52);
   ObjectCreate(name_52, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(name_52, A_text_8, A_fontsize_36, A_fontname_28, A_color_24);
   ObjectSet(name_52, OBJPROP_XDISTANCE, A_x_16);
   ObjectSet(name_52, OBJPROP_YDISTANCE, A_y_20);
   ObjectSet(name_52, OBJPROP_CORNER, A_corner_40);
   ObjectSet(name_52, OBJPROP_ANGLE, A_angle_44);
   if (Ai_48) ObjectSet(name_52, OBJPROP_BACK, TRUE);
}

// BE5275EB85F7B577DA8FD065F994B740
string f0_23(int Ai_0) {
   string Ls_ret_4;
   switch (Ai_0) {
   case 1:
      Ls_ret_4 = "M1";
      break;
   case 5:
      Ls_ret_4 = "M5";
      break;
   case 15:
      Ls_ret_4 = "M15";
      break;
   case 30:
      Ls_ret_4 = "M30";
      break;
   case 60:
      Ls_ret_4 = "H1";
      break;
   case 240:
      Ls_ret_4 = "H4";
      break;
   case 1440:
      Ls_ret_4 = "D1";
      break;
   case 10080:
      Ls_ret_4 = "W1";
      break;
   case 43200:
      Ls_ret_4 = "MN";
   }
   return (Ls_ret_4);
}

// 418B87914DA4A0E38B4B351567718E46
void f0_9() {
   switch (G_timeframe_576) {
   case PERIOD_M1:
      Gi_408 = 7;
      break;
   case PERIOD_M5:
      Gi_408 = 7;
      break;
   case PERIOD_M15:
      Gi_408 = 3;
      break;
   case PERIOD_M30:
      Gi_408 = 2;
      break;
   case PERIOD_H1:
      Gi_408 = 12;
      break;
   case PERIOD_H4:
      Gi_408 = 8;
      break;
   case PERIOD_D1:
      Gi_408 = 12;
      break;
   case PERIOD_W1:
      Gi_408 = 8;
      break;
   case PERIOD_MN1:
      Gi_408 = 7;
   }
   if (cornerHUD > 3) cornerHUD = 0;
   if (cornerHUD == 0 || cornerHUD == 2) G_angle_476 = 90;
   switch (cornerHUD) {
   case 0:
      Gi_660 = posx - Gi_408 + 10;
      Gi_664 = posy + 18;
      Gi_652 = posx - 2;
      Gi_656 = posy + 7;
      Gi_668 = posx;
      Gi_672 = posy;
      Gi_676 = posx;
      Gi_680 = posy + 56;
      G_x_644 = posx + 50;
      G_y_648 = posy + 72;
      Gi_700 = Gi_660 + 1;
      Gi_704 = Gi_664 + 1;
      Gi_692 = Gi_652 + 1;
      Gi_696 = Gi_656 + 1;
      Gi_708 = Gi_668 + 1;
      Gi_712 = Gi_672 + 1;
      Gi_716 = Gi_676 + 1;
      Gi_720 = Gi_680 + 1;
      return;
   case 1:
      Gi_660 = posx + Gi_408;
      Gi_664 = posy + 18;
      Gi_652 = posx + 2;
      Gi_656 = posy + 7;
      Gi_668 = posx;
      Gi_672 = posy;
      Gi_676 = posx;
      Gi_680 = posy + 56;
      G_x_644 = posx - 15;
      G_y_648 = posy + 71;
      Gi_700 = Gi_660 - 1;
      Gi_704 = Gi_664 + 1;
      Gi_692 = Gi_652 - 1;
      Gi_696 = Gi_656 + 1;
      Gi_708 = Gi_668 - 1;
      Gi_712 = Gi_672 + 1;
      Gi_716 = Gi_676 - 1;
      Gi_720 = Gi_680 + 1;
      return;
   case 2:
      Gi_660 = posx - Gi_408;
      Gi_664 = posy + 20;
      Gi_652 = posx - 2;
      Gi_656 = posy + 7;
      Gi_668 = posx;
      Gi_672 = posy + 56;
      Gi_676 = posx;
      Gi_680 = posy;
      G_x_644 = posx + 62;
      G_y_648 = posy + 3;
      Gi_700 = Gi_660 + 1;
      Gi_704 = Gi_664 - 1;
      Gi_692 = Gi_652 + 1;
      Gi_696 = Gi_656 - 1;
      Gi_708 = Gi_668 + 1;
      Gi_712 = Gi_672 - 1;
      Gi_716 = Gi_676 + 1;
      Gi_720 = Gi_680 - 1;
      return;
   case 3:
      Gi_660 = posx + Gi_408;
      Gi_664 = posy + 20;
      Gi_652 = posx + 2;
      Gi_656 = posy + 7;
      Gi_668 = posx;
      Gi_672 = posy + 56;
      Gi_676 = posx;
      Gi_680 = posy;
      G_x_644 = posx - 2;
      G_y_648 = posy + 3;
      Gi_700 = Gi_660 - 1;
      Gi_704 = Gi_664 - 1;
      Gi_692 = Gi_652 - 1;
      Gi_696 = Gi_656 - 1;
      Gi_708 = Gi_668 - 1;
      Gi_712 = Gi_672 - 1;
      Gi_716 = Gi_676 - 1;
      Gi_720 = Gi_680 - 1;
      return;
      return;
   }
}

// 2CA1BBCFB3CDBDCAF2A1C23E3577F118
void f0_3() {
   int timeframe_0 = Period();
   Gi_472 = 0;
   if (sametfvis) {
      if (!(forcedtf == timeframe_0 || forcedtf == 0)) return;
      switch (timeframe_0) {
      case PERIOD_M1:
         Gi_472 = 1;
         return;
      case PERIOD_M5:
         Gi_472 = 2;
         return;
      case PERIOD_M15:
         Gi_472 = 4;
         return;
      case PERIOD_M30:
         Gi_472 = 8;
         return;
      case PERIOD_H1:
         Gi_472 = 16;
         return;
      case PERIOD_H4:
         Gi_472 = 32;
         return;
      case PERIOD_D1:
         Gi_472 = 64;
         return;
      case PERIOD_W1:
         Gi_472 = 128;
         return;
      case PERIOD_MN1:
         Gi_472 = 256;
         return;
      }
   }
   if (showonm1) Gi_472++;
   if (showonm5) Gi_472 += 2;
   if (showonm15) Gi_472 += 4;
   if (showonm30) Gi_472 += 8;
   if (showonh1) Gi_472 += 16;
   if (showonh4) Gi_472 += 32;
   if (showond1) Gi_472 += 64;
   if (showonw1) Gi_472 += 128;
   if (showonmn) Gi_472 += 256;
}

// 875599A8864E3CE5F5484DDC81CEAA0C
void f0_19() {
   ObjectCreate("Original", OBJ_LABEL, 0, 0, 0);
   ObjectSetText("Original", " ", 10, "Arial Bold", Red);
   ObjectSet("Original", OBJPROP_CORNER, 2);
   ObjectSet("Original", OBJPROP_XDISTANCE, 200);
   ObjectSet("Original", OBJPROP_YDISTANCE, 10);
}

// 938363B042E987609BD8B876255B9679
void f0_20() {
   color color_0;
   int Li_4 = 65280;
   if (AccountEquity() - AccountBalance() < 0.0) Li_4 = 255;
   if (Seconds() >= 0 && Seconds() < 10) color_0 = Red;
   if (Seconds() >= 10 && Seconds() < 20) color_0 = Violet;
   if (Seconds() >= 20 && Seconds() < 30) color_0 = Orange;
   if (Seconds() >= 30 && Seconds() < 40) color_0 = Blue;
   if (Seconds() >= 40 && Seconds() < 50) color_0 = Yellow;
   if (Seconds() >= 50 && Seconds() <= 59) color_0 = Aqua;
   string Ls_8 = "-------------------------------------------";
   f0_17("L01", "Arial", 9, 10, 10, Gi_104, 1, Ls_8);
   f0_17("L02", "DigifaceWide", 15, 10, 25, color_0, 1, "myACCOUNT");
   f0_17("L0i", "Mistral", 12, 10, 45, Gi_100, 1, "My Account Information");
   f0_17("L03", "Arial", 9, 10, 60, Gi_104, 1, Ls_8);
   f0_17("L04", "Arial", 9, 10, 75, Gi_108, 1, ">> Account Company  : " + AccountCompany());
   f0_17("L05", "Arial", 9, 10, 90, Gi_108, 1, ">> Name Server  : " + AccountServer());
   f0_17("L06", "Arial", 9, 10, 105, Gi_108, 1, ">> Acoount Name  : " + AccountName());
   f0_17("L07", "Arial", 9, 10, 120, Gi_108, 1, ">> Name Number  : " + AccountNumber());
   f0_17("L08", "Arial", 9, 10, 135, Gi_108, 1, ">> Account Leverage  : 1 " + AccountLeverage());
   f0_17("L09", "Arial", 9, 10, 150, Gi_108, 1, ">> Time Server  : " + TimeToStr(TimeCurrent(), TIME_DATE|TIME_SECONDS));
   f0_17("L10", "Arial", 9, 10, 165, Gi_108, 1, ">> Spread Currency  : " + DoubleToStr(MarketInfo(Symbol(), MODE_SPREAD), 0));
   f0_17("L11", "Arial", 9, 10, 180, Gi_108, 1, ">> Account Currency  : " + AccountCurrency());
   f0_17("L12", "Arial", 9, 10, 195, Gi_108, 1, ">> Account Balance  : $ " + DoubleToStr(AccountBalance(), 2));
   f0_17("L13", "Arial", 9, 10, 210, Gi_108, 1, ">> Account Equity  : $ " + DoubleToStr(AccountEquity(), 2));
   f0_17("L14", "Arial", 9, 10, 225, Gi_108, 1, ">> Free Margin  : $ " + DoubleToStr(AccountFreeMargin(), 2));
   f0_17("L15", "Arial", 9, 10, 240, Gi_108, 1, ">> Order BuyStop  : " + DoubleToStr(f0_18(), 0));
   f0_17("L16", "Arial", 9, 10, 255, Gi_108, 1, ">> Lot Order BuyStop  : " + DoubleToStr(f0_12(), 0));
   f0_17("L17", "Arial", 9, 10, 270, Gi_108, 1, ">> Order BuyLimit  : " + DoubleToStr(f0_11(), 0));
   f0_17("L18", "Arial", 9, 10, 285, Gi_108, 1, ">> Lot Order BuyLimit  : " + DoubleToStr(f0_2(), 0));
   f0_17("L19", "Arial", 9, 10, 300, Gi_108, 1, ">> Lot Buy  : " + DoubleToStr(f0_15(), 2));
   f0_17("L20", "Arial", 9, 10, 315, Gi_108, 1, ">> Order Buy  : " + DoubleToStr(f0_8(), 0));
   f0_17("L21", "Arial", 9, 10, 330, Gi_108, 1, ">> Order SellStop  : " + DoubleToStr(f0_14(), 0));
   f0_17("L22", "Arial", 9, 10, 345, Gi_108, 1, ">> Lot Order SellStop  : " + DoubleToStr(f0_21(), 0));
   f0_17("L23", "Arial", 9, 10, 360, Gi_108, 1, ">> Order SellLimit  : " + DoubleToStr(f0_16(), 0));
   f0_17("L24", "Arial", 9, 10, 375, Gi_108, 1, ">> Lot Order SellLimit  : " + DoubleToStr(f0_13(), 0));
   f0_17("L25", "Arial", 9, 10, 390, Gi_108, 1, ">> Lot Sell  : " + DoubleToStr(f0_5(), 2));
   f0_17("L26", "Arial", 9, 10, 405, Gi_108, 1, ">> Order Sell  : " + DoubleToStr(f0_10(), 0));
   f0_17("L27", "Arial", 9, 10, 420, Gi_108, 1, ">> Lot Total  : " + DoubleToStr(f0_15() + f0_5(), 2));
   f0_17("L28", "Arial", 9, 10, 435, Gi_108, 1, ">> Order Total  : " + DoubleToStr(OrdersTotal(), 0));
   f0_17("L29", "Arial", 9, 10, 450, Li_4, 1, ">> Order Profit  : $ " + DoubleToStr(OrderProfit(), 2));
   f0_17("L30", "Arial", 9, 10, 465, Li_4, 1, ">> Account Profit  : $ " + DoubleToStr(AccountProfit(), 2));
   f0_17("L31", "DigifaceWide", 15, 10, 485, color_0, 1, " REBATE  : $ " + DoubleToStr(f0_24(), 2));
   ObjectCreate("j", OBJ_LABEL, 0, 0, 0);
   ObjectSet("j", OBJPROP_CORNER, 3);
   ObjectSet("j", OBJPROP_XDISTANCE, 10);
   ObjectSet("j", OBJPROP_YDISTANCE, 10);
   ObjectSetText("j", "@ 2013 || !ALFA ROMEO Z ", 15, "Mistral", color_0);
}

// 6F434C508AD901B8667ED22F713E52BB
void f0_17(string A_name_0, string A_fontname_8, int A_fontsize_16, int A_x_20, int A_y_24, color A_color_28, int A_corner_32, string A_text_36) {
   if (ObjectFind(A_name_0) < 0) ObjectCreate(A_name_0, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(A_name_0, A_text_36, A_fontsize_16, A_fontname_8, A_color_28);
   ObjectSet(A_name_0, OBJPROP_CORNER, A_corner_32);
   ObjectSet(A_name_0, OBJPROP_XDISTANCE, A_x_20);
   ObjectSet(A_name_0, OBJPROP_YDISTANCE, A_y_24);
}

Комментарии к исходному коду форекс индикатора ! Alfa Romeo Z.mq4
В целях безопасности и борьбы со спамом в тексте комментариев запрещено размещать html-теги и ссылки. Благодарим за понимание.

  • X
  • 0% загружено
« индикатор ! 0 aVert mtf.mq4
индикатор ! T_Kiads BMI Long Mod v01.mq4 »