/*
   G e n e r a t e d  by ex4-to-mq4 decompiler FREEWARE 4.0.509.5
   Website: hTt P:/ / W ww . Me T Aq u o t Es .n Et
   E-mail : s u PpoRT@ mETAqU ot e S . Ne T
*/

#property indicator_chart_window

extern string Box_setting = "Where do you want the box?";
extern bool Show.Values.Only = FALSE;
extern int X_box = 0;
extern int Y_box = 0;
extern string MACD_settings = "=== Your 1st indicator settings ===";
extern int Fast_EMA = 5;
extern int Slow_EMA = 13;
extern int MACD_SMA = 1;
extern string Stoch_settings = "=== Your 2nd indicator settings ===";
extern int K_period = 20;
extern int D_period = 2;
extern int Slowing = 2;
extern string Colors_settings = "=== Your Colors settings ===";
extern color colorsymbol = CadetBlue;
extern color colortext = Silver;
extern color colorline = DimGray;
extern color colorvalues = Black;
extern string Alert_setting = "Pop up or/and email alert";
extern bool SignalAlert = FALSE;
extern bool SendAlertEmail = FALSE;
extern int Alert_Trigger = 75;
int Gi_180 = 0;
string Gs_184 = "";
double Gd_192;
string Gs_unused_200 = "=== Moving Average Settings ===";
int G_period_208 = 20;
int G_period_212 = 50;
int G_period_216 = 100;
int G_ma_method_220 = MODE_EMA;
int G_applied_price_224 = PRICE_CLOSE;
string Gs_unused_228 = "=== CCI Settings ===";
int G_period_236 = 14;
int G_applied_price_240 = PRICE_CLOSE;
string Gs_unused_244 = "=== MACD Settings ===";
int G_period_252 = 12;
int G_period_256 = 26;
int G_period_260 = 9;
string Gs_unused_264 = "=== ADX Settings ===";
int G_period_272 = 14;
int G_applied_price_276 = PRICE_CLOSE;
string Gs_unused_280 = "=== BULLS Settings ===";
int G_period_288 = 13;
int G_applied_price_292 = PRICE_CLOSE;
string Gs_unused_296 = "=== BEARS Settings ===";
int G_period_304 = 13;
int G_applied_price_308 = PRICE_CLOSE;
string Gs_unused_312 = "=== STOCHASTIC Settings ===";
int G_period_320 = 5;
int G_period_324 = 3;
int G_slowing_328 = 3;
string Gs_unused_332 = "=== RSI Settings ===";
int G_period_340 = 14;
string Gs_unused_344 = "=== FORCE INDEX Settings ===";
int G_period_352 = 14;
int G_ma_method_356 = MODE_SMA;
int G_applied_price_360 = PRICE_CLOSE;
string Gs_unused_364 = "=== MOMENTUM INDEX Settings ===";
int G_period_372 = 14;
int G_applied_price_376 = PRICE_CLOSE;
string Gs_unused_380 = "=== DeMARKER Settings ===";
int G_period_388 = 14;
string Gsa_392[19] = {"EURUSD", "GBPUSD", "AUDUSD", "USDJPY", "USDCHF", "USDCAD", "EURJPY", "EURGBP", "EURCHF", "EURAUD", "GBPJPY", "GBPCHF", "AUDJPY", "NZDUSD", "NZDJPY", "AUDNZD", "CHFJPY",
      "EURCAD", "AUDCAD"};
string Gsa_396[8] = {"USD", "EUR", "GBP", "CHF", "CAD", "AUD", "JPY", "NZD"};
string G_text_400;
int Gi_408;
string G_text_412;
int Gi_420;
double Gd_424;
color G_color_432;
color G_color_436;
color G_color_440;
color G_color_444;
color G_color_448;
color G_color_452;
int Gi_456;
int Gi_460;
int Gi_464;
string Gs_unused_468;

int init() {
   return (0);
}

int deinit() {
   string name_0;
   ObjectDelete("_symbol_");
   ObjectDelete("_line1");
   ObjectDelete("trend_logo_1");
   ObjectDelete("trend_logo_2");
   ObjectDelete("trend_comment_");
   ObjectDelete("prop_value");
   ObjectDelete("_line2");
   ObjectDelete("multi_logo");
   ObjectDelete("multi_logo2");
   ObjectDelete("multi_score");
   ObjectDelete("multi_comment");
   ObjectDelete("ind_logo");
   ObjectDelete("ind_logo2");
   ObjectDelete("ind_score");
   ObjectDelete("ind_comment");
   ObjectDelete("cur_logo");
   ObjectDelete("cur_logo2");
   ObjectDelete("cur_score");
   ObjectDelete("cur_comment");
   ObjectDelete("sn_logo");
   ObjectDelete("sn_logo2");
   ObjectDelete("sn_score");
   ObjectDelete("sn_comment");
   ObjectDelete("fis_logo");
   ObjectDelete("fis_logo2");
   ObjectDelete("fis_score");
   ObjectDelete("fis_comment");
   ObjectDelete("_line3");
   ObjectDelete("_line4");
   ObjectDelete("_line5");
   ObjectDelete("_line6");
   ObjectDelete("copyright");
   int objs_total_8 = ObjectsTotal();
   for (int Li_12 = objs_total_8 - 1; Li_12 >= 0; Li_12--) {
      name_0 = ObjectName(Li_12);
      if (StringFind(name_0, "back_") == 0) ObjectDelete(name_0);
   }
   DelUnauthorized();
   return (0);
}

int start() {
   double Ld_0;
   double Ld_8;
   double Ld_16;
   double Ld_24;
   double Ld_32;
   double Ld_40;
   double Ld_48;
   double Ld_56;
   double Ld_64;
   double Ld_72;
   double Ld_80;
   double Ld_88;
   double Ld_96;
   double Ld_104;
   double Ld_112;
   double Ld_120;
   double Ld_128;
   double Ld_136;
   double Ld_144;
   double Ld_152;
   double Ld_160;
   double Ld_168;
   double Ld_176;
   double Ld_184;
   double Ld_192;
   double Ld_200;
   double Ld_208;
   double Ld_216;
   double Ld_224;
   double Ld_232;
   double Ld_240;
   double Ld_248;
   double Ld_256;
   double Ld_264;
   double Ld_272;
   double Ld_280;
   double Ld_288;
   double Ld_296;
   double Ld_304;
   double Ld_312;
   double Ld_320;
   double Ld_328;
   double Ld_336;
   double Ld_344;
   double Ld_352;
   double Ld_360;
   double Ld_368;
   double Ld_376;
   double Ld_384;
   double Ld_392;
   double Ld_400;
   double Ld_408;
   double Ld_416;
   double Ld_424;
   double Ld_432;
   double Ld_440;
   double Ld_448;
   double Ld_456;
   double Ld_464;
   double Ld_472;
   double Ld_480;
   double Ld_488;
   double Ld_496;
   double Ld_504;
   double Ld_512;
   double Ld_520;
   double Ld_528;
   double Ld_536;
   double Ld_544;
   double Ld_552;
   double Ld_560;
   double Ld_568;
   double Ld_576;
   double Ld_584;
   double Ld_592;
   double Ld_600;
   double Ld_608;
   double Ld_616;
   double Ld_624;
   double Ld_632;
   double Ld_640;
   double Ld_648;
   double Ld_656;
   double Ld_664;
   double Ld_672;
   double Ld_680;
   double Ld_688;
   double Ld_696;
   double Ld_704;
   double Ld_712;
   double Ld_720;
   double Ld_728;
   double Ld_736;
   double Ld_744;
   double Ld_752;
   double Ld_760;
   double Ld_768;
   double Ld_776;
   double Ld_784;
   double Ld_792;
   double Ld_800;
   double Ld_808;
   double Ld_816;
   double Ld_824;
   double Ld_832;
   double Ld_840;
   double Ld_848;
   double Ld_856;
   double Ld_864;
   double Ld_872;
   double Ld_880;
   double Ld_888;
   double Ld_896;
   double Ld_904;
   double Ld_912;
   double Ld_920;
   double Ld_928;
   double Ld_936;
   double Ld_944;
   double Ld_952;
   double Ld_960;
   double Ld_968;
   double Ld_976;
   double Ld_984;
   double Ld_992;
   double Ld_1000;
   double Ld_1008;
   double Ld_1016;
   double Ld_1024;
   double Ld_1032;
   double Ld_1040;
   double Ld_1048;
   double Ld_1056;
   double Ld_1064;
   double Ld_1072;
   double Ld_1080;
   double Ld_1088;
   double Ld_1096;
   double Ld_1104;
   double Ld_1112;
   double Ld_1120;
   double Ld_1128;
   double Ld_1136;
   double Ld_1144;
   double Ld_1152;
   double Ld_1160;
   double Ld_1168;
   double Ld_1176;
   double Ld_1184;
   double Ld_1192;
   double Ld_1200;
   double Ld_1208;
   double Ld_1216;
   double Ld_1224;
   double Ld_1232;
   double Ld_1240;
   double Ld_1248;
   double Ld_1256;
   double Ld_1264;
   double Ld_1272;
   double Ld_1280;
   double Ld_1288;
   double Ld_1296;
   double Ld_1304;
   double Ld_1312;
   double Ld_1320;
   double Ld_1328;
   double Ld_1336;
   double Ld_1344;
   double Ld_1352;
   double Ld_1360;
   double Ld_1368;
   double Ld_1376;
   double Ld_1384;
   double Ld_1392;
   double Ld_1400;
   double Ld_1408;
   double Ld_1416;
   double Ld_1424;
   double Ld_1432;
   double Ld_1440;
   double Ld_1448;
   double Lda_2784[8];
   double Lda_2788[19];
   double Lda_2792[19];
   double Lda_2796[19];
   double Lda_2800[19];
   double Lda_2804[19];
   double Lda_2808[19];
   double Lda_2812[19];
   double Lda_2816[19];
   double Lda_2820[19];
   double Ld_2824;
   double Ld_2832;
   double Ld_2864;
   int Li_2872;
   string symbol_2876;
   string Ls_2884;
   string text_2976;
   color color_2984;
   color color_2988;
   color color_2992;
   int Li_3004;
   DelUnauthorized();
   double ima_1456 = iMA(NULL, PERIOD_M1, G_period_208, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1464 = iMA(NULL, PERIOD_M1, G_period_208, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1456 > ima_1464) {
      Ld_0 = 1;
      Ld_448 = 0;
   }
   if (ima_1456 < ima_1464) {
      Ld_0 = 0;
      Ld_448 = 1;
   }
   double ima_1472 = iMA(NULL, PERIOD_M5, G_period_208, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1480 = iMA(NULL, PERIOD_M5, G_period_208, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1472 > ima_1480) {
      Ld_8 = 1;
      Ld_456 = 0;
   }
   if (ima_1472 < ima_1480) {
      Ld_8 = 0;
      Ld_456 = 1;
   }
   double ima_1488 = iMA(NULL, PERIOD_M15, G_period_208, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1496 = iMA(NULL, PERIOD_M15, G_period_208, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1488 > ima_1496) {
      Ld_16 = 1;
      Ld_464 = 0;
   }
   if (ima_1488 < ima_1496) {
      Ld_16 = 0;
      Ld_464 = 1;
   }
   double ima_1504 = iMA(NULL, PERIOD_M30, G_period_208, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1512 = iMA(NULL, PERIOD_M30, G_period_208, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1504 > ima_1512) {
      Ld_24 = 1;
      Ld_472 = 0;
   }
   if (ima_1504 < ima_1512) {
      Ld_24 = 0;
      Ld_472 = 1;
   }
   double ima_1520 = iMA(NULL, PERIOD_H1, G_period_208, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1528 = iMA(NULL, PERIOD_H1, G_period_208, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1520 > ima_1528) {
      Ld_32 = 1;
      Ld_480 = 0;
   }
   if (ima_1520 < ima_1528) {
      Ld_32 = 0;
      Ld_480 = 1;
   }
   double ima_1536 = iMA(NULL, PERIOD_H4, G_period_208, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1544 = iMA(NULL, PERIOD_H4, G_period_208, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1536 > ima_1544) {
      Ld_40 = 1;
      Ld_488 = 0;
   }
   if (ima_1536 < ima_1544) {
      Ld_40 = 0;
      Ld_488 = 1;
   }
   double ima_1552 = iMA(NULL, PERIOD_D1, G_period_208, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1560 = iMA(NULL, PERIOD_D1, G_period_208, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1552 > ima_1560) {
      Ld_48 = 1;
      Ld_496 = 0;
   }
   if (ima_1552 < ima_1560) {
      Ld_48 = 0;
      Ld_496 = 1;
   }
   double ima_1568 = iMA(NULL, PERIOD_M1, G_period_212, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1576 = iMA(NULL, PERIOD_M1, G_period_212, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1568 > ima_1576) {
      Ld_56 = 1;
      Ld_504 = 0;
   }
   if (ima_1568 < ima_1576) {
      Ld_56 = 0;
      Ld_504 = 1;
   }
   double ima_1584 = iMA(NULL, PERIOD_M5, G_period_212, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1592 = iMA(NULL, PERIOD_M5, G_period_212, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1584 > ima_1592) {
      Ld_64 = 1;
      Ld_512 = 0;
   }
   if (ima_1584 < ima_1592) {
      Ld_64 = 0;
      Ld_512 = 1;
   }
   double ima_1600 = iMA(NULL, PERIOD_M15, G_period_212, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1608 = iMA(NULL, PERIOD_M15, G_period_212, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1600 > ima_1608) {
      Ld_72 = 1;
      Ld_520 = 0;
   }
   if (ima_1600 < ima_1608) {
      Ld_72 = 0;
      Ld_520 = 1;
   }
   double ima_1616 = iMA(NULL, PERIOD_M30, G_period_212, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1624 = iMA(NULL, PERIOD_M30, G_period_212, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1616 > ima_1624) {
      Ld_80 = 1;
      Ld_528 = 0;
   }
   if (ima_1616 < ima_1624) {
      Ld_80 = 0;
      Ld_528 = 1;
   }
   double ima_1632 = iMA(NULL, PERIOD_H1, G_period_212, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1640 = iMA(NULL, PERIOD_H1, G_period_212, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1632 > ima_1640) {
      Ld_88 = 1;
      Ld_536 = 0;
   }
   if (ima_1632 < ima_1640) {
      Ld_88 = 0;
      Ld_536 = 1;
   }
   double ima_1648 = iMA(NULL, PERIOD_H4, G_period_212, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1656 = iMA(NULL, PERIOD_H4, G_period_212, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1648 > ima_1656) {
      Ld_96 = 1;
      Ld_544 = 0;
   }
   if (ima_1648 < ima_1656) {
      Ld_96 = 0;
      Ld_544 = 1;
   }
   double ima_1664 = iMA(NULL, PERIOD_D1, G_period_212, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1672 = iMA(NULL, PERIOD_D1, G_period_212, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1664 > ima_1672) {
      Ld_104 = 1;
      Ld_552 = 0;
   }
   if (ima_1664 < ima_1672) {
      Ld_104 = 0;
      Ld_552 = 1;
   }
   double ima_1680 = iMA(NULL, PERIOD_M1, G_period_216, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1688 = iMA(NULL, PERIOD_M1, G_period_216, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1680 > ima_1688) {
      Ld_112 = 1;
      Ld_560 = 0;
   }
   if (ima_1680 < ima_1688) {
      Ld_112 = 0;
      Ld_560 = 1;
   }
   double ima_1696 = iMA(NULL, PERIOD_M5, G_period_216, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1704 = iMA(NULL, PERIOD_M5, G_period_216, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1696 > ima_1704) {
      Ld_120 = 1;
      Ld_568 = 0;
   }
   if (ima_1696 < ima_1704) {
      Ld_120 = 0;
      Ld_568 = 1;
   }
   double ima_1712 = iMA(NULL, PERIOD_M15, G_period_216, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1720 = iMA(NULL, PERIOD_M15, G_period_216, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1712 > ima_1720) {
      Ld_128 = 1;
      Ld_576 = 0;
   }
   if (ima_1712 < ima_1720) {
      Ld_128 = 0;
      Ld_576 = 1;
   }
   double ima_1728 = iMA(NULL, PERIOD_M30, G_period_216, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1736 = iMA(NULL, PERIOD_M30, G_period_216, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1728 > ima_1736) {
      Ld_136 = 1;
      Ld_584 = 0;
   }
   if (ima_1728 < ima_1736) {
      Ld_136 = 0;
      Ld_584 = 1;
   }
   double ima_1744 = iMA(NULL, PERIOD_H1, G_period_216, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1752 = iMA(NULL, PERIOD_H1, G_period_216, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1744 > ima_1752) {
      Ld_144 = 1;
      Ld_592 = 0;
   }
   if (ima_1744 < ima_1752) {
      Ld_144 = 0;
      Ld_592 = 1;
   }
   double ima_1760 = iMA(NULL, PERIOD_H4, G_period_216, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1768 = iMA(NULL, PERIOD_H4, G_period_216, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1760 > ima_1768) {
      Ld_152 = 1;
      Ld_600 = 0;
   }
   if (ima_1760 < ima_1768) {
      Ld_152 = 0;
      Ld_600 = 1;
   }
   double ima_1776 = iMA(NULL, PERIOD_D1, G_period_216, 0, G_ma_method_220, G_applied_price_224, 0);
   double ima_1784 = iMA(NULL, PERIOD_D1, G_period_216, 0, G_ma_method_220, G_applied_price_224, 1);
   if (ima_1776 > ima_1784) {
      Ld_160 = 1;
      Ld_608 = 0;
   }
   if (ima_1776 < ima_1784) {
      Ld_160 = 0;
      Ld_608 = 1;
   }
   double icci_1792 = iCCI(NULL, PERIOD_M1, G_period_236, G_applied_price_240, 0);
   if (icci_1792 > 0.0) {
      Ld_168 = 1;
      Ld_616 = 0;
   }
   if (icci_1792 < 0.0) {
      Ld_168 = 0;
      Ld_616 = 1;
   }
   double icci_1800 = iCCI(NULL, PERIOD_M5, G_period_236, G_applied_price_240, 0);
   if (icci_1800 > 0.0) {
      Ld_176 = 1;
      Ld_624 = 0;
   }
   if (icci_1800 < 0.0) {
      Ld_176 = 0;
      Ld_624 = 1;
   }
   double icci_1808 = iCCI(NULL, PERIOD_M15, G_period_236, G_applied_price_240, 0);
   if (icci_1808 > 0.0) {
      Ld_184 = 1;
      Ld_632 = 0;
   }
   if (icci_1808 < 0.0) {
      Ld_184 = 0;
      Ld_632 = 1;
   }
   double icci_1816 = iCCI(NULL, PERIOD_M30, G_period_236, G_applied_price_240, 0);
   if (icci_1816 > 0.0) {
      Ld_192 = 1;
      Ld_640 = 0;
   }
   if (icci_1816 < 0.0) {
      Ld_192 = 0;
      Ld_640 = 1;
   }
   double icci_1824 = iCCI(NULL, PERIOD_H1, G_period_236, G_applied_price_240, 0);
   if (icci_1824 > 0.0) {
      Ld_200 = 1;
      Ld_648 = 0;
   }
   if (icci_1824 < 0.0) {
      Ld_200 = 0;
      Ld_648 = 1;
   }
   double icci_1832 = iCCI(NULL, PERIOD_H4, G_period_236, G_applied_price_240, 0);
   if (icci_1832 > 0.0) {
      Ld_208 = 1;
      Ld_656 = 0;
   }
   if (icci_1832 < 0.0) {
      Ld_208 = 0;
      Ld_656 = 1;
   }
   double icci_1840 = iCCI(NULL, PERIOD_D1, G_period_236, G_applied_price_240, 0);
   if (icci_1840 > 0.0) {
      Ld_216 = 1;
      Ld_664 = 0;
   }
   if (icci_1840 < 0.0) {
      Ld_216 = 0;
      Ld_664 = 1;
   }
   double imacd_1848 = iMACD(NULL, PERIOD_M1, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_MAIN, 0);
   double imacd_1856 = iMACD(NULL, PERIOD_M1, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_SIGNAL, 0);
   if (imacd_1848 > imacd_1856) {
      Ld_224 = 1;
      Ld_672 = 0;
   }
   if (imacd_1848 < imacd_1856) {
      Ld_224 = 0;
      Ld_672 = 1;
   }
   double imacd_1864 = iMACD(NULL, PERIOD_M5, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_MAIN, 0);
   double imacd_1872 = iMACD(NULL, PERIOD_M5, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_SIGNAL, 0);
   if (imacd_1864 > imacd_1872) {
      Ld_232 = 1;
      Ld_680 = 0;
   }
   if (imacd_1864 < imacd_1872) {
      Ld_232 = 0;
      Ld_680 = 1;
   }
   double imacd_1880 = iMACD(NULL, PERIOD_M15, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_MAIN, 0);
   double imacd_1888 = iMACD(NULL, PERIOD_M15, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_SIGNAL, 0);
   if (imacd_1880 > imacd_1888) {
      Ld_240 = 1;
      Ld_688 = 0;
   }
   if (imacd_1880 < imacd_1888) {
      Ld_240 = 0;
      Ld_688 = 1;
   }
   double imacd_1896 = iMACD(NULL, PERIOD_M30, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_MAIN, 0);
   double imacd_1904 = iMACD(NULL, PERIOD_M30, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_SIGNAL, 0);
   if (imacd_1896 > imacd_1904) {
      Ld_248 = 1;
      Ld_696 = 0;
   }
   if (imacd_1896 < imacd_1904) {
      Ld_248 = 0;
      Ld_696 = 1;
   }
   double imacd_1912 = iMACD(NULL, PERIOD_H1, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_MAIN, 0);
   double imacd_1920 = iMACD(NULL, PERIOD_H1, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_SIGNAL, 0);
   if (imacd_1912 > imacd_1920) {
      Ld_256 = 1;
      Ld_704 = 0;
   }
   if (imacd_1912 < imacd_1920) {
      Ld_256 = 0;
      Ld_704 = 1;
   }
   double imacd_1928 = iMACD(NULL, PERIOD_H4, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_MAIN, 0);
   double imacd_1936 = iMACD(NULL, PERIOD_H4, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_SIGNAL, 0);
   if (imacd_1928 > imacd_1936) {
      Ld_264 = 1;
      Ld_712 = 0;
   }
   if (imacd_1928 < imacd_1936) {
      Ld_264 = 0;
      Ld_712 = 1;
   }
   double imacd_1944 = iMACD(NULL, PERIOD_D1, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_MAIN, 0);
   double imacd_1952 = iMACD(NULL, PERIOD_D1, G_period_252, G_period_256, G_period_260, PRICE_CLOSE, MODE_SIGNAL, 0);
   if (imacd_1944 > imacd_1952) {
      Ld_272 = 1;
      Ld_720 = 0;
   }
   if (imacd_1944 < imacd_1952) {
      Ld_272 = 0;
      Ld_720 = 1;
   }
   double iadx_1960 = iADX(NULL, PERIOD_M1, G_period_272, G_applied_price_276, MODE_PLUSDI, 0);
   double iadx_1968 = iADX(NULL, PERIOD_M1, G_period_272, G_applied_price_276, MODE_MINUSDI, 0);
   if (iadx_1960 > iadx_1968) {
      Ld_280 = 1;
      Ld_728 = 0;
   }
   if (iadx_1960 < iadx_1968) {
      Ld_280 = 0;
      Ld_728 = 1;
   }
   double iadx_1976 = iADX(NULL, PERIOD_M5, G_period_272, G_applied_price_276, MODE_PLUSDI, 0);
   double iadx_1984 = iADX(NULL, PERIOD_M5, G_period_272, G_applied_price_276, MODE_MINUSDI, 0);
   if (iadx_1976 > iadx_1984) {
      Ld_288 = 1;
      Ld_736 = 0;
   }
   if (iadx_1976 < iadx_1984) {
      Ld_288 = 0;
      Ld_736 = 1;
   }
   double iadx_1992 = iADX(NULL, PERIOD_M15, G_period_272, G_applied_price_276, MODE_PLUSDI, 0);
   double iadx_2000 = iADX(NULL, PERIOD_M15, G_period_272, G_applied_price_276, MODE_MINUSDI, 0);
   if (iadx_1992 > iadx_2000) {
      Ld_296 = 1;
      Ld_744 = 0;
   }
   if (iadx_1992 < iadx_2000) {
      Ld_296 = 0;
      Ld_744 = 1;
   }
   double iadx_2008 = iADX(NULL, PERIOD_M30, G_period_272, G_applied_price_276, MODE_PLUSDI, 0);
   double iadx_2016 = iADX(NULL, PERIOD_M30, G_period_272, G_applied_price_276, MODE_MINUSDI, 0);
   if (iadx_2008 > iadx_2016) {
      Ld_304 = 1;
      Ld_752 = 0;
   }
   if (iadx_2008 < iadx_2016) {
      Ld_304 = 0;
      Ld_752 = 1;
   }
   double iadx_2024 = iADX(NULL, PERIOD_H1, G_period_272, G_applied_price_276, MODE_PLUSDI, 0);
   double iadx_2032 = iADX(NULL, PERIOD_H1, G_period_272, G_applied_price_276, MODE_MINUSDI, 0);
   if (iadx_2024 > iadx_2032) {
      Ld_312 = 1;
      Ld_760 = 0;
   }
   if (iadx_2024 < iadx_2032) {
      Ld_312 = 0;
      Ld_760 = 1;
   }
   double iadx_2040 = iADX(NULL, PERIOD_H4, G_period_272, G_applied_price_276, MODE_PLUSDI, 0);
   double iadx_2048 = iADX(NULL, PERIOD_H4, G_period_272, G_applied_price_276, MODE_MINUSDI, 0);
   if (iadx_2040 > iadx_2048) {
      Ld_320 = 1;
      Ld_768 = 0;
   }
   if (iadx_2040 < iadx_2048) {
      Ld_320 = 0;
      Ld_768 = 1;
   }
   double iadx_2056 = iADX(NULL, PERIOD_D1, G_period_272, G_applied_price_276, MODE_PLUSDI, 0);
   double iadx_2064 = iADX(NULL, PERIOD_D1, G_period_272, G_applied_price_276, MODE_MINUSDI, 0);
   if (iadx_2056 > iadx_2064) {
      Ld_328 = 1;
      Ld_776 = 0;
   }
   if (iadx_2056 < iadx_2064) {
      Ld_328 = 0;
      Ld_776 = 1;
   }
   double ibullspower_2072 = iBullsPower(NULL, PERIOD_M1, G_period_288, G_applied_price_292, 0);
   if (ibullspower_2072 > 0.0) {
      Ld_336 = 1;
      Ld_784 = 0;
   }
   if (ibullspower_2072 < 0.0) {
      Ld_336 = 0;
      Ld_784 = 1;
   }
   double ibullspower_2080 = iBullsPower(NULL, PERIOD_M5, G_period_288, G_applied_price_292, 0);
   if (ibullspower_2080 > 0.0) {
      Ld_344 = 1;
      Ld_792 = 0;
   }
   if (ibullspower_2080 < 0.0) {
      Ld_344 = 0;
      Ld_792 = 1;
   }
   double ibullspower_2088 = iBullsPower(NULL, PERIOD_M15, G_period_288, G_applied_price_292, 0);
   if (ibullspower_2088 > 0.0) {
      Ld_352 = 1;
      Ld_800 = 0;
   }
   if (ibullspower_2088 < 0.0) {
      Ld_352 = 0;
      Ld_800 = 1;
   }
   double ibullspower_2096 = iBullsPower(NULL, PERIOD_M30, G_period_288, G_applied_price_292, 0);
   if (ibullspower_2096 > 0.0) {
      Ld_360 = 1;
      Ld_808 = 0;
   }
   if (ibullspower_2096 < 0.0) {
      Ld_360 = 0;
      Ld_808 = 1;
   }
   double ibullspower_2104 = iBullsPower(NULL, PERIOD_H1, G_period_288, G_applied_price_292, 0);
   if (ibullspower_2104 > 0.0) {
      Ld_368 = 1;
      Ld_816 = 0;
   }
   if (ibullspower_2104 < 0.0) {
      Ld_368 = 0;
      Ld_816 = 1;
   }
   double ibullspower_2112 = iBullsPower(NULL, PERIOD_H4, G_period_288, G_applied_price_292, 0);
   if (ibullspower_2112 > 0.0) {
      Ld_376 = 1;
      Ld_824 = 0;
   }
   if (ibullspower_2112 < 0.0) {
      Ld_376 = 0;
      Ld_824 = 1;
   }
   double ibullspower_2120 = iBullsPower(NULL, PERIOD_D1, G_period_288, G_applied_price_292, 0);
   if (ibullspower_2120 > 0.0) {
      Ld_384 = 1;
      Ld_832 = 0;
   }
   if (ibullspower_2120 < 0.0) {
      Ld_384 = 0;
      Ld_832 = 1;
   }
   double ibearspower_2128 = iBearsPower(NULL, PERIOD_M1, G_period_304, G_applied_price_308, 0);
   if (ibearspower_2128 > 0.0) {
      Ld_392 = 1;
      Ld_840 = 0;
   }
   if (ibearspower_2128 < 0.0) {
      Ld_392 = 0;
      Ld_840 = 1;
   }
   double ibearspower_2136 = iBearsPower(NULL, PERIOD_M5, G_period_304, G_applied_price_308, 0);
   if (ibearspower_2136 > 0.0) {
      Ld_400 = 1;
      Ld_848 = 0;
   }
   if (ibearspower_2136 < 0.0) {
      Ld_400 = 0;
      Ld_848 = 1;
   }
   double ibearspower_2144 = iBearsPower(NULL, PERIOD_M15, G_period_304, G_applied_price_308, 0);
   if (ibearspower_2144 > 0.0) {
      Ld_408 = 1;
      Ld_856 = 0;
   }
   if (ibearspower_2144 < 0.0) {
      Ld_408 = 0;
      Ld_856 = 1;
   }
   double ibearspower_2152 = iBearsPower(NULL, PERIOD_M30, G_period_304, G_applied_price_308, 0);
   if (ibearspower_2152 > 0.0) {
      Ld_416 = 1;
      Ld_864 = 0;
   }
   if (ibearspower_2152 < 0.0) {
      Ld_416 = 0;
      Ld_864 = 1;
   }
   double ibearspower_2160 = iBearsPower(NULL, PERIOD_H1, G_period_304, G_applied_price_308, 0);
   if (ibearspower_2160 > 0.0) {
      Ld_424 = 1;
      Ld_872 = 0;
   }
   if (ibearspower_2160 < 0.0) {
      Ld_424 = 0;
      Ld_872 = 1;
   }
   double ibearspower_2168 = iBearsPower(NULL, PERIOD_H4, G_period_304, G_applied_price_308, 0);
   if (ibearspower_2168 > 0.0) {
      Ld_432 = 1;
      Ld_880 = 0;
   }
   if (ibearspower_2168 < 0.0) {
      Ld_432 = 0;
      Ld_880 = 1;
   }
   double ibearspower_2176 = iBearsPower(NULL, PERIOD_D1, G_period_304, G_applied_price_308, 0);
   if (ibearspower_2176 > 0.0) {
      Ld_440 = 1;
      Ld_888 = 0;
   }
   if (ibearspower_2176 < 0.0) {
      Ld_440 = 0;
      Ld_888 = 1;
   }
   double istochastic_2184 = iStochastic(NULL, PERIOD_M1, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_MAIN, 0);
   double istochastic_2192 = iStochastic(NULL, PERIOD_M1, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_SIGNAL, 0);
   if (istochastic_2184 >= istochastic_2192) {
      Ld_896 = 1;
      Ld_1176 = 0;
   }
   if (istochastic_2184 < istochastic_2192) {
      Ld_896 = 0;
      Ld_1176 = 1;
   }
   double istochastic_2200 = iStochastic(NULL, PERIOD_M5, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_MAIN, 0);
   double istochastic_2208 = iStochastic(NULL, PERIOD_M5, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_SIGNAL, 0);
   if (istochastic_2200 >= istochastic_2208) {
      Ld_904 = 1;
      Ld_1184 = 0;
   }
   if (istochastic_2200 < istochastic_2208) {
      Ld_904 = 0;
      Ld_1184 = 1;
   }
   double istochastic_2216 = iStochastic(NULL, PERIOD_M15, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_MAIN, 0);
   double istochastic_2224 = iStochastic(NULL, PERIOD_M15, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_SIGNAL, 0);
   if (istochastic_2216 >= istochastic_2224) {
      Ld_912 = 1;
      Ld_1192 = 0;
   }
   if (istochastic_2216 < istochastic_2224) {
      Ld_912 = 0;
      Ld_1192 = 1;
   }
   double istochastic_2232 = iStochastic(NULL, PERIOD_M30, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_MAIN, 0);
   double istochastic_2240 = iStochastic(NULL, PERIOD_M30, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_SIGNAL, 0);
   if (istochastic_2232 >= istochastic_2240) {
      Ld_920 = 1;
      Ld_1200 = 0;
   }
   if (istochastic_2232 < istochastic_2240) {
      Ld_920 = 0;
      Ld_1200 = 1;
   }
   double istochastic_2248 = iStochastic(NULL, PERIOD_H1, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_MAIN, 0);
   double istochastic_2256 = iStochastic(NULL, PERIOD_H1, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_SIGNAL, 0);
   if (istochastic_2248 >= istochastic_2256) {
      Ld_928 = 1;
      Ld_1208 = 0;
   }
   if (istochastic_2248 < istochastic_2256) {
      Ld_928 = 0;
      Ld_1208 = 1;
   }
   double istochastic_2264 = iStochastic(NULL, PERIOD_H4, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_MAIN, 0);
   double istochastic_2272 = iStochastic(NULL, PERIOD_H4, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_SIGNAL, 0);
   if (istochastic_2264 >= istochastic_2272) {
      Ld_936 = 1;
      Ld_1216 = 0;
   }
   if (istochastic_2264 < istochastic_2272) {
      Ld_936 = 0;
      Ld_1216 = 1;
   }
   double istochastic_2280 = iStochastic(NULL, PERIOD_D1, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_MAIN, 0);
   double istochastic_2288 = iStochastic(NULL, PERIOD_D1, G_period_320, G_period_324, G_slowing_328, MODE_SMA, 1, MODE_SIGNAL, 0);
   if (istochastic_2280 >= istochastic_2288) {
      Ld_944 = 1;
      Ld_1224 = 0;
   }
   if (istochastic_2280 < istochastic_2288) {
      Ld_944 = 0;
      Ld_1224 = 1;
   }
   double irsi_2296 = iRSI(NULL, PERIOD_M1, G_period_340, PRICE_CLOSE, 0);
   if (irsi_2296 >= 50.0) {
      Ld_952 = 1;
      Ld_1232 = 0;
   }
   if (irsi_2296 < 50.0) {
      Ld_952 = 0;
      Ld_1232 = 1;
   }
   double irsi_2304 = iRSI(NULL, PERIOD_M5, G_period_340, PRICE_CLOSE, 0);
   if (irsi_2304 >= 50.0) {
      Ld_960 = 1;
      Ld_1240 = 0;
   }
   if (irsi_2304 < 50.0) {
      Ld_960 = 0;
      Ld_1240 = 1;
   }
   double irsi_2312 = iRSI(NULL, PERIOD_M15, G_period_340, PRICE_CLOSE, 0);
   if (irsi_2312 >= 50.0) {
      Ld_968 = 1;
      Ld_1248 = 0;
   }
   if (irsi_2312 < 50.0) {
      Ld_968 = 0;
      Ld_1248 = 1;
   }
   double irsi_2320 = iRSI(NULL, PERIOD_M30, G_period_340, PRICE_CLOSE, 0);
   if (irsi_2320 >= 50.0) {
      Ld_976 = 1;
      Ld_1256 = 0;
   }
   if (irsi_2320 < 50.0) {
      Ld_976 = 0;
      Ld_1256 = 1;
   }
   double irsi_2328 = iRSI(NULL, PERIOD_H1, G_period_340, PRICE_CLOSE, 0);
   if (irsi_2328 >= 50.0) {
      Ld_984 = 1;
      Ld_1264 = 0;
   }
   if (irsi_2328 < 50.0) {
      Ld_984 = 0;
      Ld_1264 = 1;
   }
   double irsi_2336 = iRSI(NULL, PERIOD_H4, G_period_340, PRICE_CLOSE, 0);
   if (irsi_2336 >= 50.0) {
      Ld_992 = 1;
      Ld_1272 = 0;
   }
   if (irsi_2336 < 50.0) {
      Ld_992 = 0;
      Ld_1272 = 1;
   }
   double irsi_2344 = iRSI(NULL, PERIOD_D1, G_period_340, PRICE_CLOSE, 0);
   if (irsi_2344 >= 50.0) {
      Ld_1000 = 1;
      Ld_1280 = 0;
   }
   if (irsi_2344 < 50.0) {
      Ld_1000 = 0;
      Ld_1280 = 1;
   }
   double iforce_2352 = iForce(NULL, PERIOD_M1, G_period_352, G_ma_method_356, G_applied_price_360, 0);
   if (iforce_2352 >= 0.0) {
      Ld_1008 = 1;
      Ld_1288 = 0;
   }
   if (iforce_2352 < 0.0) {
      Ld_1008 = 0;
      Ld_1288 = 1;
   }
   double iforce_2360 = iForce(NULL, PERIOD_M5, G_period_352, G_ma_method_356, G_applied_price_360, 0);
   if (iforce_2360 >= 0.0) {
      Ld_1016 = 1;
      Ld_1296 = 0;
   }
   if (iforce_2360 < 0.0) {
      Ld_1016 = 0;
      Ld_1296 = 1;
   }
   double iforce_2368 = iForce(NULL, PERIOD_M15, G_period_352, G_ma_method_356, G_applied_price_360, 0);
   if (iforce_2368 >= 0.0) {
      Ld_1024 = 1;
      Ld_1304 = 0;
   }
   if (iforce_2368 < 0.0) {
      Ld_1024 = 0;
      Ld_1304 = 1;
   }
   double iforce_2376 = iForce(NULL, PERIOD_M30, G_period_352, G_ma_method_356, G_applied_price_360, 0);
   if (iforce_2376 >= 0.0) {
      Ld_1032 = 1;
      Ld_1312 = 0;
   }
   if (iforce_2376 < 0.0) {
      Ld_1032 = 0;
      Ld_1312 = 1;
   }
   double iforce_2384 = iForce(NULL, PERIOD_H1, G_period_352, G_ma_method_356, G_applied_price_360, 0);
   if (iforce_2384 >= 0.0) {
      Ld_1040 = 1;
      Ld_1320 = 0;
   }
   if (iforce_2384 < 0.0) {
      Ld_1040 = 0;
      Ld_1320 = 1;
   }
   double iforce_2392 = iForce(NULL, PERIOD_H4, G_period_352, G_ma_method_356, G_applied_price_360, 0);
   if (iforce_2392 >= 0.0) {
      Ld_1048 = 1;
      Ld_1328 = 0;
   }
   if (iforce_2392 < 0.0) {
      Ld_1048 = 0;
      Ld_1328 = 1;
   }
   double iforce_2400 = iForce(NULL, PERIOD_D1, G_period_352, G_ma_method_356, G_applied_price_360, 0);
   if (iforce_2400 >= 0.0) {
      Ld_1056 = 1;
      Ld_1336 = 0;
   }
   if (iforce_2400 < 0.0) {
      Ld_1056 = 0;
      Ld_1336 = 1;
   }
   double imomentum_2408 = iMomentum(NULL, PERIOD_M1, G_period_372, G_applied_price_376, 0);
   if (imomentum_2408 >= 100.0) {
      Ld_1064 = 1;
      Ld_1344 = 0;
   }
   if (imomentum_2408 < 100.0) {
      Ld_1064 = 0;
      Ld_1344 = 1;
   }
   double imomentum_2416 = iMomentum(NULL, PERIOD_M5, G_period_372, G_applied_price_376, 0);
   if (imomentum_2416 >= 100.0) {
      Ld_1072 = 1;
      Ld_1352 = 0;
   }
   if (imomentum_2416 < 100.0) {
      Ld_1072 = 0;
      Ld_1352 = 1;
   }
   double imomentum_2424 = iMomentum(NULL, PERIOD_M15, G_period_372, G_applied_price_376, 0);
   if (imomentum_2424 >= 100.0) {
      Ld_1080 = 1;
      Ld_1360 = 0;
   }
   if (imomentum_2424 < 100.0) {
      Ld_1080 = 0;
      Ld_1360 = 1;
   }
   double imomentum_2432 = iMomentum(NULL, PERIOD_M30, G_period_372, G_applied_price_376, 0);
   if (imomentum_2432 >= 100.0) {
      Ld_1088 = 1;
      Ld_1368 = 0;
   }
   if (imomentum_2432 < 100.0) {
      Ld_1088 = 0;
      Ld_1368 = 1;
   }
   double imomentum_2440 = iMomentum(NULL, PERIOD_H1, G_period_372, G_applied_price_376, 0);
   if (imomentum_2440 >= 100.0) {
      Ld_1096 = 1;
      Ld_1376 = 0;
   }
   if (imomentum_2440 < 100.0) {
      Ld_1096 = 0;
      Ld_1376 = 1;
   }
   double imomentum_2448 = iMomentum(NULL, PERIOD_H4, G_period_372, G_applied_price_376, 0);
   if (imomentum_2448 >= 100.0) {
      Ld_1104 = 1;
      Ld_1384 = 0;
   }
   if (imomentum_2448 < 100.0) {
      Ld_1104 = 0;
      Ld_1384 = 1;
   }
   double imomentum_2456 = iMomentum(NULL, PERIOD_D1, G_period_372, G_applied_price_376, 0);
   if (imomentum_2456 >= 100.0) {
      Ld_1112 = 1;
      Ld_1392 = 0;
   }
   if (imomentum_2456 < 100.0) {
      Ld_1112 = 0;
      Ld_1392 = 1;
   }
   double idemarker_2464 = iDeMarker(NULL, PERIOD_M1, G_period_388, 0);
   double idemarker_2472 = iDeMarker(NULL, PERIOD_M1, G_period_388, 1);
   if (idemarker_2464 >= idemarker_2472) {
      Ld_1120 = 1;
      Ld_1400 = 0;
   }
   if (idemarker_2464 < idemarker_2472) {
      Ld_1120 = 0;
      Ld_1400 = 1;
   }
   double idemarker_2480 = iDeMarker(NULL, PERIOD_M5, G_period_388, 0);
   double idemarker_2488 = iDeMarker(NULL, PERIOD_M5, G_period_388, 1);
   if (idemarker_2480 >= idemarker_2488) {
      Ld_1128 = 1;
      Ld_1408 = 0;
   }
   if (idemarker_2480 < idemarker_2488) {
      Ld_1128 = 0;
      Ld_1408 = 1;
   }
   double idemarker_2496 = iDeMarker(NULL, PERIOD_M15, G_period_388, 0);
   double idemarker_2504 = iDeMarker(NULL, PERIOD_M15, G_period_388, 1);
   if (idemarker_2496 >= idemarker_2504) {
      Ld_1136 = 1;
      Ld_1416 = 0;
   }
   if (idemarker_2496 < idemarker_2504) {
      Ld_1136 = 0;
      Ld_1416 = 1;
   }
   double idemarker_2512 = iDeMarker(NULL, PERIOD_M30, G_period_388, 0);
   double idemarker_2520 = iDeMarker(NULL, PERIOD_M30, G_period_388, 1);
   if (idemarker_2512 >= idemarker_2520) {
      Ld_1144 = 1;
      Ld_1424 = 0;
   }
   if (idemarker_2512 < idemarker_2520) {
      Ld_1144 = 0;
      Ld_1424 = 1;
   }
   double idemarker_2528 = iDeMarker(NULL, PERIOD_H1, G_period_388, 0);
   double idemarker_2536 = iDeMarker(NULL, PERIOD_H1, G_period_388, 1);
   if (idemarker_2528 >= idemarker_2536) {
      Ld_1152 = 1;
      Ld_1432 = 0;
   }
   if (idemarker_2528 < idemarker_2536) {
      Ld_1152 = 0;
      Ld_1432 = 1;
   }
   double idemarker_2544 = iDeMarker(NULL, PERIOD_H4, G_period_388, 0);
   double idemarker_2552 = iDeMarker(NULL, PERIOD_H4, G_period_388, 1);
   if (idemarker_2544 >= idemarker_2552) {
      Ld_1160 = 1;
      Ld_1440 = 0;
   }
   if (idemarker_2544 < idemarker_2552) {
      Ld_1160 = 0;
      Ld_1440 = 1;
   }
   double idemarker_2560 = iDeMarker(NULL, PERIOD_D1, G_period_388, 0);
   double idemarker_2568 = iDeMarker(NULL, PERIOD_D1, G_period_388, 1);
   if (idemarker_2560 >= idemarker_2568) {
      Ld_1168 = 1;
      Ld_1448 = 0;
   }
   if (idemarker_2560 < idemarker_2568) {
      Ld_1168 = 0;
      Ld_1448 = 1;
   }
   double Ld_2576 = Ld_0 + Ld_56 + Ld_112 + Ld_168 + Ld_224 + Ld_280 + Ld_336 + Ld_392 + Ld_896 + Ld_952 + Ld_1008 + Ld_1064 + Ld_1120;
   double Ld_2584 = Ld_8 + Ld_64 + Ld_120 + Ld_176 + Ld_232 + Ld_288 + Ld_344 + Ld_400 + Ld_904 + Ld_960 + Ld_1016 + Ld_1072 + Ld_1128;
   double Ld_2592 = Ld_16 + Ld_72 + Ld_128 + Ld_184 + Ld_240 + Ld_296 + Ld_352 + Ld_408 + Ld_912 + Ld_968 + Ld_1024 + Ld_1080 + Ld_1136;
   double Ld_2600 = Ld_24 + Ld_80 + Ld_136 + Ld_192 + Ld_248 + Ld_304 + Ld_360 + Ld_416 + Ld_920 + Ld_976 + Ld_1032 + Ld_1088 + Ld_1144;
   double Ld_2608 = Ld_32 + Ld_88 + Ld_144 + Ld_200 + Ld_256 + Ld_312 + Ld_368 + Ld_424 + Ld_928 + Ld_984 + Ld_1040 + Ld_1096 + Ld_1152;
   double Ld_2616 = Ld_40 + Ld_96 + Ld_152 + Ld_208 + Ld_264 + Ld_320 + Ld_376 + Ld_432 + Ld_936 + Ld_992 + Ld_1048 + Ld_1104 + Ld_1160;
   double Ld_2624 = Ld_48 + Ld_104 + Ld_160 + Ld_216 + Ld_272 + Ld_328 + Ld_384 + Ld_440 + Ld_944 + Ld_1000 + Ld_1056 + Ld_1112 + Ld_1168;
   double Ld_2632 = Ld_2576 + Ld_2584 + Ld_2592 + Ld_2600 + Ld_2608 + Ld_2616 + Ld_2624;
   double Ld_2640 = Ld_448 + Ld_504 + Ld_560 + Ld_616 + Ld_672 + Ld_728 + Ld_784 + Ld_840 + Ld_1176 + Ld_1232 + Ld_1288 + Ld_1344 + Ld_1400;
   double Ld_2648 = Ld_456 + Ld_512 + Ld_568 + Ld_624 + Ld_680 + Ld_736 + Ld_792 + Ld_848 + Ld_1184 + Ld_1240 + Ld_1296 + Ld_1352 + Ld_1408;
   double Ld_2656 = Ld_464 + Ld_520 + Ld_576 + Ld_632 + Ld_688 + Ld_744 + Ld_800 + Ld_856 + Ld_1192 + Ld_1248 + Ld_1304 + Ld_1360 + Ld_1416;
   double Ld_2664 = Ld_472 + Ld_528 + Ld_584 + Ld_640 + Ld_696 + Ld_752 + Ld_808 + Ld_864 + Ld_1200 + Ld_1256 + Ld_1312 + Ld_1368 + Ld_1424;
   double Ld_2672 = Ld_480 + Ld_536 + Ld_592 + Ld_648 + Ld_704 + Ld_760 + Ld_816 + Ld_872 + Ld_1208 + Ld_1264 + Ld_1320 + Ld_1376 + Ld_1432;
   double Ld_2680 = Ld_488 + Ld_544 + Ld_600 + Ld_656 + Ld_712 + Ld_768 + Ld_824 + Ld_880 + Ld_1216 + Ld_1272 + Ld_1328 + Ld_1384 + Ld_1440;
   double Ld_2688 = Ld_496 + Ld_552 + Ld_608 + Ld_664 + Ld_720 + Ld_776 + Ld_832 + Ld_888 + Ld_1224 + Ld_1280 + Ld_1336 + Ld_1392 + Ld_1448;
   double Ld_2696 = Ld_2640 + Ld_2648 + Ld_2656 + Ld_2664 + Ld_2672 + Ld_2680 + Ld_2688;
   double Ld_2704 = NormalizeDouble(100.0 * (Ld_2632 / 91.0), 0);
   double Ld_2712 = NormalizeDouble(100.0 * (Ld_2696 / 91.0), 0);
   if (Ld_2704 < 70.0 || Ld_2712 < 70.0) Gi_456 = 0;
   if (Ld_2704 >= 70.0) Gi_456 = 1;
   if (Ld_2704 >= 75.0) Gi_456 = 2;
   if (Ld_2704 >= 85.0) Gi_456 = 3;
   if (Ld_2712 >= 70.0) Gi_456 = -1;
   if (Ld_2712 >= 75.0) Gi_456 = -2;
   if (Ld_2712 >= 85.0) Gi_456 = -3;
   if (Ld_2704 >= 50.0) {
      Gd_424 = Ld_2704;
      G_color_432 = Lime;
   } else {
      Gd_424 = Ld_2712;
      G_color_432 = Red;
   }
   string symbol_2720 = Symbol();
   string dbl2str_2728 = DoubleToStr(iHigh(symbol_2720, PERIOD_H1, iHighest(symbol_2720, PERIOD_H1, MODE_HIGH, 24, 0)), Digits);
   string dbl2str_2736 = DoubleToStr(MarketInfo(symbol_2720, MODE_ASK), Digits);
   string dbl2str_2744 = DoubleToStr(MarketInfo(symbol_2720, MODE_BID), Digits);
   string dbl2str_2752 = DoubleToStr(iLow(symbol_2720, PERIOD_H1, iLowest(symbol_2720, PERIOD_H1, MODE_LOW, 24, 0)), Digits);
   string dbl2str_2760 = DoubleToStr((StrToDouble(dbl2str_2728) - StrToDouble(dbl2str_2752)) / Point, 0);
   string dbl2str_2768 = DoubleToStr(100.0 * ((StrToDouble(dbl2str_2744) - StrToDouble(dbl2str_2752)) / StrToDouble(dbl2str_2760)) / Point, 2);
   double Ld_2776 = Lookup(StrToDouble(dbl2str_2768));
   if (Ld_2776 < 6.0 && Ld_2776 > 3.0) Gi_460 = 0;
   if (Ld_2776 >= 6.0) Gi_460 = 1;
   if (Ld_2776 >= 7.0) Gi_460 = 2;
   if (Ld_2776 >= 8.0) Gi_460 = 3;
   if (Ld_2776 <= 3.0) Gi_460 = -1;
   if (Ld_2776 <= 2.0) Gi_460 = -2;
   if (Ld_2776 <= 1.0) Gi_460 = -3;
   if (Ld_2776 <= 2.0) G_color_436 = Red;
   if (Ld_2776 > 2.0 && Ld_2776 < 5.0) G_color_436 = DarkOrange;
   if (Ld_2776 >= 5.0 && Ld_2776 < 7.0) G_color_436 = Yellow;
   if (Ld_2776 >= 7.0) G_color_436 = Lime;
   for (int index_3008 = 0; index_3008 < 19; index_3008++) {
      RefreshRates();
      symbol_2876 = Gsa_392[index_3008];
      Ls_2884 = StringSubstr(Symbol(), 6, 1);
      if (StringFind(AccountCompany(), "Interbank") == 0 && Ls_2884 == "m") symbol_2876 = symbol_2876 + "m";
      Ld_2864 = GetPoint(symbol_2876);
      Lda_2788[index_3008] = iHigh(symbol_2876, PERIOD_H1, iHighest(symbol_2876, PERIOD_H1, MODE_HIGH, 24, 0));
      Lda_2792[index_3008] = iLow(symbol_2876, PERIOD_H1, iLowest(symbol_2876, PERIOD_H1, MODE_LOW, 24, 0));
      Lda_2796[index_3008] = MarketInfo(symbol_2876, MODE_BID);
      Lda_2800[index_3008] = MarketInfo(symbol_2876, MODE_ASK);
      Lda_2804[index_3008] = MarketInfo(symbol_2876, MODE_DIGITS);
      Lda_2812[index_3008] = MathMax((Lda_2788[index_3008] - Lda_2792[index_3008]) / Ld_2864, 1);
      Lda_2808[index_3008] = (Lda_2796[index_3008] - Lda_2792[index_3008]) / Lda_2812[index_3008] / Ld_2864;
      Lda_2816[index_3008] = iLookup(100.0 * Lda_2808[index_3008]);
      Lda_2820[index_3008] = 9 - Lda_2816[index_3008];
   }
   Lda_2784[0] = NormalizeDouble((Lda_2816[3] + Lda_2816[4] + Lda_2816[5] + Lda_2820[0] + Lda_2820[1] + Lda_2820[2] + Lda_2820[13]) / 7.0, 1);
   Lda_2784[1] = NormalizeDouble((Lda_2816[17] + Lda_2816[0] + Lda_2816[6] + Lda_2816[7] + Lda_2816[8] + Lda_2816[9]) / 6.0, 1);
   Lda_2784[2] = NormalizeDouble((Lda_2816[1] + Lda_2816[10] + Lda_2816[11] + Lda_2820[7]) / 4.0, 1);
   Lda_2784[3] = NormalizeDouble((Lda_2816[16] + Lda_2820[4] + Lda_2820[8] + Lda_2820[11]) / 4.0, 1);
   Lda_2784[4] = NormalizeDouble((Lda_2820[18] + Lda_2820[5] + Lda_2820[17]) / 3.0, 1);
   Lda_2784[5] = NormalizeDouble(0.2 * (Lda_2816[2] + Lda_2816[15] + Lda_2816[18] + Lda_2816[12] + Lda_2820[9]), 1);
   Lda_2784[6] = NormalizeDouble((Lda_2820[3] + Lda_2820[6] + Lda_2820[10] + Lda_2820[12] + Lda_2820[14] + Lda_2820[16]) / 6.0, 1);
   Lda_2784[7] = NormalizeDouble((Lda_2816[13] + Lda_2816[14] + Lda_2820[15]) / 3.0, 1);
   string Ls_2892 = StringSubstr(Symbol(), 0, 3);
   string Ls_2900 = StringSubstr(Symbol(), 3, 3);
   string Ls_2908 = StringSubstr(Symbol(), 0, 6);
   if (Ls_2908 == "EURUSD") {
      Li_2872 = 0;
      Ld_2824 = Lda_2784[1];
      Ld_2832 = Lda_2784[0];
   }
   if (Ls_2908 == "GBPUSD") {
      Li_2872 = 1;
      Ld_2824 = Lda_2784[2];
      Ld_2832 = Lda_2784[0];
   }
   if (Ls_2908 == "AUDUSD") {
      Li_2872 = 2;
      Ld_2824 = Lda_2784[5];
      Ld_2832 = Lda_2784[0];
   }
   if (Ls_2908 == "USDJPY") {
      Li_2872 = 3;
      Ld_2824 = Lda_2784[0];
      Ld_2832 = Lda_2784[6];
   }
   if (Ls_2908 == "USDCHF") {
      Li_2872 = 4;
      Ld_2824 = Lda_2784[0];
      Ld_2832 = Lda_2784[3];
   }
   if (Ls_2908 == "USDCAD") {
      Li_2872 = 5;
      Ld_2824 = Lda_2784[0];
      Ld_2832 = Lda_2784[4];
   }
   if (Ls_2908 == "EURJPY") {
      Li_2872 = 6;
      Ld_2824 = Lda_2784[1];
      Ld_2832 = Lda_2784[6];
   }
   if (Ls_2908 == "EURGBP") {
      Li_2872 = 7;
      Ld_2824 = Lda_2784[1];
      Ld_2832 = Lda_2784[2];
   }
   if (Ls_2908 == "EURCHF") {
      Li_2872 = 8;
      Ld_2824 = Lda_2784[1];
      Ld_2832 = Lda_2784[3];
   }
   if (Ls_2908 == "EURAUD") {
      Li_2872 = 9;
      Ld_2824 = Lda_2784[1];
      Ld_2832 = Lda_2784[5];
   }
   if (Ls_2908 == "GBPJPY") {
      Li_2872 = 10;
      Ld_2824 = Lda_2784[2];
      Ld_2832 = Lda_2784[6];
   }
   if (Ls_2908 == "GBPCHF") {
      Li_2872 = 11;
      Ld_2824 = Lda_2784[2];
      Ld_2832 = Lda_2784[3];
   }
   if (Ls_2908 == "AUDJPY") {
      Li_2872 = 12;
      Ld_2824 = Lda_2784[5];
      Ld_2832 = Lda_2784[6];
   }
   if (Ls_2908 == "NZDUSD") {
      Li_2872 = 13;
      Ld_2824 = Lda_2784[7];
      Ld_2832 = Lda_2784[0];
   }
   if (Ls_2908 == "NZDJPY") {
      Li_2872 = 14;
      Ld_2824 = Lda_2784[7];
      Ld_2832 = Lda_2784[6];
   }
   if (Ls_2908 == "AUDNZD") {
      Li_2872 = 15;
      Ld_2824 = Lda_2784[5];
      Ld_2832 = Lda_2784[7];
   }
   if (Ls_2908 == "CHFJPY") {
      Li_2872 = 16;
      Ld_2824 = Lda_2784[3];
      Ld_2832 = Lda_2784[6];
   }
   if (Ls_2908 == "EURCAD") {
      Li_2872 = 17;
      Ld_2824 = Lda_2784[1];
      Ld_2832 = Lda_2784[4];
   }
   if (Ls_2908 == "AUDCAD") {
      Li_2872 = 18;
      Ld_2824 = Lda_2784[5];
      Ld_2832 = Lda_2784[4];
   }
   double Ld_2916 = Lda_2804[Li_2872];
   string dbl2str_2840 = DoubleToStr(Lda_2788[Li_2872], Ld_2916);
   string dbl2str_2848 = DoubleToStr(Lda_2792[Li_2872], Ld_2916);
   string dbl2str_2856 = DoubleToStr(Lda_2812[Li_2872], 0);
   double Ld_2924 = MathAbs(Ld_2824 - Ld_2832);
   if (Ld_2924 < 3.0) Gi_464 = 0;
   if (Ld_2924 >= 3.0 && Ld_2824 > Ld_2832) Gi_464 = 1;
   if (Ld_2924 >= 5.0 && Ld_2824 > Ld_2832) Gi_464 = 2;
   if (Ld_2924 >= 7.0 && Ld_2824 > Ld_2832) Gi_464 = 3;
   if (Ld_2924 >= 3.0 && Ld_2824 < Ld_2832) Gi_464 = -1;
   if (Ld_2924 >= 5.0 && Ld_2824 < Ld_2832) Gi_464 = -2;
   if (Ld_2924 >= 7.0 && Ld_2824 < Ld_2832) Gi_464 = -3;
   if (Ld_2824 <= 2.5) G_color_440 = Red;
   if (Ld_2824 > 2.5 && Ld_2824 < 4.5) G_color_440 = DarkOrange;
   if (Ld_2824 >= 4.5 && Ld_2824 < 6.5) G_color_440 = Yellow;
   if (Ld_2824 >= 6.5) G_color_440 = Lime;
   if (Ld_2832 <= 2.5) G_color_444 = Red;
   if (Ld_2832 > 2.5 && Ld_2832 < 4.5) G_color_444 = DarkOrange;
   if (Ld_2832 >= 4.5 && Ld_2832 < 6.5) G_color_444 = Yellow;
   if (Ld_2832 >= 6.5) G_color_444 = Lime;
   double imacd_2932 = iMACD(Symbol(), 0, Fast_EMA, Slow_EMA, MACD_SMA, PRICE_CLOSE, MODE_SIGNAL, 0);
   double imacd_2940 = iMACD(Symbol(), 0, Fast_EMA, Slow_EMA, MACD_SMA, PRICE_CLOSE, MODE_SIGNAL, 1);
   if (imacd_2932 >= 0.0 && imacd_2932 > imacd_2940) {
      Gi_408 = 1;
      G_text_400 = "ì";
      G_color_448 = Lime;
   } else {
      if (imacd_2932 < 0.0 && imacd_2932 < imacd_2940) {
         Gi_408 = -1;
         G_text_400 = "î";
         G_color_448 = Red;
      } else {
         Gi_408 = 0;
         G_text_400 = "h";
         G_color_448 = DarkOrange;
      }
   }
   double istochastic_2948 = iStochastic(Symbol(), 0, K_period, D_period, Slowing, MODE_SMA, 0, MODE_SIGNAL, 0);
   double istochastic_2956 = iStochastic(Symbol(), 0, K_period, D_period, Slowing, MODE_SMA, 0, MODE_SIGNAL, 1);
   if (istochastic_2948 < 75.0 && istochastic_2948 < istochastic_2956) {
      Gi_420 = -1;
      G_text_412 = "î";
      G_color_452 = Red;
   } else {
      if (istochastic_2948 > 25.0 && istochastic_2948 > istochastic_2956) {
         Gi_420 = 1;
         G_text_412 = "ì";
         G_color_452 = Lime;
      } else {
         Gi_420 = 0;
         G_text_412 = "h";
         G_color_452 = DarkOrange;
      }
   }
   int Li_2964 = Gi_456 + Gi_460 + Gi_464 + Gi_408 + Gi_420;
   double Ld_2968 = 100.0 * (MathAbs(Li_2964) / 11.0);
   if (Li_2964 > 0) Gs_unused_468 = "BUY";
   if (Li_2964 < 0) Gs_unused_468 = "SELL";
   string text_2996 = StringSubstr(Symbol(), 0, 6);
   if (Ld_2968 >= 0.0 && Ld_2968 < 50.0 && Li_2964 >= 0) {
      text_2976 = "Probability:   LONG ";
      color_2988 = Maroon;
      color_2992 = Green;
      color_2984 = Green;
   }
   if (Ld_2968 >= 50.0 && Ld_2968 < 75.0 && Li_2964 >= 0) {
      text_2976 = "Probability:   LONG ";
      color_2988 = Green;
      color_2992 = Lime;
      color_2984 = Green;
   }
   if (Ld_2968 >= 75.0 && Ld_2968 < 90.0 && Li_2964 >= 0) {
      text_2976 = "Probability:   LONG ";
      color_2988 = MediumSeaGreen;
      color_2992 = Lime;
      color_2984 = MediumSeaGreen;
   }
   if (Ld_2968 >= 90.0 && Li_2964 >= 0) {
      text_2976 = "Probability:   LONG ";
      color_2988 = Lime;
      color_2992 = Lime;
      color_2984 = Lime;
   }
   if (Ld_2968 >= 0.0 && Ld_2968 < 50.0 && Li_2964 < 0) {
      text_2976 = "Probability:   SHORT ";
      color_2988 = Green;
      color_2992 = Maroon;
      color_2984 = Maroon;
   }
   if (Ld_2968 >= 50.0 && Ld_2968 < 75.0 && Li_2964 < 0) {
      text_2976 = "Probability:   SHORT ";
      color_2988 = Maroon;
      color_2992 = Red;
      color_2984 = Maroon;
   }
   if (Ld_2968 >= 75.0 && Ld_2968 < 90.0 && Li_2964 < 0) {
      text_2976 = "Probability:   SHORT ";
      color_2988 = Chocolate;
      color_2992 = Red;
      color_2984 = Chocolate;
   }
   if (Ld_2968 >= 90.0 && Li_2964 < 0) {
      text_2976 = "Probability:   SHORT ";
      color_2988 = Red;
      color_2992 = Red;
      color_2984 = Red;
   }
   Gd_192 = Period();
   if (Gd_192 == 1.0) Gs_184 = "M1";
   if (Gd_192 == 5.0) Gs_184 = "M5";
   if (Gd_192 == 15.0) Gs_184 = "M15";
   if (Gd_192 == 30.0) Gs_184 = "M30";
   if (Gd_192 == 60.0) Gs_184 = "H1";
   if (Gd_192 == 240.0) Gs_184 = "H4";
   if (Gd_192 == 1440.0) Gs_184 = "D1";
   if (Gd_192 == 10080.0) Gs_184 = "W1";
   if (Gd_192 == 43200.0) Gs_184 = "MN";
   if (Ld_2968 >= Alert_Trigger && Li_2964 > 0 && Gi_180 != Time[0]) {
      if (SignalAlert) Alert("Probability Strong UP Trend - ", Symbol(), " ", Gs_184, " at ", TimeToStr(TimeCurrent(), TIME_SECONDS));
      if (SendAlertEmail) SendMail("Probability signal", "Probability Strong UP Trend - " + Symbol() + " " + Gs_184 + " at " + TimeToStr(TimeCurrent(), TIME_SECONDS) + " (server time)");
      Gi_180 = Time[0];
   }
   if (Ld_2968 >= Alert_Trigger && Li_2964 < 0 && Gi_180 != Time[0]) {
      if (SignalAlert) Alert("Probability Strong DOWN Trend - ", Symbol(), " ", Gs_184, " at ", TimeToStr(TimeCurrent(), TIME_SECONDS));
      if (SendAlertEmail) SendMail("Probability signal", "Probability Strong DOWN Trend - " + Symbol() + " " + Gs_184 + " at " + TimeToStr(TimeCurrent(), TIME_SECONDS) + " (server time)");
      Gi_180 = Time[0];
   }
   if (!Show.Values.Only) {
      ObjectCreate("_symbol_", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_symbol_", text_2996, 7, "Arial Black", colorsymbol);
      ObjectSet("_symbol_", OBJPROP_CORNER, 3);
      ObjectSet("_symbol_", OBJPROP_XDISTANCE, X_box + 13);
      ObjectSet("_symbol_", OBJPROP_YDISTANCE, Y_box + 124);
      ObjectCreate("_line1", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line1", "----------------------------------------------", 9, "Arial", colorline);
      ObjectSet("_line1", OBJPROP_CORNER, 3);
      ObjectSet("_line1", OBJPROP_XDISTANCE, X_box + 10);
      ObjectSet("_line1", OBJPROP_YDISTANCE, Y_box + 117);
      ObjectCreate("trend_logo_1", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("trend_logo_1", ".:", 14, "Arial Black", color_2988);
      ObjectSet("trend_logo_1", OBJPROP_CORNER, 3);
      ObjectSet("trend_logo_1", OBJPROP_XDISTANCE, X_box + 177);
      ObjectSet("trend_logo_1", OBJPROP_YDISTANCE, Y_box + 102);
      ObjectCreate("trend_logo_2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("trend_logo_2", ":.", 14, "Arial Black", color_2992);
      ObjectSet("trend_logo_2", OBJPROP_CORNER, 3);
      ObjectSet("trend_logo_2", OBJPROP_XDISTANCE, X_box + 166);
      ObjectSet("trend_logo_2", OBJPROP_YDISTANCE, Y_box + 102);
      ObjectCreate("trend_comment_", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("trend_comment_", text_2976, 7, "Verdana", colortext);
      ObjectSet("trend_comment_", OBJPROP_CORNER, 3);
      ObjectSet("trend_comment_", OBJPROP_XDISTANCE, X_box + 46);
      ObjectSet("trend_comment_", OBJPROP_YDISTANCE, Y_box + 107);
      ObjectCreate("prop_value", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("prop_value", " " + DoubleToStr(Ld_2968, 0) + "%", 9, "Arial Black", color_2984);
      ObjectSet("prop_value", OBJPROP_CORNER, 3);
      ObjectSet("prop_value", OBJPROP_XDISTANCE, X_box + 13);
      ObjectSet("prop_value", OBJPROP_YDISTANCE, Y_box + 104);
      ObjectCreate("_line2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line2", "----------------------------------------------", 9, "Arial", colorline);
      ObjectSet("_line2", OBJPROP_CORNER, 3);
      ObjectSet("_line2", OBJPROP_XDISTANCE, X_box + 10);
      ObjectSet("_line2", OBJPROP_YDISTANCE, Y_box + 96);
      ObjectCreate("multi_logo", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("multi_logo", "-", 42, "Arial Black", G_color_432);
      ObjectSet("multi_logo", OBJPROP_CORNER, 3);
      ObjectSet("multi_logo", OBJPROP_XDISTANCE, X_box + 163);
      ObjectSet("multi_logo", OBJPROP_YDISTANCE, Y_box + 61);
      ObjectCreate("multi_logo2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("multi_logo2", "-", 42, "Arial Black", G_color_432);
      ObjectSet("multi_logo2", OBJPROP_CORNER, 3);
      ObjectSet("multi_logo2", OBJPROP_XDISTANCE, X_box + 173);
      ObjectSet("multi_logo2", OBJPROP_YDISTANCE, Y_box + 61);
      ObjectCreate("multi_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("multi_score", DoubleToStr(Gd_424, 0), 7, "Verdana", colorvalues);
      ObjectSet("multi_score", OBJPROP_CORNER, 3);
      ObjectSet("multi_score", OBJPROP_XDISTANCE, X_box + 171);
      ObjectSet("multi_score", OBJPROP_YDISTANCE, Y_box + 87);
      ObjectCreate("multi_comment", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("multi_comment", "Multi-Info+", 7, "Verdana", colortext);
      ObjectSet("multi_comment", OBJPROP_CORNER, 3);
      ObjectSet("multi_comment", OBJPROP_XDISTANCE, X_box + 13);
      ObjectSet("multi_comment", OBJPROP_YDISTANCE, Y_box + 87);
      ObjectCreate("ind_logo", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("ind_logo", "-", 42, "Arial Black", G_color_436);
      ObjectSet("ind_logo", OBJPROP_CORNER, 3);
      ObjectSet("ind_logo", OBJPROP_XDISTANCE, X_box + 163);
      ObjectSet("ind_logo", OBJPROP_YDISTANCE, Y_box + 46);
      ObjectCreate("ind_logo2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("ind_logo2", "-", 42, "Arial Black", G_color_436);
      ObjectSet("ind_logo2", OBJPROP_CORNER, 3);
      ObjectSet("ind_logo2", OBJPROP_XDISTANCE, X_box + 173);
      ObjectSet("ind_logo2", OBJPROP_YDISTANCE, Y_box + 46);
      ObjectCreate("ind_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("ind_score", DoubleToStr(Ld_2776, 0), 7, "Verdana", colorvalues);
      ObjectSet("ind_score", OBJPROP_CORNER, 3);
      ObjectSet("ind_score", OBJPROP_XDISTANCE, X_box + 175);
      ObjectSet("ind_score", OBJPROP_YDISTANCE, Y_box + 72);
      ObjectCreate("ind_comment", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("ind_comment", "Indice Strength", 7, "Verdana", colortext);
      ObjectSet("ind_comment", OBJPROP_CORNER, 3);
      ObjectSet("ind_comment", OBJPROP_XDISTANCE, X_box + 13);
      ObjectSet("ind_comment", OBJPROP_YDISTANCE, Y_box + 72);
      ObjectCreate("cur_logo", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("cur_logo", "-", 42, "Arial Black", G_color_444);
      ObjectSet("cur_logo", OBJPROP_CORNER, 3);
      ObjectSet("cur_logo", OBJPROP_XDISTANCE, X_box + 163);
      ObjectSet("cur_logo", OBJPROP_YDISTANCE, Y_box + 31);
      ObjectCreate("cur_logo2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("cur_logo2", "-", 42, "Arial Black", G_color_440);
      ObjectSet("cur_logo2", OBJPROP_CORNER, 3);
      ObjectSet("cur_logo2", OBJPROP_XDISTANCE, X_box + 173);
      ObjectSet("cur_logo2", OBJPROP_YDISTANCE, Y_box + 31);
      ObjectCreate("cur_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("cur_score", DoubleToStr(MathRound(Ld_2824), 0) + " - " + DoubleToStr(MathRound(Ld_2832), 0), 7, "Verdana", colorvalues);
      ObjectSet("cur_score", OBJPROP_CORNER, 3);
      ObjectSet("cur_score", OBJPROP_XDISTANCE, X_box + 166);
      ObjectSet("cur_score", OBJPROP_YDISTANCE, Y_box + 57);
      ObjectCreate("cur_comment", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("cur_comment", "Currency Pair Range", 7, "Verdana", colortext);
      ObjectSet("cur_comment", OBJPROP_CORNER, 3);
      ObjectSet("cur_comment", OBJPROP_XDISTANCE, X_box + 13);
      ObjectSet("cur_comment", OBJPROP_YDISTANCE, Y_box + 57);
      ObjectCreate("sn_logo", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("sn_logo", "-", 42, "Arial Black", G_color_448);
      ObjectSet("sn_logo", OBJPROP_CORNER, 3);
      ObjectSet("sn_logo", OBJPROP_XDISTANCE, X_box + 163);
      ObjectSet("sn_logo", OBJPROP_YDISTANCE, Y_box + 16);
      ObjectCreate("sn_logo2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("sn_logo2", "-", 42, "Arial Black", G_color_448);
      ObjectSet("sn_logo2", OBJPROP_CORNER, 3);
      ObjectSet("sn_logo2", OBJPROP_XDISTANCE, X_box + 173);
      ObjectSet("sn_logo2", OBJPROP_YDISTANCE, Y_box + 16);
      ObjectCreate("sn_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("sn_score", G_text_400, 7, "Wingdings", colorvalues);
      ObjectSet("sn_score", OBJPROP_CORNER, 3);
      ObjectSet("sn_score", OBJPROP_XDISTANCE, X_box + 173);
      ObjectSet("sn_score", OBJPROP_YDISTANCE, Y_box + 42);
      ObjectCreate("sn_comment", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("sn_comment", "MACD Indicator", 7, "Verdana", colortext);
      ObjectSet("sn_comment", OBJPROP_CORNER, 3);
      ObjectSet("sn_comment", OBJPROP_XDISTANCE, X_box + 13);
      ObjectSet("sn_comment", OBJPROP_YDISTANCE, Y_box + 42);
      ObjectCreate("fis_logo", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("fis_logo", "-", 42, "Arial Black", G_color_452);
      ObjectSet("fis_logo", OBJPROP_CORNER, 3);
      ObjectSet("fis_logo", OBJPROP_XDISTANCE, X_box + 163);
      ObjectSet("fis_logo", OBJPROP_YDISTANCE, Y_box + 1);
      ObjectCreate("fis_logo2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("fis_logo2", "-", 42, "Arial Black", G_color_452);
      ObjectSet("fis_logo2", OBJPROP_CORNER, 3);
      ObjectSet("fis_logo2", OBJPROP_XDISTANCE, X_box + 173);
      ObjectSet("fis_logo2", OBJPROP_YDISTANCE, Y_box + 1);
      ObjectCreate("fis_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("fis_score", G_text_412, 7, "Wingdings", colorvalues);
      ObjectSet("fis_score", OBJPROP_CORNER, 3);
      ObjectSet("fis_score", OBJPROP_XDISTANCE, X_box + 173);
      ObjectSet("fis_score", OBJPROP_YDISTANCE, Y_box + 28);
      ObjectCreate("fis_comment", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("fis_comment", "Stochastic Indicator", 7, "Verdana", colortext);
      ObjectSet("fis_comment", OBJPROP_CORNER, 3);
      ObjectSet("fis_comment", OBJPROP_XDISTANCE, X_box + 13);
      ObjectSet("fis_comment", OBJPROP_YDISTANCE, Y_box + 27);
      ObjectCreate("_line3", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line3", "----------------------------------------------", 9, "Arial", colorline);
      ObjectSet("_line3", OBJPROP_CORNER, 3);
      ObjectSet("_line3", OBJPROP_XDISTANCE, X_box + 10);
      ObjectSet("_line3", OBJPROP_YDISTANCE, Y_box + 17);
      ObjectCreate("copyright", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("copyright", "»»»  Ultra Wizard 2008  «««", 8, "Arial Narrow", colorline);
      ObjectSet("copyright", OBJPROP_CORNER, 3);
      ObjectSet("copyright", OBJPROP_XDISTANCE, X_box + 12);
      ObjectSet("copyright", OBJPROP_YDISTANCE, Y_box + 11);
   } else {
      ObjectCreate("_symbol_", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_symbol_", text_2996, 7, "Arial Black", colorsymbol);
      ObjectSet("_symbol_", OBJPROP_CORNER, 3);
      ObjectSet("_symbol_", OBJPROP_XDISTANCE, X_box + 19);
      ObjectSet("_symbol_", OBJPROP_YDISTANCE, Y_box + 150);
      ObjectCreate("_line1", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line1", "-----------------------------------", 9, "Arial", colorline);
      ObjectSet("_line1", OBJPROP_CORNER, 3);
      ObjectSet("_line1", OBJPROP_ANGLE, 90);
      ObjectSet("_line1", OBJPROP_XDISTANCE, X_box + 60);
      ObjectSet("_line1", OBJPROP_YDISTANCE, Y_box + 149);
      ObjectCreate("trend_logo_1", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("trend_logo_1", ".:", 14, "Arial Black", color_2988);
      ObjectSet("trend_logo_1", OBJPROP_CORNER, 3);
      ObjectSet("trend_logo_1", OBJPROP_XDISTANCE, X_box + 39);
      ObjectSet("trend_logo_1", OBJPROP_YDISTANCE, Y_box + 130);
      ObjectCreate("trend_logo_2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("trend_logo_2", ":.", 14, "Arial Black", color_2992);
      ObjectSet("trend_logo_2", OBJPROP_CORNER, 3);
      ObjectSet("trend_logo_2", OBJPROP_XDISTANCE, X_box + 28);
      ObjectSet("trend_logo_2", OBJPROP_YDISTANCE, Y_box + 130);
      ObjectCreate("_line6", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line6", "------------", 9, "Arial", colorline);
      ObjectSet("_line6", OBJPROP_CORNER, 3);
      ObjectSet("_line6", OBJPROP_XDISTANCE, X_box + 16);
      ObjectSet("_line6", OBJPROP_YDISTANCE, Y_box + 125);
      if (Ld_2968 > 99.0) Li_3004 = 0;
      else {
         if (Ld_2968 > 9.9) Li_3004 = 2;
         else Li_3004 = 7;
      }
      ObjectCreate("prop_value", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("prop_value", " " + DoubleToStr(Ld_2968, 0) + "%", 12, "Arial Black", color_2984);
      ObjectSet("prop_value", OBJPROP_CORNER, 3);
      ObjectSet("prop_value", OBJPROP_XDISTANCE, Li_3004 + 18 + X_box);
      ObjectSet("prop_value", OBJPROP_YDISTANCE, Y_box + 110);
      ObjectCreate("_line2", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line2", "-----------------------------------", 9, "Arial", colorline);
      ObjectSet("_line2", OBJPROP_CORNER, 3);
      ObjectSet("_line2", OBJPROP_ANGLE, 90);
      ObjectSet("_line2", OBJPROP_XDISTANCE, X_box + 7);
      ObjectSet("_line2", OBJPROP_YDISTANCE, Y_box + 149);
      DrawBackBoxes("multi_logo1", X_box + 15, Y_box + 81, G_color_432);
      DrawBackBoxes("multi_logo2", X_box + 38, Y_box + 81, G_color_432);
      ObjectCreate("multi_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("multi_score", DoubleToStr(Gd_424, 0), 14, "Arial Black", colorvalues);
      ObjectSet("multi_score", OBJPROP_CORNER, 3);
      ObjectSet("multi_score", OBJPROP_XDISTANCE, X_box + 28);
      ObjectSet("multi_score", OBJPROP_YDISTANCE, Y_box + 86);
      DrawBackBoxes("ind_logo1", X_box + 15, Y_box + 61, G_color_436);
      DrawBackBoxes("ind_logo2", X_box + 38, Y_box + 61, G_color_436);
      ObjectCreate("ind_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("ind_score", DoubleToStr(Ld_2776, 0), 14, "Arial Black", colorvalues);
      ObjectSet("ind_score", OBJPROP_CORNER, 3);
      ObjectSet("ind_score", OBJPROP_XDISTANCE, X_box + 34);
      ObjectSet("ind_score", OBJPROP_YDISTANCE, Y_box + 66);
      DrawBackBoxes("cur_logo1", X_box + 15, Y_box + 41, G_color_444);
      DrawBackBoxes("cur_logo2", X_box + 38, Y_box + 41, G_color_440);
      ObjectCreate("cur_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("cur_score", DoubleToStr(MathRound(Ld_2824), 0) + " - " + DoubleToStr(MathRound(Ld_2832), 0), 14, "Arial Black", colorvalues);
      ObjectSet("cur_score", OBJPROP_CORNER, 3);
      ObjectSet("cur_score", OBJPROP_XDISTANCE, X_box + 18);
      ObjectSet("cur_score", OBJPROP_YDISTANCE, Y_box + 46);
      DrawBackBoxes("sn_logo1", X_box + 15, Y_box + 21, G_color_448);
      DrawBackBoxes("sn_logo2", X_box + 38, Y_box + 21, G_color_448);
      ObjectCreate("sn_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("sn_score", G_text_400, 14, "Wingdings", colorvalues);
      ObjectSet("sn_score", OBJPROP_CORNER, 3);
      ObjectSet("sn_score", OBJPROP_XDISTANCE, X_box + 30);
      ObjectSet("sn_score", OBJPROP_YDISTANCE, Y_box + 28);
      DrawBackBoxes("fis_logo1", X_box + 15, Y_box + 1, G_color_452);
      DrawBackBoxes("fis_logo2", X_box + 38, Y_box + 1, G_color_452);
      ObjectCreate("fis_score", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("fis_score", G_text_412, 14, "Wingdings", colorvalues);
      ObjectSet("fis_score", OBJPROP_CORNER, 3);
      ObjectSet("fis_score", OBJPROP_XDISTANCE, X_box + 30);
      ObjectSet("fis_score", OBJPROP_YDISTANCE, Y_box + 8);
      ObjectCreate("_line3", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line3", "------------", 9, "Arial", colorline);
      ObjectSet("_line3", OBJPROP_CORNER, 3);
      ObjectSet("_line3", OBJPROP_XDISTANCE, X_box + 16);
      ObjectSet("_line3", OBJPROP_YDISTANCE, Y_box + 143);
      ObjectCreate("_line4", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line4", "------------", 9, "Arial", colorline);
      ObjectSet("_line4", OBJPROP_CORNER, 3);
      ObjectSet("_line4", OBJPROP_XDISTANCE, X_box + 16);
      ObjectSet("_line4", OBJPROP_YDISTANCE, Y_box + 103);
      ObjectCreate("_line5", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("_line5", "------------", 9, "Arial", colorline);
      ObjectSet("_line5", OBJPROP_CORNER, 3);
      ObjectSet("_line5", OBJPROP_XDISTANCE, X_box + 16);
      ObjectSet("_line5", OBJPROP_YDISTANCE, Y_box + 1);
      ObjectCreate("copyright", OBJ_LABEL, 0, 0, 0);
      ObjectSetText("copyright", "Ultra Wizard 2008", 8, "Arial Narrow", colorline);
      ObjectSet("copyright", OBJPROP_CORNER, 3);
      ObjectSet("copyright", OBJPROP_ANGLE, 90);
      ObjectSet("copyright", OBJPROP_XDISTANCE, X_box + 1);
      ObjectSet("copyright", OBJPROP_YDISTANCE, Y_box + 148);
   }
   return (0);
}

int Lookup(double Ad_0) {
   int Li_ret_8;
   int Lia_12[10] = {0, 3, 10, 25, 40, 50, 60, 75, 90, 97};
   if (Ad_0 <= Lia_12[0]) Li_ret_8 = 0;
   else {
      if (Ad_0 < Lia_12[1]) Li_ret_8 = 0;
      else {
         if (Ad_0 < Lia_12[2]) Li_ret_8 = 1;
         else {
            if (Ad_0 < Lia_12[3]) Li_ret_8 = 2;
            else {
               if (Ad_0 < Lia_12[4]) Li_ret_8 = 3;
               else {
                  if (Ad_0 < Lia_12[5]) Li_ret_8 = 4;
                  else {
                     if (Ad_0 < Lia_12[6]) Li_ret_8 = 5;
                     else {
                        if (Ad_0 < Lia_12[7]) Li_ret_8 = 6;
                        else {
                           if (Ad_0 < Lia_12[8]) Li_ret_8 = 7;
                           else {
                              if (Ad_0 < Lia_12[9]) Li_ret_8 = 8;
                              else Li_ret_8 = 9;
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }
   return (Li_ret_8);
}

double GetPoint(string As_0) {
   double Ld_ret_8 = 0.0001;
   double Ld_ret_16 = 0.01;
   string Ls_24 = StringSubstr(As_0, 0, 6);
   if (Ls_24 == "USDJPY") return (Ld_ret_16);
   if (Ls_24 == "EURJPY") return (Ld_ret_16);
   if (Ls_24 == "GBPJPY") return (Ld_ret_16);
   if (Ls_24 == "AUDJPY") return (Ld_ret_16);
   if (Ls_24 == "NZDJPY") return (Ld_ret_16);
   if (Ls_24 == "CHFJPY") return (Ld_ret_16);
   return (Ld_ret_8);
}

int iLookup(double Ad_0) {
   int Li_ret_8;
   int Lia_12[10] = {0, 3, 10, 25, 40, 50, 60, 75, 90, 97};
   if (Ad_0 <= Lia_12[0]) Li_ret_8 = 0;
   else {
      if (Ad_0 < Lia_12[1]) Li_ret_8 = 0;
      else {
         if (Ad_0 < Lia_12[2]) Li_ret_8 = 1;
         else {
            if (Ad_0 < Lia_12[3]) Li_ret_8 = 2;
            else {
               if (Ad_0 < Lia_12[4]) Li_ret_8 = 3;
               else {
                  if (Ad_0 < Lia_12[5]) Li_ret_8 = 4;
                  else {
                     if (Ad_0 < Lia_12[6]) Li_ret_8 = 5;
                     else {
                        if (Ad_0 < Lia_12[7]) Li_ret_8 = 6;
                        else {
                           if (Ad_0 < Lia_12[8]) Li_ret_8 = 7;
                           else {
                              if (Ad_0 < Lia_12[9]) Li_ret_8 = 8;
                              else Li_ret_8 = 9;
                           }
                        }
                     }
                  }
               }
            }
         }
      }
   }
   return (Li_ret_8);
}

int DelUnauthorized() {
   ObjectDelete("_Alert1");
   ObjectDelete("_Alert2");
   ObjectDelete("_Alert3");
   ObjectDelete("_Alert4");
   return (0);
}

void DrawBackBoxes(string As_0, int A_x_8, int Ai_12, color A_color_16) {
   string name_20;
   for (int count_28 = 0; count_28 < 6; count_28++) {
      name_20 = "back_" + As_0 + count_28;
      if (ObjectFind(name_20) == -1) ObjectCreate(name_20, OBJ_LABEL, 0, 0, 0);
      ObjectSet(name_20, OBJPROP_CORNER, 3);
      ObjectSet(name_20, OBJPROP_XDISTANCE, A_x_8);
      ObjectSet(name_20, OBJPROP_YDISTANCE, Ai_12 + 3 * count_28);
      ObjectSetText(name_20, "_", 40, "Arial Black", A_color_16);
   }
}
