/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : purebeam@gmail.com
*/
#property copyright "Copyright © 2008, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"

#property indicator_separate_window

int gi_unused_76 = 5;
int gi_unused_80 = 10;
int gi_unused_84 = 20;
int gi_unused_88 = 4;
int gi_unused_92 = 8;
int gi_unused_96 = 16;
int gi_unused_100 = 4;
int gi_unused_104 = 8;
int gi_unused_108 = 12;
int gi_unused_112;
extern double SD_Max_Range = 3.0;
extern double SD_Min_Range = 1.0;
extern int MODE_MA = 0;
extern int PRICE_TYPE = 0;
int g_timeframe_140 = PERIOD_M15;
int g_timeframe_144 = PERIOD_M30;
int g_timeframe_148 = PERIOD_H1;
double g_period_152 = 1.0;
double g_period_160 = 2.0;
double g_period_168 = 3.0;
double g_period_176 = 4.0;
double g_period_184 = 2.0;
double g_period_192 = 4.0;
double g_period_200 = 6.0;
double g_period_208 = 8.0;
double g_period_216 = 6.0;
double g_period_224 = 12.0;
double g_period_232 = 18.0;
double g_period_240 = 24.0;

int init() {
   IndicatorShortName("~");
   if (Symbol() == "GBPJPY" || Symbol() == "EURJPY" || Symbol() == "USDJPY" || Symbol() == "GOLD" || Symbol() == "USDMXN") gi_unused_112 = 2;
   if (Symbol() == "GBPUSD" || Symbol() == "EURUSD" || Symbol() == "NZDUSD" || Symbol() == "USDCHF" || Symbol() == "USDCAD" || Symbol() == "AUDUSD" || Symbol() == "EURUSD" ||
      Symbol() == "EURCHF" || Symbol() == "EURGBP" || Symbol() == "EURCAD" || Symbol() == "EURAUD") gi_unused_112 = 4;
   return (0);
}

int deinit() {
   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;
   color l_color_576;
   string l_text_580;
   color l_color_588;
   string l_text_592;
   color l_color_600;
   string l_text_604;
   double ld_unused_612 = 0;
   double ld_unused_620 = 0;
   double ld_628 = 0;
   double ld_636 = 0;
   double ld_644 = 0;
   double l_ilow_652 = 0;
   double l_ihigh_660 = 0;
   double l_ilow_668 = 0;
   double l_ihigh_676 = 0;
   double l_ilow_684 = 0;
   double l_ihigh_692 = 0;
   string ls_unused_700 = "";
   double ld_unused_708 = 0;
   double ld_unused_716 = 0;
   double ld_unused_724 = 0;
   double ld_unused_732 = 0;
   double ld_unused_740 = 0;
   double ld_748 = 0;
   double ld_756 = 0;
   double ld_764 = 0;
   double ld_unused_772 = 0;
   double ld_unused_780 = 0;
   double ld_unused_788 = 0;
   double ld_unused_796 = 0;
   double ld_unused_804 = 0;
   double ld_unused_812 = 0;
   double ld_unused_820 = 0;
   double ld_unused_828 = 0;
   double ld_unused_836 = 0;
   double ld_unused_844 = 0;
   double ld_unused_852 = 0;
   double ld_unused_860 = 0;
   int li_unused_868 = 0;
   double ld_872 = (iHigh(NULL, PERIOD_D1, 1) - iLow(NULL, PERIOD_D1, 1)) / Point;
   double ld_880 = (iHigh(NULL, PERIOD_D1, 2) - iLow(NULL, PERIOD_D1, 2)) / Point;
   double ld_888 = (iHigh(NULL, PERIOD_D1, 3) - iLow(NULL, PERIOD_D1, 3)) / Point;
   double ld_896 = (iHigh(NULL, PERIOD_D1, 4) - iLow(NULL, PERIOD_D1, 4)) / Point;
   double ld_904 = (iHigh(NULL, PERIOD_D1, 5) - iLow(NULL, PERIOD_D1, 5)) / Point;
   double ld_912 = (iHigh(NULL, PERIOD_D1, 6) - iLow(NULL, PERIOD_D1, 6)) / Point;
   double ld_920 = (iHigh(NULL, PERIOD_D1, 7) - iLow(NULL, PERIOD_D1, 7)) / Point;
   double ld_928 = (iHigh(NULL, PERIOD_D1, 8) - iLow(NULL, PERIOD_D1, 8)) / Point;
   double ld_936 = (iHigh(NULL, PERIOD_D1, 9) - iLow(NULL, PERIOD_D1, 9)) / Point;
   double ld_944 = (iHigh(NULL, PERIOD_D1, 10) - iLow(NULL, PERIOD_D1, 10)) / Point;
   double ld_952 = (iHigh(NULL, PERIOD_D1, 11) - iLow(NULL, PERIOD_D1, 11)) / Point;
   double ld_960 = (iHigh(NULL, PERIOD_D1, 12) - iLow(NULL, PERIOD_D1, 12)) / Point;
   double ld_968 = (iHigh(NULL, PERIOD_D1, 13) - iLow(NULL, PERIOD_D1, 13)) / Point;
   double ld_976 = (iHigh(NULL, PERIOD_D1, 14) - iLow(NULL, PERIOD_D1, 14)) / Point;
   double ld_984 = (iHigh(NULL, PERIOD_D1, 15) - iLow(NULL, PERIOD_D1, 15)) / Point;
   double ld_992 = (iHigh(NULL, PERIOD_D1, 16) - iLow(NULL, PERIOD_D1, 16)) / Point;
   double ld_1000 = (iHigh(NULL, PERIOD_D1, 17) - iLow(NULL, PERIOD_D1, 17)) / Point;
   double ld_1008 = (iHigh(NULL, PERIOD_D1, 18) - iLow(NULL, PERIOD_D1, 18)) / Point;
   double ld_1016 = (iHigh(NULL, PERIOD_D1, 19) - iLow(NULL, PERIOD_D1, 19)) / Point;
   double ld_1024 = (iHigh(NULL, PERIOD_D1, 20) - iLow(NULL, PERIOD_D1, 20)) / Point;
   double ld_1032 = (iHigh(NULL, PERIOD_W1, 1) - iLow(NULL, PERIOD_W1, 1)) / Point;
   double ld_1040 = (iHigh(NULL, PERIOD_W1, 2) - iLow(NULL, PERIOD_W1, 2)) / Point;
   double ld_1048 = (iHigh(NULL, PERIOD_W1, 3) - iLow(NULL, PERIOD_W1, 3)) / Point;
   double ld_1056 = (iHigh(NULL, PERIOD_W1, 4) - iLow(NULL, PERIOD_W1, 4)) / Point;
   double ld_1064 = (iHigh(NULL, PERIOD_W1, 5) - iLow(NULL, PERIOD_W1, 5)) / Point;
   double ld_1072 = (iHigh(NULL, PERIOD_W1, 6) - iLow(NULL, PERIOD_W1, 6)) / Point;
   double ld_1080 = (iHigh(NULL, PERIOD_W1, 7) - iLow(NULL, PERIOD_W1, 7)) / Point;
   double ld_1088 = (iHigh(NULL, PERIOD_W1, 8) - iLow(NULL, PERIOD_W1, 8)) / Point;
   double ld_1096 = (iHigh(NULL, PERIOD_W1, 9) - iLow(NULL, PERIOD_W1, 9)) / Point;
   double ld_1104 = (iHigh(NULL, PERIOD_W1, 10) - iLow(NULL, PERIOD_W1, 10)) / Point;
   double ld_1112 = (iHigh(NULL, PERIOD_W1, 11) - iLow(NULL, PERIOD_W1, 11)) / Point;
   double ld_1120 = (iHigh(NULL, PERIOD_W1, 12) - iLow(NULL, PERIOD_W1, 12)) / Point;
   double ld_1128 = (iHigh(NULL, PERIOD_W1, 13) - iLow(NULL, PERIOD_W1, 13)) / Point;
   double ld_1136 = (iHigh(NULL, PERIOD_W1, 14) - iLow(NULL, PERIOD_W1, 14)) / Point;
   double ld_1144 = (iHigh(NULL, PERIOD_W1, 15) - iLow(NULL, PERIOD_W1, 15)) / Point;
   double ld_1152 = (iHigh(NULL, PERIOD_W1, 16) - iLow(NULL, PERIOD_W1, 16)) / Point;
   double ld_1160 = (iHigh(NULL, PERIOD_MN1, 1) - iLow(NULL, PERIOD_MN1, 1)) / Point;
   double ld_1168 = (iHigh(NULL, PERIOD_MN1, 2) - iLow(NULL, PERIOD_MN1, 2)) / Point;
   double ld_1176 = (iHigh(NULL, PERIOD_MN1, 3) - iLow(NULL, PERIOD_MN1, 3)) / Point;
   double ld_1184 = (iHigh(NULL, PERIOD_MN1, 4) - iLow(NULL, PERIOD_MN1, 4)) / Point;
   double ld_1192 = (iHigh(NULL, PERIOD_MN1, 5) - iLow(NULL, PERIOD_MN1, 5)) / Point;
   double ld_1200 = (iHigh(NULL, PERIOD_MN1, 6) - iLow(NULL, PERIOD_MN1, 6)) / Point;
   double ld_1208 = (iHigh(NULL, PERIOD_MN1, 7) - iLow(NULL, PERIOD_MN1, 7)) / Point;
   double ld_1216 = (iHigh(NULL, PERIOD_MN1, 8) - iLow(NULL, PERIOD_MN1, 8)) / Point;
   double ld_1224 = (iHigh(NULL, PERIOD_MN1, 9) - iLow(NULL, PERIOD_MN1, 9)) / Point;
   double ld_1232 = (iHigh(NULL, PERIOD_MN1, 10) - iLow(NULL, PERIOD_MN1, 10)) / Point;
   double ld_1240 = (iHigh(NULL, PERIOD_MN1, 11) - iLow(NULL, PERIOD_MN1, 11)) / Point;
   double ld_1248 = (iHigh(NULL, PERIOD_MN1, 12) - iLow(NULL, PERIOD_MN1, 12)) / Point;
   double ld_1256 = (ld_872 + ld_880 + ld_888 + ld_896 + ld_904 + ld_912 + ld_920 + ld_928 + ld_936 + ld_944 + ld_952 + ld_960 + ld_968 + ld_976 + ld_984 + ld_992 + ld_1000 +
      ld_1008 + ld_1016 + ld_1024) / 20.0;
   double ld_1264 = (ld_1032 + ld_1040 + ld_1048 + ld_1056 + ld_1064 + ld_1072 + ld_1080 + ld_1088 + ld_1096 + ld_1104 + ld_1112 + ld_1120 + ld_1128 + ld_1136 + ld_1144 +
      ld_1152) / 16.0;
   double ld_1272 = (ld_1160 + ld_1168 + ld_1176 + ld_1184 + ld_1192 + ld_1200 + ld_1208 + ld_1216 + ld_1224 + ld_1232 + ld_1240 + ld_1248) / 12.0;
   double ld_1280 = MathPow(ld_872 - ld_1256, 2) + MathPow(ld_880 - ld_1256, 2) + MathPow(ld_888 - ld_1256, 2) + MathPow(ld_896 - ld_1256, 2) + MathPow(ld_904 - ld_1256, 2) + MathPow(ld_912 - ld_1256, 2) + MathPow(ld_920 - ld_1256, 2) + MathPow(ld_928 - ld_1256, 2) + MathPow(ld_936 - ld_1256, 2) + MathPow(ld_944 - ld_1256, 2) + MathPow(ld_952 - ld_1256, 2) + MathPow(ld_960 - ld_1256, 2) + MathPow(ld_968 - ld_1256, 2) + MathPow(ld_976 - ld_1256, 2) + MathPow(ld_984 - ld_1256, 2) + MathPow(ld_992 - ld_1256, 2) + MathPow(ld_1000 - ld_1256, 2) + MathPow(ld_1008 - ld_1256, 2) + MathPow(ld_1016 - ld_1256, 2) + MathPow(ld_1024 - ld_1256, 2);
   double ld_1288 = MathPow(ld_1032 - ld_1264, 2) + MathPow(ld_1040 - ld_1264, 2) + MathPow(ld_1048 - ld_1264, 2) + MathPow(ld_1056 - ld_1264, 2) + MathPow(ld_1064 - ld_1264, 2) + MathPow(ld_1072 - ld_1264, 2) + MathPow(ld_1080 - ld_1264, 2) + MathPow(ld_1088 - ld_1264, 2) + MathPow(ld_1096 - ld_1264, 2) + MathPow(ld_1104 - ld_1264, 2) + MathPow(ld_1112 - ld_1264, 2) + MathPow(ld_1120 - ld_1264, 2) + MathPow(ld_1128 - ld_1264, 2) + MathPow(ld_1136 - ld_1264, 2) + MathPow(ld_1144 - ld_1264, 2) + MathPow(ld_1152 - ld_1264, 2);
   double ld_1296 = MathPow(ld_1160 - ld_1272, 2) + MathPow(ld_1168 - ld_1272, 2) + MathPow(ld_1176 - ld_1272, 2) + MathPow(ld_1184 - ld_1272, 2) + MathPow(ld_1192 - ld_1272, 2) + MathPow(ld_1200 - ld_1272, 2) + MathPow(ld_1208 - ld_1272, 2) + MathPow(ld_1216 - ld_1272, 2) + MathPow(ld_1224 - ld_1272, 2) + MathPow(ld_1232 - ld_1272, 2) + MathPow(ld_1240 - ld_1272, 2) + MathPow(ld_1248 - ld_1272, 2);
   double ld_1304 = SD_Max_Range * MathSqrt(ld_1280 / 20.0);
   double ld_1312 = SD_Max_Range * MathSqrt(ld_1288 / 16.0);
   double ld_1320 = SD_Max_Range * MathSqrt(ld_1296 / 12.0);
   double ld_1328 = SD_Min_Range * MathSqrt(ld_1280 / 20.0);
   double ld_1336 = SD_Min_Range * MathSqrt(ld_1288 / 16.0);
   double ld_1344 = SD_Min_Range * MathSqrt(ld_1296 / 12.0);
   double ld_1352 = ld_1256 + ld_1304;
   double ld_1360 = ld_1256 - ld_1328;
   double ld_1368 = ld_1264 + ld_1312;
   double ld_1376 = ld_1264 - ld_1336;
   double ld_1384 = ld_1272 + ld_1320;
   double ld_1392 = ld_1272 - ld_1344;
   if (ld_1360 < 0.0) ld_1360 = 0;
   if (ld_1376 < 0.0) ld_1376 = 0;
   if (ld_1392 < 0.0) ld_1392 = 0;
   l_ilow_652 = iLow(NULL, PERIOD_D1, 0);
   l_ihigh_660 = iHigh(NULL, PERIOD_D1, 0);
   ld_628 = (l_ihigh_660 - l_ilow_652) / Point;
   l_ilow_668 = iLow(NULL, PERIOD_W1, 0);
   l_ihigh_676 = iHigh(NULL, PERIOD_W1, 0);
   ld_636 = (l_ihigh_676 - l_ilow_668) / Point;
   l_ilow_684 = iLow(NULL, PERIOD_MN1, 0);
   l_ihigh_692 = iHigh(NULL, PERIOD_MN1, 0);
   ld_644 = (l_ihigh_692 - l_ilow_684) / Point;
   double ld_1400 = 100.0 * (iHigh(NULL, PERIOD_D1, 1) - iOpen(NULL, PERIOD_D1, 1)) / iOpen(NULL, PERIOD_D1, 1);
   double ld_1408 = 100.0 * (iHigh(NULL, PERIOD_D1, 2) - iOpen(NULL, PERIOD_D1, 2)) / iOpen(NULL, PERIOD_D1, 2);
   double ld_1416 = 100.0 * (iHigh(NULL, PERIOD_D1, 3) - iOpen(NULL, PERIOD_D1, 3)) / iOpen(NULL, PERIOD_D1, 3);
   double ld_1424 = 100.0 * (iHigh(NULL, PERIOD_D1, 4) - iOpen(NULL, PERIOD_D1, 4)) / iOpen(NULL, PERIOD_D1, 4);
   double ld_1432 = 100.0 * (iHigh(NULL, PERIOD_D1, 5) - iOpen(NULL, PERIOD_D1, 5)) / iOpen(NULL, PERIOD_D1, 5);
   double ld_1440 = 100.0 * (iHigh(NULL, PERIOD_D1, 6) - iOpen(NULL, PERIOD_D1, 6)) / iOpen(NULL, PERIOD_D1, 6);
   double ld_1448 = 100.0 * (iHigh(NULL, PERIOD_D1, 7) - iOpen(NULL, PERIOD_D1, 7)) / iOpen(NULL, PERIOD_D1, 7);
   double ld_1456 = 100.0 * (iHigh(NULL, PERIOD_D1, 8) - iOpen(NULL, PERIOD_D1, 8)) / iOpen(NULL, PERIOD_D1, 8);
   double ld_1464 = 100.0 * (iHigh(NULL, PERIOD_D1, 9) - iOpen(NULL, PERIOD_D1, 9)) / iOpen(NULL, PERIOD_D1, 9);
   double ld_1472 = 100.0 * (iHigh(NULL, PERIOD_D1, 10) - iOpen(NULL, PERIOD_D1, 10)) / iOpen(NULL, PERIOD_D1, 10);
   double ld_1480 = 100.0 * (iHigh(NULL, PERIOD_D1, 11) - iOpen(NULL, PERIOD_D1, 11)) / iOpen(NULL, PERIOD_D1, 11);
   double ld_1488 = 100.0 * (iHigh(NULL, PERIOD_D1, 12) - iOpen(NULL, PERIOD_D1, 12)) / iOpen(NULL, PERIOD_D1, 12);
   double ld_1496 = 100.0 * (iHigh(NULL, PERIOD_D1, 13) - iOpen(NULL, PERIOD_D1, 13)) / iOpen(NULL, PERIOD_D1, 13);
   double ld_1504 = 100.0 * (iHigh(NULL, PERIOD_D1, 14) - iOpen(NULL, PERIOD_D1, 14)) / iOpen(NULL, PERIOD_D1, 14);
   double ld_1512 = 100.0 * (iHigh(NULL, PERIOD_D1, 15) - iOpen(NULL, PERIOD_D1, 15)) / iOpen(NULL, PERIOD_D1, 15);
   double ld_1520 = 100.0 * (iHigh(NULL, PERIOD_D1, 16) - iOpen(NULL, PERIOD_D1, 16)) / iOpen(NULL, PERIOD_D1, 16);
   double ld_1528 = 100.0 * (iHigh(NULL, PERIOD_D1, 17) - iOpen(NULL, PERIOD_D1, 17)) / iOpen(NULL, PERIOD_D1, 17);
   double ld_1536 = 100.0 * (iHigh(NULL, PERIOD_D1, 18) - iOpen(NULL, PERIOD_D1, 18)) / iOpen(NULL, PERIOD_D1, 18);
   double ld_1544 = 100.0 * (iHigh(NULL, PERIOD_D1, 19) - iOpen(NULL, PERIOD_D1, 19)) / iOpen(NULL, PERIOD_D1, 19);
   double ld_1552 = 100.0 * (iHigh(NULL, PERIOD_D1, 20) - iOpen(NULL, PERIOD_D1, 20)) / iOpen(NULL, PERIOD_D1, 20);
   double ld_1560 = 100.0 * (iOpen(NULL, PERIOD_D1, 1) - iLow(NULL, PERIOD_D1, 1)) / iOpen(NULL, PERIOD_D1, 1);
   double ld_1568 = 100.0 * (iOpen(NULL, PERIOD_D1, 2) - iLow(NULL, PERIOD_D1, 2)) / iOpen(NULL, PERIOD_D1, 2);
   double ld_1576 = 100.0 * (iOpen(NULL, PERIOD_D1, 3) - iLow(NULL, PERIOD_D1, 3)) / iOpen(NULL, PERIOD_D1, 3);
   double ld_1584 = 100.0 * (iOpen(NULL, PERIOD_D1, 4) - iLow(NULL, PERIOD_D1, 4)) / iOpen(NULL, PERIOD_D1, 4);
   double ld_1592 = 100.0 * (iOpen(NULL, PERIOD_D1, 5) - iLow(NULL, PERIOD_D1, 5)) / iOpen(NULL, PERIOD_D1, 5);
   double ld_1600 = 100.0 * (iOpen(NULL, PERIOD_D1, 6) - iLow(NULL, PERIOD_D1, 6)) / iOpen(NULL, PERIOD_D1, 6);
   double ld_1608 = 100.0 * (iOpen(NULL, PERIOD_D1, 7) - iLow(NULL, PERIOD_D1, 7)) / iOpen(NULL, PERIOD_D1, 7);
   double ld_1616 = 100.0 * (iOpen(NULL, PERIOD_D1, 8) - iLow(NULL, PERIOD_D1, 8)) / iOpen(NULL, PERIOD_D1, 8);
   double ld_1624 = 100.0 * (iOpen(NULL, PERIOD_D1, 9) - iLow(NULL, PERIOD_D1, 9)) / iOpen(NULL, PERIOD_D1, 9);
   double ld_1632 = 100.0 * (iOpen(NULL, PERIOD_D1, 10) - iLow(NULL, PERIOD_D1, 10)) / iOpen(NULL, PERIOD_D1, 10);
   double ld_1640 = 100.0 * (iOpen(NULL, PERIOD_D1, 11) - iLow(NULL, PERIOD_D1, 11)) / iOpen(NULL, PERIOD_D1, 11);
   double ld_1648 = 100.0 * (iOpen(NULL, PERIOD_D1, 12) - iLow(NULL, PERIOD_D1, 12)) / iOpen(NULL, PERIOD_D1, 12);
   double ld_1656 = 100.0 * (iOpen(NULL, PERIOD_D1, 13) - iLow(NULL, PERIOD_D1, 13)) / iOpen(NULL, PERIOD_D1, 13);
   double ld_1664 = 100.0 * (iOpen(NULL, PERIOD_D1, 14) - iLow(NULL, PERIOD_D1, 14)) / iOpen(NULL, PERIOD_D1, 14);
   double ld_1672 = 100.0 * (iOpen(NULL, PERIOD_D1, 15) - iLow(NULL, PERIOD_D1, 15)) / iOpen(NULL, PERIOD_D1, 15);
   double ld_1680 = 100.0 * (iOpen(NULL, PERIOD_D1, 16) - iLow(NULL, PERIOD_D1, 16)) / iOpen(NULL, PERIOD_D1, 16);
   double ld_1688 = 100.0 * (iOpen(NULL, PERIOD_D1, 17) - iLow(NULL, PERIOD_D1, 17)) / iOpen(NULL, PERIOD_D1, 17);
   double ld_1696 = 100.0 * (iOpen(NULL, PERIOD_D1, 18) - iLow(NULL, PERIOD_D1, 18)) / iOpen(NULL, PERIOD_D1, 18);
   double ld_1704 = 100.0 * (iOpen(NULL, PERIOD_D1, 19) - iLow(NULL, PERIOD_D1, 19)) / iOpen(NULL, PERIOD_D1, 19);
   double ld_1712 = 100.0 * (iOpen(NULL, PERIOD_D1, 20) - iLow(NULL, PERIOD_D1, 20)) / iOpen(NULL, PERIOD_D1, 20);
   double ld_1720 = 100.0 * (iHigh(NULL, PERIOD_W1, 1) - iOpen(NULL, PERIOD_W1, 1)) / iOpen(NULL, PERIOD_W1, 1);
   double ld_1728 = 100.0 * (iHigh(NULL, PERIOD_W1, 2) - iOpen(NULL, PERIOD_W1, 2)) / iOpen(NULL, PERIOD_W1, 2);
   double ld_1736 = 100.0 * (iHigh(NULL, PERIOD_W1, 3) - iOpen(NULL, PERIOD_W1, 3)) / iOpen(NULL, PERIOD_W1, 3);
   double ld_1744 = 100.0 * (iHigh(NULL, PERIOD_W1, 4) - iOpen(NULL, PERIOD_W1, 4)) / iOpen(NULL, PERIOD_W1, 4);
   double ld_1752 = 100.0 * (iHigh(NULL, PERIOD_W1, 5) - iOpen(NULL, PERIOD_W1, 5)) / iOpen(NULL, PERIOD_W1, 5);
   double ld_1760 = 100.0 * (iHigh(NULL, PERIOD_W1, 6) - iOpen(NULL, PERIOD_W1, 6)) / iOpen(NULL, PERIOD_W1, 6);
   double ld_1768 = 100.0 * (iHigh(NULL, PERIOD_W1, 7) - iOpen(NULL, PERIOD_W1, 7)) / iOpen(NULL, PERIOD_W1, 7);
   double ld_1776 = 100.0 * (iHigh(NULL, PERIOD_W1, 8) - iOpen(NULL, PERIOD_W1, 8)) / iOpen(NULL, PERIOD_W1, 8);
   double ld_1784 = 100.0 * (iHigh(NULL, PERIOD_W1, 9) - iOpen(NULL, PERIOD_W1, 9)) / iOpen(NULL, PERIOD_W1, 9);
   double ld_1792 = 100.0 * (iHigh(NULL, PERIOD_W1, 10) - iOpen(NULL, PERIOD_W1, 10)) / iOpen(NULL, PERIOD_W1, 10);
   double ld_1800 = 100.0 * (iHigh(NULL, PERIOD_W1, 11) - iOpen(NULL, PERIOD_W1, 11)) / iOpen(NULL, PERIOD_W1, 11);
   double ld_1808 = 100.0 * (iHigh(NULL, PERIOD_W1, 12) - iOpen(NULL, PERIOD_W1, 12)) / iOpen(NULL, PERIOD_W1, 12);
   double ld_1816 = 100.0 * (iHigh(NULL, PERIOD_W1, 13) - iOpen(NULL, PERIOD_W1, 13)) / iOpen(NULL, PERIOD_W1, 13);
   double ld_1824 = 100.0 * (iHigh(NULL, PERIOD_W1, 14) - iOpen(NULL, PERIOD_W1, 14)) / iOpen(NULL, PERIOD_W1, 14);
   double ld_1832 = 100.0 * (iHigh(NULL, PERIOD_W1, 15) - iOpen(NULL, PERIOD_W1, 15)) / iOpen(NULL, PERIOD_W1, 15);
   double ld_1840 = 100.0 * (iHigh(NULL, PERIOD_W1, 16) - iOpen(NULL, PERIOD_W1, 16)) / iOpen(NULL, PERIOD_W1, 16);
   double ld_1848 = 100.0 * (iOpen(NULL, PERIOD_W1, 1) - iLow(NULL, PERIOD_W1, 1)) / iOpen(NULL, PERIOD_W1, 1);
   double ld_1856 = 100.0 * (iOpen(NULL, PERIOD_W1, 2) - iLow(NULL, PERIOD_W1, 2)) / iOpen(NULL, PERIOD_W1, 2);
   double ld_1864 = 100.0 * (iOpen(NULL, PERIOD_W1, 3) - iLow(NULL, PERIOD_W1, 3)) / iOpen(NULL, PERIOD_W1, 3);
   double ld_1872 = 100.0 * (iOpen(NULL, PERIOD_W1, 4) - iLow(NULL, PERIOD_W1, 4)) / iOpen(NULL, PERIOD_W1, 4);
   double ld_1880 = 100.0 * (iOpen(NULL, PERIOD_W1, 5) - iLow(NULL, PERIOD_W1, 5)) / iOpen(NULL, PERIOD_W1, 5);
   double ld_1888 = 100.0 * (iOpen(NULL, PERIOD_W1, 6) - iLow(NULL, PERIOD_W1, 6)) / iOpen(NULL, PERIOD_W1, 6);
   double ld_1896 = 100.0 * (iOpen(NULL, PERIOD_W1, 7) - iLow(NULL, PERIOD_W1, 7)) / iOpen(NULL, PERIOD_W1, 7);
   double ld_1904 = 100.0 * (iOpen(NULL, PERIOD_W1, 8) - iLow(NULL, PERIOD_W1, 8)) / iOpen(NULL, PERIOD_W1, 8);
   double ld_1912 = 100.0 * (iOpen(NULL, PERIOD_W1, 9) - iLow(NULL, PERIOD_W1, 9)) / iOpen(NULL, PERIOD_W1, 9);
   double ld_1920 = 100.0 * (iOpen(NULL, PERIOD_W1, 10) - iLow(NULL, PERIOD_W1, 10)) / iOpen(NULL, PERIOD_W1, 10);
   double ld_1928 = 100.0 * (iOpen(NULL, PERIOD_W1, 11) - iLow(NULL, PERIOD_W1, 11)) / iOpen(NULL, PERIOD_W1, 11);
   double ld_1936 = 100.0 * (iOpen(NULL, PERIOD_W1, 12) - iLow(NULL, PERIOD_W1, 12)) / iOpen(NULL, PERIOD_W1, 12);
   double ld_1944 = 100.0 * (iOpen(NULL, PERIOD_W1, 13) - iLow(NULL, PERIOD_W1, 13)) / iOpen(NULL, PERIOD_W1, 13);
   double ld_1952 = 100.0 * (iOpen(NULL, PERIOD_W1, 14) - iLow(NULL, PERIOD_W1, 14)) / iOpen(NULL, PERIOD_W1, 14);
   double ld_1960 = 100.0 * (iOpen(NULL, PERIOD_W1, 15) - iLow(NULL, PERIOD_W1, 15)) / iOpen(NULL, PERIOD_W1, 15);
   double ld_1968 = 100.0 * (iOpen(NULL, PERIOD_W1, 16) - iLow(NULL, PERIOD_W1, 16)) / iOpen(NULL, PERIOD_W1, 16);
   double ld_1976 = 100.0 * (iHigh(NULL, PERIOD_MN1, 1) - iOpen(NULL, PERIOD_MN1, 1)) / iOpen(NULL, PERIOD_MN1, 1);
   double ld_1984 = 100.0 * (iHigh(NULL, PERIOD_MN1, 2) - iOpen(NULL, PERIOD_MN1, 2)) / iOpen(NULL, PERIOD_MN1, 2);
   double ld_1992 = 100.0 * (iHigh(NULL, PERIOD_MN1, 3) - iOpen(NULL, PERIOD_MN1, 3)) / iOpen(NULL, PERIOD_MN1, 3);
   double ld_2000 = 100.0 * (iHigh(NULL, PERIOD_MN1, 4) - iOpen(NULL, PERIOD_MN1, 4)) / iOpen(NULL, PERIOD_MN1, 4);
   double ld_2008 = 100.0 * (iHigh(NULL, PERIOD_MN1, 5) - iOpen(NULL, PERIOD_MN1, 5)) / iOpen(NULL, PERIOD_MN1, 5);
   double ld_2016 = 100.0 * (iHigh(NULL, PERIOD_MN1, 6) - iOpen(NULL, PERIOD_MN1, 6)) / iOpen(NULL, PERIOD_MN1, 6);
   double ld_2024 = 100.0 * (iHigh(NULL, PERIOD_MN1, 7) - iOpen(NULL, PERIOD_MN1, 7)) / iOpen(NULL, PERIOD_MN1, 7);
   double ld_2032 = 100.0 * (iHigh(NULL, PERIOD_MN1, 8) - iOpen(NULL, PERIOD_MN1, 8)) / iOpen(NULL, PERIOD_MN1, 8);
   double ld_2040 = 100.0 * (iHigh(NULL, PERIOD_MN1, 9) - iOpen(NULL, PERIOD_MN1, 9)) / iOpen(NULL, PERIOD_MN1, 9);
   double ld_2048 = 100.0 * (iHigh(NULL, PERIOD_MN1, 10) - iOpen(NULL, PERIOD_MN1, 10)) / iOpen(NULL, PERIOD_MN1, 10);
   double ld_2056 = 100.0 * (iHigh(NULL, PERIOD_MN1, 11) - iOpen(NULL, PERIOD_MN1, 11)) / iOpen(NULL, PERIOD_MN1, 11);
   double ld_2064 = 100.0 * (iHigh(NULL, PERIOD_MN1, 12) - iOpen(NULL, PERIOD_MN1, 12)) / iOpen(NULL, PERIOD_MN1, 12);
   double ld_2072 = 100.0 * (iOpen(NULL, PERIOD_MN1, 1) - iLow(NULL, PERIOD_MN1, 1)) / iOpen(NULL, PERIOD_MN1, 1);
   double ld_2080 = 100.0 * (iOpen(NULL, PERIOD_MN1, 2) - iLow(NULL, PERIOD_MN1, 2)) / iOpen(NULL, PERIOD_MN1, 2);
   double ld_2088 = 100.0 * (iOpen(NULL, PERIOD_MN1, 3) - iLow(NULL, PERIOD_MN1, 3)) / iOpen(NULL, PERIOD_MN1, 3);
   double ld_2096 = 100.0 * (iOpen(NULL, PERIOD_MN1, 4) - iLow(NULL, PERIOD_MN1, 4)) / iOpen(NULL, PERIOD_MN1, 4);
   double ld_2104 = 100.0 * (iOpen(NULL, PERIOD_MN1, 5) - iLow(NULL, PERIOD_MN1, 5)) / iOpen(NULL, PERIOD_MN1, 5);
   double ld_2112 = 100.0 * (iOpen(NULL, PERIOD_MN1, 6) - iLow(NULL, PERIOD_MN1, 6)) / iOpen(NULL, PERIOD_MN1, 6);
   double ld_2120 = 100.0 * (iOpen(NULL, PERIOD_MN1, 7) - iLow(NULL, PERIOD_MN1, 7)) / iOpen(NULL, PERIOD_MN1, 7);
   double ld_2128 = 100.0 * (iOpen(NULL, PERIOD_MN1, 8) - iLow(NULL, PERIOD_MN1, 8)) / iOpen(NULL, PERIOD_MN1, 8);
   double ld_2136 = 100.0 * (iOpen(NULL, PERIOD_MN1, 9) - iLow(NULL, PERIOD_MN1, 9)) / iOpen(NULL, PERIOD_MN1, 9);
   double ld_2144 = 100.0 * (iOpen(NULL, PERIOD_MN1, 10) - iLow(NULL, PERIOD_MN1, 10)) / iOpen(NULL, PERIOD_MN1, 10);
   double ld_2152 = 100.0 * (iOpen(NULL, PERIOD_MN1, 11) - iLow(NULL, PERIOD_MN1, 11)) / iOpen(NULL, PERIOD_MN1, 11);
   double ld_2160 = 100.0 * (iOpen(NULL, PERIOD_MN1, 12) - iLow(NULL, PERIOD_MN1, 12)) / iOpen(NULL, PERIOD_MN1, 12);
   ld_748 = (ld_1400 + ld_1408 + ld_1416 + ld_1424 + ld_1432 + ld_1440 + ld_1448 + ld_1456 + ld_1464 + ld_1472 + ld_1480 + ld_1488 + ld_1496 + ld_1504 + ld_1512 + ld_1520 +
      ld_1528 + ld_1536 + ld_1544 + ld_1552 + ld_1560 + ld_1568 + ld_1576 + ld_1584 + ld_1592 + ld_1600 + ld_1608 + ld_1616 + ld_1624 + ld_1632 + ld_1640 + ld_1648 + ld_1656 +
      ld_1664 + ld_1672 + ld_1680 + ld_1688 + ld_1696 + ld_1704 + ld_1712) / 40.0;
   ld_756 = (ld_1720 + ld_1728 + ld_1736 + ld_1744 + ld_1752 + ld_1760 + ld_1768 + ld_1776 + ld_1784 + ld_1792 + ld_1800 + ld_1808 + ld_1816 + ld_1824 + ld_1832 + ld_1840 +
      ld_1848 + ld_1856 + ld_1864 + ld_1872 + ld_1880 + ld_1888 + ld_1896 + ld_1904 + ld_1912 + ld_1920 + ld_1928 + ld_1936 + ld_1944 + ld_1952 + ld_1960 + ld_1968) / 32.0;
   ld_764 = (ld_1976 + ld_1984 + ld_1992 + ld_2000 + ld_2008 + ld_2016 + ld_2024 + ld_2032 + ld_2040 + ld_2048 + ld_2056 + ld_2064 + ld_2072 + ld_2080 + ld_2088 + ld_2096 +
      ld_2104 + ld_2112 + ld_2120 + ld_2128 + ld_2136 + ld_2144 + ld_2152 + ld_2160) / 24.0;
   double l_ima_2168 = iMA(NULL, g_timeframe_140, g_period_152, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2176 = iMA(NULL, g_timeframe_140, g_period_152, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2184 = iMA(NULL, g_timeframe_140, g_period_160, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2192 = iMA(NULL, g_timeframe_140, g_period_160, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2200 = iMA(NULL, g_timeframe_140, g_period_168, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2208 = iMA(NULL, g_timeframe_140, g_period_168, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2216 = iMA(NULL, g_timeframe_140, g_period_176, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2224 = iMA(NULL, g_timeframe_140, g_period_176, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2232 = iMA(NULL, g_timeframe_144, g_period_152, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2240 = iMA(NULL, g_timeframe_144, g_period_152, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2248 = iMA(NULL, g_timeframe_144, g_period_160, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2256 = iMA(NULL, g_timeframe_144, g_period_160, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2264 = iMA(NULL, g_timeframe_144, g_period_168, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2272 = iMA(NULL, g_timeframe_144, g_period_168, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2280 = iMA(NULL, g_timeframe_144, g_period_176, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2288 = iMA(NULL, g_timeframe_144, g_period_176, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2296 = iMA(NULL, g_timeframe_148, g_period_152, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2304 = iMA(NULL, g_timeframe_148, g_period_152, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2312 = iMA(NULL, g_timeframe_148, g_period_160, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2320 = iMA(NULL, g_timeframe_148, g_period_160, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2328 = iMA(NULL, g_timeframe_148, g_period_168, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2336 = iMA(NULL, g_timeframe_148, g_period_168, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2344 = iMA(NULL, g_timeframe_148, g_period_176, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2352 = iMA(NULL, g_timeframe_148, g_period_176, 0, MODE_MA, PRICE_TYPE, 1);
   double ld_2360 = Close[0];
   if (l_ima_2168 < l_ima_2176 && ld_2360 < l_ima_2168) {
      ld_0 = 0;
      ld_96 = 1;
   }
   if (l_ima_2168 < l_ima_2176 && ld_2360 > l_ima_2168) {
      ld_0 = 0.5;
      ld_96 = 0.5;
   }
   if (l_ima_2168 < l_ima_2176 && ld_2360 == l_ima_2168) {
      ld_0 = 0.25;
      ld_96 = 0.75;
   }
   if (l_ima_2168 > l_ima_2176 && ld_2360 < l_ima_2168) {
      ld_0 = 0.5;
      ld_96 = 0.5;
   }
   if (l_ima_2168 > l_ima_2176 && ld_2360 > l_ima_2168) {
      ld_0 = 1;
      ld_96 = 0;
   }
   if (l_ima_2168 > l_ima_2176 && ld_2360 == l_ima_2168) {
      ld_0 = 0.75;
      ld_96 = 0.25;
   }
   if (l_ima_2168 == l_ima_2176 && ld_2360 < l_ima_2168) {
      ld_0 = 0.25;
      ld_96 = 0.75;
   }
   if (l_ima_2168 == l_ima_2176 && ld_2360 > l_ima_2168) {
      ld_0 = 0.75;
      ld_96 = 0.25;
   }
   if (l_ima_2168 == l_ima_2176 && ld_2360 == l_ima_2168) {
      ld_0 = 0.5;
      ld_96 = 0.5;
   }
   if (l_ima_2232 < l_ima_2240 && ld_2360 < l_ima_2232) {
      ld_32 = 0;
      ld_128 = 1;
   }
   if (l_ima_2232 < l_ima_2240 && ld_2360 > l_ima_2232) {
      ld_32 = 0.5;
      ld_128 = 0.5;
   }
   if (l_ima_2232 < l_ima_2240 && ld_2360 == l_ima_2232) {
      ld_32 = 0.25;
      ld_128 = 0.75;
   }
   if (l_ima_2232 > l_ima_2240 && ld_2360 < l_ima_2232) {
      ld_32 = 0.5;
      ld_128 = 0.5;
   }
   if (l_ima_2232 > l_ima_2240 && ld_2360 > l_ima_2232) {
      ld_32 = 1;
      ld_128 = 0;
   }
   if (l_ima_2232 > l_ima_2240 && ld_2360 == l_ima_2232) {
      ld_32 = 0.75;
      ld_128 = 0.25;
   }
   if (l_ima_2232 == l_ima_2240 && ld_2360 < l_ima_2232) {
      ld_32 = 0.25;
      ld_128 = 0.75;
   }
   if (l_ima_2232 == l_ima_2240 && ld_2360 > l_ima_2232) {
      ld_32 = 0.75;
      ld_128 = 0.25;
   }
   if (l_ima_2232 == l_ima_2240 && ld_2360 == l_ima_2232) {
      ld_32 = 0.5;
      ld_128 = 0.5;
   }
   if (l_ima_2296 < l_ima_2304 && ld_2360 < l_ima_2296) {
      ld_64 = 0;
      ld_160 = 1;
   }
   if (l_ima_2296 < l_ima_2304 && ld_2360 > l_ima_2296) {
      ld_64 = 0.5;
      ld_160 = 0.5;
   }
   if (l_ima_2296 < l_ima_2304 && ld_2360 == l_ima_2296) {
      ld_64 = 0.25;
      ld_160 = 0.75;
   }
   if (l_ima_2296 > l_ima_2304 && ld_2360 < l_ima_2296) {
      ld_64 = 0.5;
      ld_160 = 0.5;
   }
   if (l_ima_2296 > l_ima_2304 && ld_2360 > l_ima_2296) {
      ld_64 = 1;
      ld_160 = 0;
   }
   if (l_ima_2296 > l_ima_2304 && ld_2360 == l_ima_2296) {
      ld_64 = 0.75;
      ld_160 = 0.25;
   }
   if (l_ima_2296 == l_ima_2304 && ld_2360 < l_ima_2296) {
      ld_64 = 0.25;
      ld_160 = 0.75;
   }
   if (l_ima_2296 == l_ima_2304 && ld_2360 > l_ima_2296) {
      ld_64 = 0.75;
      ld_160 = 0.25;
   }
   if (l_ima_2296 == l_ima_2304 && ld_2360 == l_ima_2296) {
      ld_64 = 0.5;
      ld_160 = 0.5;
   }
   if (l_ima_2184 < l_ima_2192 && ld_2360 < l_ima_2184) {
      ld_8 = 0;
      ld_104 = 1;
   }
   if (l_ima_2184 < l_ima_2192 && ld_2360 > l_ima_2184) {
      ld_8 = 0.5;
      ld_104 = 0.5;
   }
   if (l_ima_2184 < l_ima_2192 && ld_2360 == l_ima_2184) {
      ld_8 = 0.25;
      ld_104 = 0.75;
   }
   if (l_ima_2184 > l_ima_2192 && ld_2360 < l_ima_2184) {
      ld_8 = 0.5;
      ld_104 = 0.5;
   }
   if (l_ima_2184 > l_ima_2192 && ld_2360 > l_ima_2184) {
      ld_8 = 1;
      ld_104 = 0;
   }
   if (l_ima_2184 > l_ima_2192 && ld_2360 == l_ima_2184) {
      ld_8 = 0.75;
      ld_104 = 0.25;
   }
   if (l_ima_2184 == l_ima_2192 && ld_2360 < l_ima_2184) {
      ld_8 = 0.25;
      ld_104 = 0.75;
   }
   if (l_ima_2184 == l_ima_2192 && ld_2360 > l_ima_2184) {
      ld_8 = 0.75;
      ld_104 = 0.25;
   }
   if (l_ima_2184 == l_ima_2192 && ld_2360 == l_ima_2184) {
      ld_8 = 0.5;
      ld_104 = 0.5;
   }
   if (l_ima_2248 < l_ima_2256 && ld_2360 < l_ima_2248) {
      ld_40 = 0;
      ld_136 = 1;
   }
   if (l_ima_2248 < l_ima_2256 && ld_2360 > l_ima_2248) {
      ld_40 = 0.5;
      ld_136 = 0.5;
   }
   if (l_ima_2248 < l_ima_2256 && ld_2360 == l_ima_2248) {
      ld_40 = 0.25;
      ld_136 = 0.75;
   }
   if (l_ima_2248 > l_ima_2256 && ld_2360 < l_ima_2248) {
      ld_40 = 0.5;
      ld_136 = 0.5;
   }
   if (l_ima_2248 > l_ima_2256 && ld_2360 > l_ima_2248) {
      ld_40 = 1;
      ld_136 = 0;
   }
   if (l_ima_2248 > l_ima_2256 && ld_2360 == l_ima_2248) {
      ld_40 = 0.75;
      ld_136 = 0.25;
   }
   if (l_ima_2248 == l_ima_2256 && ld_2360 < l_ima_2248) {
      ld_40 = 0.25;
      ld_136 = 0.75;
   }
   if (l_ima_2248 == l_ima_2256 && ld_2360 > l_ima_2248) {
      ld_40 = 0.75;
      ld_136 = 0.25;
   }
   if (l_ima_2248 == l_ima_2256 && ld_2360 == l_ima_2248) {
      ld_40 = 0.5;
      ld_136 = 0.5;
   }
   if (l_ima_2312 < l_ima_2320 && ld_2360 < l_ima_2312) {
      ld_72 = 0;
      ld_168 = 1;
   }
   if (l_ima_2312 < l_ima_2320 && ld_2360 > l_ima_2312) {
      ld_72 = 0.5;
      ld_168 = 0.5;
   }
   if (l_ima_2312 < l_ima_2320 && ld_2360 == l_ima_2312) {
      ld_72 = 0.25;
      ld_168 = 0.75;
   }
   if (l_ima_2312 > l_ima_2320 && ld_2360 < l_ima_2312) {
      ld_72 = 0.5;
      ld_168 = 0.5;
   }
   if (l_ima_2312 > l_ima_2320 && ld_2360 > l_ima_2312) {
      ld_72 = 1;
      ld_168 = 0;
   }
   if (l_ima_2312 > l_ima_2320 && ld_2360 == l_ima_2312) {
      ld_72 = 0.75;
      ld_168 = 0.25;
   }
   if (l_ima_2312 == l_ima_2320 && ld_2360 < l_ima_2312) {
      ld_72 = 0.25;
      ld_168 = 0.75;
   }
   if (l_ima_2312 == l_ima_2320 && ld_2360 > l_ima_2312) {
      ld_72 = 0.75;
      ld_168 = 0.25;
   }
   if (l_ima_2312 == l_ima_2320 && ld_2360 == l_ima_2312) {
      ld_72 = 0.5;
      ld_168 = 0.5;
   }
   if (l_ima_2200 < l_ima_2208 && ld_2360 < l_ima_2200) {
      ld_16 = 0;
      ld_112 = 1;
   }
   if (l_ima_2200 < l_ima_2208 && ld_2360 > l_ima_2200) {
      ld_16 = 0.5;
      ld_112 = 0.5;
   }
   if (l_ima_2200 < l_ima_2208 && ld_2360 == l_ima_2200) {
      ld_16 = 0.25;
      ld_112 = 0.75;
   }
   if (l_ima_2200 > l_ima_2208 && ld_2360 < l_ima_2200) {
      ld_16 = 0.5;
      ld_112 = 0.5;
   }
   if (l_ima_2200 > l_ima_2208 && ld_2360 > l_ima_2200) {
      ld_16 = 1;
      ld_112 = 0;
   }
   if (l_ima_2200 > l_ima_2208 && ld_2360 == l_ima_2200) {
      ld_16 = 0.75;
      ld_112 = 0.25;
   }
   if (l_ima_2200 == l_ima_2208 && ld_2360 < l_ima_2200) {
      ld_16 = 0.25;
      ld_112 = 0.75;
   }
   if (l_ima_2200 == l_ima_2208 && ld_2360 > l_ima_2200) {
      ld_16 = 0.75;
      ld_112 = 0.25;
   }
   if (l_ima_2200 == l_ima_2208 && ld_2360 == l_ima_2200) {
      ld_16 = 0.5;
      ld_112 = 0.5;
   }
   if (l_ima_2264 < l_ima_2272 && ld_2360 < l_ima_2264) {
      ld_48 = 0;
      ld_144 = 1;
   }
   if (l_ima_2264 < l_ima_2272 && ld_2360 > l_ima_2264) {
      ld_48 = 0.5;
      ld_144 = 0.5;
   }
   if (l_ima_2264 < l_ima_2272 && ld_2360 == l_ima_2264) {
      ld_48 = 0.25;
      ld_144 = 0.75;
   }
   if (l_ima_2264 > l_ima_2272 && ld_2360 < l_ima_2264) {
      ld_48 = 0.5;
      ld_144 = 0.5;
   }
   if (l_ima_2264 > l_ima_2272 && ld_2360 > l_ima_2264) {
      ld_48 = 1;
      ld_144 = 0;
   }
   if (l_ima_2264 > l_ima_2272 && ld_2360 == l_ima_2264) {
      ld_48 = 0.75;
      ld_144 = 0.25;
   }
   if (l_ima_2264 == l_ima_2272 && ld_2360 < l_ima_2264) {
      ld_48 = 0.25;
      ld_144 = 0.75;
   }
   if (l_ima_2264 == l_ima_2272 && ld_2360 > l_ima_2264) {
      ld_48 = 0.75;
      ld_144 = 0.25;
   }
   if (l_ima_2264 == l_ima_2272 && ld_2360 == l_ima_2264) {
      ld_48 = 0.5;
      ld_144 = 0.5;
   }
   if (l_ima_2328 < l_ima_2336 && ld_2360 < l_ima_2328) {
      ld_80 = 0;
      ld_176 = 1;
   }
   if (l_ima_2328 < l_ima_2336 && ld_2360 > l_ima_2328) {
      ld_80 = 0.5;
      ld_176 = 0.5;
   }
   if (l_ima_2328 < l_ima_2336 && ld_2360 == l_ima_2328) {
      ld_80 = 0.25;
      ld_176 = 0.75;
   }
   if (l_ima_2328 > l_ima_2336 && ld_2360 < l_ima_2328) {
      ld_80 = 0.5;
      ld_176 = 0.5;
   }
   if (l_ima_2328 > l_ima_2336 && ld_2360 > l_ima_2328) {
      ld_80 = 1;
      ld_176 = 0;
   }
   if (l_ima_2328 > l_ima_2336 && ld_2360 == l_ima_2328) {
      ld_80 = 0.75;
      ld_176 = 0.25;
   }
   if (l_ima_2328 == l_ima_2336 && ld_2360 < l_ima_2328) {
      ld_80 = 0.25;
      ld_176 = 0.75;
   }
   if (l_ima_2328 == l_ima_2336 && ld_2360 > l_ima_2328) {
      ld_80 = 0.75;
      ld_176 = 0.25;
   }
   if (l_ima_2328 == l_ima_2336 && ld_2360 == l_ima_2328) {
      ld_80 = 0.5;
      ld_176 = 0.5;
   }
   if (l_ima_2216 < l_ima_2224 && ld_2360 < l_ima_2216) {
      ld_24 = 0;
      ld_120 = 1;
   }
   if (l_ima_2216 < l_ima_2224 && ld_2360 > l_ima_2216) {
      ld_24 = 0.5;
      ld_120 = 0.5;
   }
   if (l_ima_2216 < l_ima_2224 && ld_2360 == l_ima_2216) {
      ld_24 = 0.25;
      ld_120 = 0.75;
   }
   if (l_ima_2216 > l_ima_2224 && ld_2360 < l_ima_2216) {
      ld_24 = 0.5;
      ld_120 = 0.5;
   }
   if (l_ima_2216 > l_ima_2224 && ld_2360 > l_ima_2216) {
      ld_24 = 1;
      ld_120 = 0;
   }
   if (l_ima_2216 > l_ima_2224 && ld_2360 == l_ima_2216) {
      ld_24 = 0.75;
      ld_120 = 0.25;
   }
   if (l_ima_2216 == l_ima_2224 && ld_2360 < l_ima_2216) {
      ld_24 = 0.25;
      ld_120 = 0.75;
   }
   if (l_ima_2216 == l_ima_2224 && ld_2360 > l_ima_2216) {
      ld_24 = 0.75;
      ld_120 = 0.25;
   }
   if (l_ima_2216 == l_ima_2224 && ld_2360 == l_ima_2216) {
      ld_24 = 0.5;
      ld_120 = 0.5;
   }
   if (l_ima_2280 < l_ima_2288 && ld_2360 < l_ima_2280) {
      ld_56 = 0;
      ld_152 = 1;
   }
   if (l_ima_2280 < l_ima_2288 && ld_2360 > l_ima_2280) {
      ld_56 = 0.5;
      ld_152 = 0.5;
   }
   if (l_ima_2280 < l_ima_2288 && ld_2360 == l_ima_2280) {
      ld_56 = 0.25;
      ld_152 = 0.75;
   }
   if (l_ima_2280 > l_ima_2288 && ld_2360 < l_ima_2280) {
      ld_56 = 0.5;
      ld_152 = 0.5;
   }
   if (l_ima_2280 > l_ima_2288 && ld_2360 > l_ima_2280) {
      ld_56 = 1;
      ld_152 = 0;
   }
   if (l_ima_2280 > l_ima_2288 && ld_2360 == l_ima_2280) {
      ld_56 = 0.75;
      ld_152 = 0.25;
   }
   if (l_ima_2280 == l_ima_2288 && ld_2360 < l_ima_2280) {
      ld_56 = 0.25;
      ld_152 = 0.75;
   }
   if (l_ima_2280 == l_ima_2288 && ld_2360 > l_ima_2280) {
      ld_56 = 0.75;
      ld_152 = 0.25;
   }
   if (l_ima_2280 == l_ima_2288 && ld_2360 == l_ima_2280) {
      ld_56 = 0.5;
      ld_152 = 0.5;
   }
   if (l_ima_2344 < l_ima_2352 && ld_2360 < l_ima_2344) {
      ld_88 = 0;
      ld_184 = 1;
   }
   if (l_ima_2344 < l_ima_2352 && ld_2360 > l_ima_2344) {
      ld_88 = 0.5;
      ld_184 = 0.5;
   }
   if (l_ima_2344 < l_ima_2352 && ld_2360 == l_ima_2344) {
      ld_88 = 0.25;
      ld_184 = 0.75;
   }
   if (l_ima_2344 > l_ima_2352 && ld_2360 < l_ima_2344) {
      ld_88 = 0.5;
      ld_184 = 0.5;
   }
   if (l_ima_2344 > l_ima_2352 && ld_2360 > l_ima_2344) {
      ld_88 = 1;
      ld_184 = 0;
   }
   if (l_ima_2344 > l_ima_2352 && ld_2360 == l_ima_2344) {
      ld_88 = 0.75;
      ld_184 = 0.25;
   }
   if (l_ima_2344 == l_ima_2352 && ld_2360 < l_ima_2344) {
      ld_88 = 0.25;
      ld_184 = 0.75;
   }
   if (l_ima_2344 == l_ima_2352 && ld_2360 > l_ima_2344) {
      ld_88 = 0.75;
      ld_184 = 0.25;
   }
   if (l_ima_2344 == l_ima_2352 && ld_2360 == l_ima_2344) {
      ld_88 = 0.5;
      ld_184 = 0.5;
   }
   double ld_2368 = (ld_0 / 4.0 + ld_8 / 2.0 + 0.75 * ld_16 + ld_24) / 2.5;
   double ld_2376 = (ld_32 / 4.0 + ld_40 / 2.0 + 0.75 * ld_48 + ld_56) / 2.5;
   double ld_2384 = (ld_64 / 4.0 + ld_72 / 2.0 + 0.75 * ld_80 + ld_88) / 2.5;
   double ld_2392 = (ld_96 / 4.0 + ld_104 / 2.0 + 0.75 * ld_112 + ld_120) / 2.5;
   double ld_2400 = (ld_128 / 4.0 + ld_136 / 2.0 + 0.75 * ld_144 + ld_152) / 2.5;
   double ld_2408 = (ld_160 / 4.0 + ld_168 / 2.0 + 0.75 * ld_176 + ld_184) / 2.5;
   double ld_2416 = 100.0 * (ld_2368 / 4.0 + ld_2376 / 2.0 + ld_2384) / 1.75;
   double ld_2424 = 100.0 * (ld_2392 / 4.0 + ld_2400 / 2.0 + ld_2408) / 1.75;
   if (ld_2416 >= 55.0) {
      l_text_580 = "Weak Up Trend";
      l_color_576 = DarkGreen;
   } else {
      l_text_580 = ".....Sideway.....";
      l_color_576 = Yellow;
   }
   if (ld_2424 >= 55.0) {
      l_text_580 = "Weak Down Trend";
      l_color_576 = Maroon;
   }
   if (ld_2416 >= 75.0) {
      l_text_580 = "Medium Up Trend";
      l_color_576 = Green;
   }
   if (ld_2424 >= 75.0) {
      l_text_580 = "Medium Down Trend";
      l_color_576 = Crimson;
   }
   if (ld_2416 >= 95.0) {
      l_text_580 = "Strong Up Trend";
      l_color_576 = Lime;
   }
   if (ld_2424 >= 95.0) {
      l_text_580 = "Strong Down Trend";
      l_color_576 = Red;
   }
   double l_ima_2432 = iMA(NULL, g_timeframe_140, g_period_184, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2440 = iMA(NULL, g_timeframe_140, g_period_184, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2448 = iMA(NULL, g_timeframe_140, g_period_192, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2456 = iMA(NULL, g_timeframe_140, g_period_192, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2464 = iMA(NULL, g_timeframe_140, g_period_200, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2472 = iMA(NULL, g_timeframe_140, g_period_200, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2480 = iMA(NULL, g_timeframe_140, g_period_208, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2488 = iMA(NULL, g_timeframe_140, g_period_208, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2496 = iMA(NULL, g_timeframe_144, g_period_184, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2504 = iMA(NULL, g_timeframe_144, g_period_184, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2512 = iMA(NULL, g_timeframe_144, g_period_192, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2520 = iMA(NULL, g_timeframe_144, g_period_192, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2528 = iMA(NULL, g_timeframe_144, g_period_200, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2536 = iMA(NULL, g_timeframe_144, g_period_200, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2544 = iMA(NULL, g_timeframe_144, g_period_208, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2552 = iMA(NULL, g_timeframe_144, g_period_208, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2560 = iMA(NULL, g_timeframe_148, g_period_184, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2568 = iMA(NULL, g_timeframe_148, g_period_184, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2576 = iMA(NULL, g_timeframe_148, g_period_192, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2584 = iMA(NULL, g_timeframe_148, g_period_192, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2592 = iMA(NULL, g_timeframe_148, g_period_200, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2600 = iMA(NULL, g_timeframe_148, g_period_200, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2608 = iMA(NULL, g_timeframe_148, g_period_208, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2616 = iMA(NULL, g_timeframe_148, g_period_208, 0, MODE_MA, PRICE_TYPE, 1);
   if (l_ima_2432 < l_ima_2440 && ld_2360 < l_ima_2432) {
      ld_192 = 0;
      ld_288 = 1;
   }
   if (l_ima_2432 < l_ima_2440 && ld_2360 > l_ima_2432) {
      ld_192 = 0.5;
      ld_288 = 0.5;
   }
   if (l_ima_2432 < l_ima_2440 && ld_2360 == l_ima_2432) {
      ld_192 = 0.25;
      ld_288 = 0.75;
   }
   if (l_ima_2432 > l_ima_2440 && ld_2360 < l_ima_2432) {
      ld_192 = 0.5;
      ld_288 = 0.5;
   }
   if (l_ima_2432 > l_ima_2440 && ld_2360 > l_ima_2432) {
      ld_192 = 1;
      ld_288 = 0;
   }
   if (l_ima_2432 > l_ima_2440 && ld_2360 == l_ima_2432) {
      ld_192 = 0.75;
      ld_288 = 0.25;
   }
   if (l_ima_2432 == l_ima_2440 && ld_2360 < l_ima_2432) {
      ld_192 = 0.25;
      ld_288 = 0.75;
   }
   if (l_ima_2432 == l_ima_2440 && ld_2360 > l_ima_2432) {
      ld_192 = 0.75;
      ld_288 = 0.25;
   }
   if (l_ima_2432 == l_ima_2440 && ld_2360 == l_ima_2432) {
      ld_192 = 0.5;
      ld_288 = 0.5;
   }
   if (l_ima_2496 < l_ima_2504 && ld_2360 < l_ima_2496) {
      ld_224 = 0;
      ld_320 = 1;
   }
   if (l_ima_2496 < l_ima_2504 && ld_2360 > l_ima_2496) {
      ld_224 = 0.5;
      ld_320 = 0.5;
   }
   if (l_ima_2496 < l_ima_2504 && ld_2360 == l_ima_2496) {
      ld_224 = 0.25;
      ld_320 = 0.75;
   }
   if (l_ima_2496 > l_ima_2504 && ld_2360 < l_ima_2496) {
      ld_224 = 0.5;
      ld_320 = 0.5;
   }
   if (l_ima_2496 > l_ima_2504 && ld_2360 > l_ima_2496) {
      ld_224 = 1;
      ld_320 = 0;
   }
   if (l_ima_2496 > l_ima_2504 && ld_2360 == l_ima_2496) {
      ld_224 = 0.75;
      ld_320 = 0.25;
   }
   if (l_ima_2496 == l_ima_2504 && ld_2360 < l_ima_2496) {
      ld_224 = 0.25;
      ld_320 = 0.75;
   }
   if (l_ima_2496 == l_ima_2504 && ld_2360 > l_ima_2496) {
      ld_224 = 0.75;
      ld_320 = 0.25;
   }
   if (l_ima_2496 == l_ima_2504 && ld_2360 == l_ima_2496) {
      ld_224 = 0.5;
      ld_320 = 0.5;
   }
   if (l_ima_2560 < l_ima_2568 && ld_2360 < l_ima_2560) {
      ld_256 = 0;
      ld_352 = 1;
   }
   if (l_ima_2560 < l_ima_2568 && ld_2360 > l_ima_2560) {
      ld_256 = 0.5;
      ld_352 = 0.5;
   }
   if (l_ima_2560 < l_ima_2568 && ld_2360 == l_ima_2560) {
      ld_256 = 0.25;
      ld_352 = 0.75;
   }
   if (l_ima_2560 > l_ima_2568 && ld_2360 < l_ima_2560) {
      ld_256 = 0.5;
      ld_352 = 0.5;
   }
   if (l_ima_2560 > l_ima_2568 && ld_2360 > l_ima_2560) {
      ld_256 = 1;
      ld_352 = 0;
   }
   if (l_ima_2560 > l_ima_2568 && ld_2360 == l_ima_2560) {
      ld_256 = 0.75;
      ld_352 = 0.25;
   }
   if (l_ima_2560 == l_ima_2568 && ld_2360 < l_ima_2560) {
      ld_256 = 0.25;
      ld_352 = 0.75;
   }
   if (l_ima_2560 == l_ima_2568 && ld_2360 > l_ima_2560) {
      ld_256 = 0.75;
      ld_352 = 0.25;
   }
   if (l_ima_2560 == l_ima_2568 && ld_2360 == l_ima_2560) {
      ld_256 = 0.5;
      ld_352 = 0.5;
   }
   if (l_ima_2448 < l_ima_2456 && ld_2360 < l_ima_2448) {
      ld_200 = 0;
      ld_296 = 1;
   }
   if (l_ima_2448 < l_ima_2456 && ld_2360 > l_ima_2448) {
      ld_200 = 0.5;
      ld_296 = 0.5;
   }
   if (l_ima_2448 < l_ima_2456 && ld_2360 == l_ima_2448) {
      ld_200 = 0.25;
      ld_296 = 0.75;
   }
   if (l_ima_2448 > l_ima_2456 && ld_2360 < l_ima_2448) {
      ld_200 = 0.5;
      ld_296 = 0.5;
   }
   if (l_ima_2448 > l_ima_2456 && ld_2360 > l_ima_2448) {
      ld_200 = 1;
      ld_296 = 0;
   }
   if (l_ima_2448 > l_ima_2456 && ld_2360 == l_ima_2448) {
      ld_200 = 0.75;
      ld_296 = 0.25;
   }
   if (l_ima_2448 == l_ima_2456 && ld_2360 < l_ima_2448) {
      ld_200 = 0.25;
      ld_296 = 0.75;
   }
   if (l_ima_2448 == l_ima_2456 && ld_2360 > l_ima_2448) {
      ld_200 = 0.75;
      ld_296 = 0.25;
   }
   if (l_ima_2448 == l_ima_2456 && ld_2360 == l_ima_2448) {
      ld_200 = 0.5;
      ld_296 = 0.5;
   }
   if (l_ima_2512 < l_ima_2520 && ld_2360 < l_ima_2512) {
      ld_232 = 0;
      ld_328 = 1;
   }
   if (l_ima_2512 < l_ima_2520 && ld_2360 > l_ima_2512) {
      ld_232 = 0.5;
      ld_328 = 0.5;
   }
   if (l_ima_2512 < l_ima_2520 && ld_2360 == l_ima_2512) {
      ld_232 = 0.25;
      ld_328 = 0.75;
   }
   if (l_ima_2512 > l_ima_2520 && ld_2360 < l_ima_2512) {
      ld_232 = 0.5;
      ld_328 = 0.5;
   }
   if (l_ima_2512 > l_ima_2520 && ld_2360 > l_ima_2512) {
      ld_232 = 1;
      ld_328 = 0;
   }
   if (l_ima_2512 > l_ima_2520 && ld_2360 == l_ima_2512) {
      ld_232 = 0.75;
      ld_328 = 0.25;
   }
   if (l_ima_2512 == l_ima_2520 && ld_2360 < l_ima_2512) {
      ld_232 = 0.25;
      ld_328 = 0.75;
   }
   if (l_ima_2512 == l_ima_2520 && ld_2360 > l_ima_2512) {
      ld_232 = 0.75;
      ld_328 = 0.25;
   }
   if (l_ima_2512 == l_ima_2520 && ld_2360 == l_ima_2512) {
      ld_232 = 0.5;
      ld_328 = 0.5;
   }
   if (l_ima_2576 < l_ima_2584 && ld_2360 < l_ima_2576) {
      ld_264 = 0;
      ld_360 = 1;
   }
   if (l_ima_2576 < l_ima_2584 && ld_2360 > l_ima_2576) {
      ld_264 = 0.5;
      ld_360 = 0.5;
   }
   if (l_ima_2576 < l_ima_2584 && ld_2360 == l_ima_2576) {
      ld_264 = 0.25;
      ld_360 = 0.75;
   }
   if (l_ima_2576 > l_ima_2584 && ld_2360 < l_ima_2576) {
      ld_264 = 0.5;
      ld_360 = 0.5;
   }
   if (l_ima_2576 > l_ima_2584 && ld_2360 > l_ima_2576) {
      ld_264 = 1;
      ld_360 = 0;
   }
   if (l_ima_2576 > l_ima_2584 && ld_2360 == l_ima_2576) {
      ld_264 = 0.75;
      ld_360 = 0.25;
   }
   if (l_ima_2576 == l_ima_2584 && ld_2360 < l_ima_2576) {
      ld_264 = 0.25;
      ld_360 = 0.75;
   }
   if (l_ima_2576 == l_ima_2584 && ld_2360 > l_ima_2576) {
      ld_264 = 0.75;
      ld_360 = 0.25;
   }
   if (l_ima_2576 == l_ima_2584 && ld_2360 == l_ima_2576) {
      ld_264 = 0.5;
      ld_360 = 0.5;
   }
   if (l_ima_2464 < l_ima_2472 && ld_2360 < l_ima_2464) {
      ld_208 = 0;
      ld_304 = 1;
   }
   if (l_ima_2464 < l_ima_2472 && ld_2360 > l_ima_2464) {
      ld_208 = 0.5;
      ld_304 = 0.5;
   }
   if (l_ima_2464 < l_ima_2472 && ld_2360 == l_ima_2464) {
      ld_208 = 0.25;
      ld_304 = 0.75;
   }
   if (l_ima_2464 > l_ima_2472 && ld_2360 < l_ima_2464) {
      ld_208 = 0.5;
      ld_304 = 0.5;
   }
   if (l_ima_2464 > l_ima_2472 && ld_2360 > l_ima_2464) {
      ld_208 = 1;
      ld_304 = 0;
   }
   if (l_ima_2464 > l_ima_2472 && ld_2360 == l_ima_2464) {
      ld_208 = 0.75;
      ld_304 = 0.25;
   }
   if (l_ima_2464 == l_ima_2472 && ld_2360 < l_ima_2464) {
      ld_208 = 0.25;
      ld_304 = 0.75;
   }
   if (l_ima_2464 == l_ima_2472 && ld_2360 > l_ima_2464) {
      ld_208 = 0.75;
      ld_304 = 0.25;
   }
   if (l_ima_2464 == l_ima_2472 && ld_2360 == l_ima_2464) {
      ld_208 = 0.5;
      ld_304 = 0.5;
   }
   if (l_ima_2528 < l_ima_2536 && ld_2360 < l_ima_2528) {
      ld_240 = 0;
      ld_336 = 1;
   }
   if (l_ima_2528 < l_ima_2536 && ld_2360 > l_ima_2528) {
      ld_240 = 0.5;
      ld_336 = 0.5;
   }
   if (l_ima_2528 < l_ima_2536 && ld_2360 == l_ima_2528) {
      ld_240 = 0.25;
      ld_336 = 0.75;
   }
   if (l_ima_2528 > l_ima_2536 && ld_2360 < l_ima_2528) {
      ld_240 = 0.5;
      ld_336 = 0.5;
   }
   if (l_ima_2528 > l_ima_2536 && ld_2360 > l_ima_2528) {
      ld_240 = 1;
      ld_336 = 0;
   }
   if (l_ima_2528 > l_ima_2536 && ld_2360 == l_ima_2528) {
      ld_240 = 0.75;
      ld_336 = 0.25;
   }
   if (l_ima_2528 == l_ima_2536 && ld_2360 < l_ima_2528) {
      ld_240 = 0.25;
      ld_336 = 0.75;
   }
   if (l_ima_2528 == l_ima_2536 && ld_2360 > l_ima_2528) {
      ld_240 = 0.75;
      ld_336 = 0.25;
   }
   if (l_ima_2528 == l_ima_2536 && ld_2360 == l_ima_2528) {
      ld_240 = 0.5;
      ld_336 = 0.5;
   }
   if (l_ima_2592 < l_ima_2600 && ld_2360 < l_ima_2592) {
      ld_272 = 0;
      ld_368 = 1;
   }
   if (l_ima_2592 < l_ima_2600 && ld_2360 > l_ima_2592) {
      ld_272 = 0.5;
      ld_368 = 0.5;
   }
   if (l_ima_2592 < l_ima_2600 && ld_2360 == l_ima_2592) {
      ld_272 = 0.25;
      ld_368 = 0.75;
   }
   if (l_ima_2592 > l_ima_2600 && ld_2360 < l_ima_2592) {
      ld_272 = 0.5;
      ld_368 = 0.5;
   }
   if (l_ima_2592 > l_ima_2600 && ld_2360 > l_ima_2592) {
      ld_272 = 1;
      ld_368 = 0;
   }
   if (l_ima_2592 > l_ima_2600 && ld_2360 == l_ima_2592) {
      ld_272 = 0.75;
      ld_368 = 0.25;
   }
   if (l_ima_2592 == l_ima_2600 && ld_2360 < l_ima_2592) {
      ld_272 = 0.25;
      ld_368 = 0.75;
   }
   if (l_ima_2592 == l_ima_2600 && ld_2360 > l_ima_2592) {
      ld_272 = 0.75;
      ld_368 = 0.25;
   }
   if (l_ima_2592 == l_ima_2600 && ld_2360 == l_ima_2592) {
      ld_272 = 0.5;
      ld_368 = 0.5;
   }
   if (l_ima_2480 < l_ima_2488 && ld_2360 < l_ima_2480) {
      ld_216 = 0;
      ld_312 = 1;
   }
   if (l_ima_2480 < l_ima_2488 && ld_2360 > l_ima_2480) {
      ld_216 = 0.5;
      ld_312 = 0.5;
   }
   if (l_ima_2480 < l_ima_2488 && ld_2360 == l_ima_2480) {
      ld_216 = 0.25;
      ld_312 = 0.75;
   }
   if (l_ima_2480 > l_ima_2488 && ld_2360 < l_ima_2480) {
      ld_216 = 0.5;
      ld_312 = 0.5;
   }
   if (l_ima_2480 > l_ima_2488 && ld_2360 > l_ima_2480) {
      ld_216 = 1;
      ld_312 = 0;
   }
   if (l_ima_2480 > l_ima_2488 && ld_2360 == l_ima_2480) {
      ld_216 = 0.75;
      ld_312 = 0.25;
   }
   if (l_ima_2480 == l_ima_2488 && ld_2360 < l_ima_2480) {
      ld_216 = 0.25;
      ld_312 = 0.75;
   }
   if (l_ima_2480 == l_ima_2488 && ld_2360 > l_ima_2480) {
      ld_216 = 0.75;
      ld_312 = 0.25;
   }
   if (l_ima_2480 == l_ima_2488 && ld_2360 == l_ima_2480) {
      ld_216 = 0.5;
      ld_312 = 0.5;
   }
   if (l_ima_2544 < l_ima_2552 && ld_2360 < l_ima_2544) {
      ld_248 = 0;
      ld_344 = 1;
   }
   if (l_ima_2544 < l_ima_2552 && ld_2360 > l_ima_2544) {
      ld_248 = 0.5;
      ld_344 = 0.5;
   }
   if (l_ima_2544 < l_ima_2552 && ld_2360 == l_ima_2544) {
      ld_248 = 0.25;
      ld_344 = 0.75;
   }
   if (l_ima_2544 > l_ima_2552 && ld_2360 < l_ima_2544) {
      ld_248 = 0.5;
      ld_344 = 0.5;
   }
   if (l_ima_2544 > l_ima_2552 && ld_2360 > l_ima_2544) {
      ld_248 = 1;
      ld_344 = 0;
   }
   if (l_ima_2544 > l_ima_2552 && ld_2360 == l_ima_2544) {
      ld_248 = 0.75;
      ld_344 = 0.25;
   }
   if (l_ima_2544 == l_ima_2552 && ld_2360 < l_ima_2544) {
      ld_248 = 0.25;
      ld_344 = 0.75;
   }
   if (l_ima_2544 == l_ima_2552 && ld_2360 > l_ima_2544) {
      ld_248 = 0.75;
      ld_344 = 0.25;
   }
   if (l_ima_2544 == l_ima_2552 && ld_2360 == l_ima_2544) {
      ld_248 = 0.5;
      ld_344 = 0.5;
   }
   if (l_ima_2608 < l_ima_2616 && ld_2360 < l_ima_2608) {
      ld_280 = 0;
      ld_376 = 1;
   }
   if (l_ima_2608 < l_ima_2616 && ld_2360 > l_ima_2608) {
      ld_280 = 0.5;
      ld_376 = 0.5;
   }
   if (l_ima_2608 < l_ima_2616 && ld_2360 == l_ima_2608) {
      ld_280 = 0.25;
      ld_376 = 0.75;
   }
   if (l_ima_2608 > l_ima_2616 && ld_2360 < l_ima_2608) {
      ld_280 = 0.5;
      ld_376 = 0.5;
   }
   if (l_ima_2608 > l_ima_2616 && ld_2360 > l_ima_2608) {
      ld_280 = 1;
      ld_376 = 0;
   }
   if (l_ima_2608 > l_ima_2616 && ld_2360 == l_ima_2608) {
      ld_280 = 0.75;
      ld_376 = 0.25;
   }
   if (l_ima_2608 == l_ima_2616 && ld_2360 < l_ima_2608) {
      ld_280 = 0.25;
      ld_376 = 0.75;
   }
   if (l_ima_2608 == l_ima_2616 && ld_2360 > l_ima_2608) {
      ld_280 = 0.75;
      ld_376 = 0.25;
   }
   if (l_ima_2608 == l_ima_2616 && ld_2360 == l_ima_2608) {
      ld_280 = 0.5;
      ld_376 = 0.5;
   }
   double ld_2624 = (ld_192 / 4.0 + ld_200 / 2.0 + 0.75 * ld_208 + ld_216) / 2.5;
   double ld_2632 = (ld_224 / 4.0 + ld_232 / 2.0 + 0.75 * ld_240 + ld_248) / 2.5;
   double ld_2640 = (ld_256 / 4.0 + ld_264 / 2.0 + 0.75 * ld_272 + ld_280) / 2.5;
   double ld_2648 = (ld_288 / 4.0 + ld_296 / 2.0 + 0.75 * ld_304 + ld_312) / 2.5;
   double ld_2656 = (ld_320 / 4.0 + ld_328 / 2.0 + 0.75 * ld_336 + ld_344) / 2.5;
   double ld_2664 = (ld_352 / 4.0 + ld_360 / 2.0 + 0.75 * ld_368 + ld_376) / 2.5;
   double ld_2672 = 100.0 * (ld_2624 / 4.0 + ld_2632 / 2.0 + ld_2640) / 1.75;
   double ld_2680 = 100.0 * (ld_2648 / 4.0 + ld_2656 / 2.0 + ld_2664) / 1.75;
   if (ld_2672 >= 55.0) {
      l_text_592 = "Weak Up Trend";
      l_color_588 = DarkGreen;
   } else {
      l_text_592 = ".....Sideway.....";
      l_color_588 = Yellow;
   }
   if (ld_2680 >= 55.0) {
      l_text_592 = "Weak Down Trend";
      l_color_588 = Maroon;
   }
   if (ld_2672 >= 75.0) {
      l_text_592 = "Medium Up Trend";
      l_color_588 = Green;
   }
   if (ld_2680 >= 75.0) {
      l_text_592 = "Medium Down Trend";
      l_color_588 = Crimson;
   }
   if (ld_2672 >= 95.0) {
      l_text_592 = "Strong Up Trend";
      l_color_588 = Lime;
   }
   if (ld_2680 >= 95.0) {
      l_text_592 = "Strong Down Trend";
      l_color_588 = Red;
   }
   double l_ima_2688 = iMA(NULL, g_timeframe_140, g_period_216, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2696 = iMA(NULL, g_timeframe_140, g_period_216, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2704 = iMA(NULL, g_timeframe_140, g_period_224, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2712 = iMA(NULL, g_timeframe_140, g_period_224, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2720 = iMA(NULL, g_timeframe_140, g_period_232, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2728 = iMA(NULL, g_timeframe_140, g_period_232, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2736 = iMA(NULL, g_timeframe_140, g_period_240, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2744 = iMA(NULL, g_timeframe_140, g_period_240, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2752 = iMA(NULL, g_timeframe_144, g_period_216, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2760 = iMA(NULL, g_timeframe_144, g_period_216, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2768 = iMA(NULL, g_timeframe_144, g_period_224, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2776 = iMA(NULL, g_timeframe_144, g_period_224, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2784 = iMA(NULL, g_timeframe_144, g_period_232, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2792 = iMA(NULL, g_timeframe_144, g_period_232, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2800 = iMA(NULL, g_timeframe_144, g_period_240, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2808 = iMA(NULL, g_timeframe_144, g_period_240, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2816 = iMA(NULL, g_timeframe_148, g_period_216, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2824 = iMA(NULL, g_timeframe_148, g_period_216, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2832 = iMA(NULL, g_timeframe_148, g_period_224, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2840 = iMA(NULL, g_timeframe_148, g_period_224, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2848 = iMA(NULL, g_timeframe_148, g_period_232, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2856 = iMA(NULL, g_timeframe_148, g_period_232, 0, MODE_MA, PRICE_TYPE, 1);
   double l_ima_2864 = iMA(NULL, g_timeframe_148, g_period_240, 0, MODE_MA, PRICE_TYPE, 0);
   double l_ima_2872 = iMA(NULL, g_timeframe_148, g_period_240, 0, MODE_MA, PRICE_TYPE, 1);
   if (l_ima_2688 < l_ima_2696 && ld_2360 < l_ima_2688) {
      ld_384 = 0;
      ld_480 = 1;
   }
   if (l_ima_2688 < l_ima_2696 && ld_2360 > l_ima_2688) {
      ld_384 = 0.5;
      ld_480 = 0.5;
   }
   if (l_ima_2688 < l_ima_2696 && ld_2360 == l_ima_2688) {
      ld_384 = 0.25;
      ld_480 = 0.75;
   }
   if (l_ima_2688 > l_ima_2696 && ld_2360 < l_ima_2688) {
      ld_384 = 0.5;
      ld_480 = 0.5;
   }
   if (l_ima_2688 > l_ima_2696 && ld_2360 > l_ima_2688) {
      ld_384 = 1;
      ld_480 = 0;
   }
   if (l_ima_2688 > l_ima_2696 && ld_2360 == l_ima_2688) {
      ld_384 = 0.75;
      ld_480 = 0.25;
   }
   if (l_ima_2688 == l_ima_2696 && ld_2360 < l_ima_2688) {
      ld_384 = 0.25;
      ld_480 = 0.75;
   }
   if (l_ima_2688 == l_ima_2696 && ld_2360 > l_ima_2688) {
      ld_384 = 0.75;
      ld_480 = 0.25;
   }
   if (l_ima_2688 == l_ima_2696 && ld_2360 == l_ima_2688) {
      ld_384 = 0.5;
      ld_480 = 0.5;
   }
   if (l_ima_2752 < l_ima_2760 && ld_2360 < l_ima_2752) {
      ld_416 = 0;
      ld_512 = 1;
   }
   if (l_ima_2752 < l_ima_2760 && ld_2360 > l_ima_2752) {
      ld_416 = 0.5;
      ld_512 = 0.5;
   }
   if (l_ima_2752 < l_ima_2760 && ld_2360 == l_ima_2752) {
      ld_416 = 0.25;
      ld_512 = 0.75;
   }
   if (l_ima_2752 > l_ima_2760 && ld_2360 < l_ima_2752) {
      ld_416 = 0.5;
      ld_512 = 0.5;
   }
   if (l_ima_2752 > l_ima_2760 && ld_2360 > l_ima_2752) {
      ld_416 = 1;
      ld_512 = 0;
   }
   if (l_ima_2752 > l_ima_2760 && ld_2360 == l_ima_2752) {
      ld_416 = 0.75;
      ld_512 = 0.25;
   }
   if (l_ima_2752 == l_ima_2760 && ld_2360 < l_ima_2752) {
      ld_416 = 0.25;
      ld_512 = 0.75;
   }
   if (l_ima_2752 == l_ima_2760 && ld_2360 > l_ima_2752) {
      ld_416 = 0.75;
      ld_512 = 0.25;
   }
   if (l_ima_2752 == l_ima_2760 && ld_2360 == l_ima_2752) {
      ld_416 = 0.5;
      ld_512 = 0.5;
   }
   if (l_ima_2816 < l_ima_2824 && ld_2360 < l_ima_2816) {
      ld_448 = 0;
      ld_544 = 1;
   }
   if (l_ima_2816 < l_ima_2824 && ld_2360 > l_ima_2816) {
      ld_448 = 0.5;
      ld_544 = 0.5;
   }
   if (l_ima_2816 < l_ima_2824 && ld_2360 == l_ima_2816) {
      ld_448 = 0.25;
      ld_544 = 0.75;
   }
   if (l_ima_2816 > l_ima_2824 && ld_2360 < l_ima_2816) {
      ld_448 = 0.5;
      ld_544 = 0.5;
   }
   if (l_ima_2816 > l_ima_2824 && ld_2360 > l_ima_2816) {
      ld_448 = 1;
      ld_544 = 0;
   }
   if (l_ima_2816 > l_ima_2824 && ld_2360 == l_ima_2816) {
      ld_448 = 0.75;
      ld_544 = 0.25;
   }
   if (l_ima_2816 == l_ima_2824 && ld_2360 < l_ima_2816) {
      ld_448 = 0.25;
      ld_544 = 0.75;
   }
   if (l_ima_2816 == l_ima_2824 && ld_2360 > l_ima_2816) {
      ld_448 = 0.75;
      ld_544 = 0.25;
   }
   if (l_ima_2816 == l_ima_2824 && ld_2360 == l_ima_2816) {
      ld_448 = 0.5;
      ld_544 = 0.5;
   }
   if (l_ima_2704 < l_ima_2712 && ld_2360 < l_ima_2704) {
      ld_392 = 0;
      ld_488 = 1;
   }
   if (l_ima_2704 < l_ima_2712 && ld_2360 > l_ima_2704) {
      ld_392 = 0.5;
      ld_488 = 0.5;
   }
   if (l_ima_2704 < l_ima_2712 && ld_2360 == l_ima_2704) {
      ld_392 = 0.25;
      ld_488 = 0.75;
   }
   if (l_ima_2704 > l_ima_2712 && ld_2360 < l_ima_2704) {
      ld_392 = 0.5;
      ld_488 = 0.5;
   }
   if (l_ima_2704 > l_ima_2712 && ld_2360 > l_ima_2704) {
      ld_392 = 1;
      ld_488 = 0;
   }
   if (l_ima_2704 > l_ima_2712 && ld_2360 == l_ima_2704) {
      ld_392 = 0.75;
      ld_488 = 0.25;
   }
   if (l_ima_2704 == l_ima_2712 && ld_2360 < l_ima_2704) {
      ld_392 = 0.25;
      ld_488 = 0.75;
   }
   if (l_ima_2704 == l_ima_2712 && ld_2360 > l_ima_2704) {
      ld_392 = 0.75;
      ld_488 = 0.25;
   }
   if (l_ima_2704 == l_ima_2712 && ld_2360 == l_ima_2704) {
      ld_392 = 0.5;
      ld_488 = 0.5;
   }
   if (l_ima_2768 < l_ima_2776 && ld_2360 < l_ima_2768) {
      ld_424 = 0;
      ld_520 = 1;
   }
   if (l_ima_2768 < l_ima_2776 && ld_2360 > l_ima_2768) {
      ld_424 = 0.5;
      ld_520 = 0.5;
   }
   if (l_ima_2768 < l_ima_2776 && ld_2360 == l_ima_2768) {
      ld_424 = 0.25;
      ld_520 = 0.75;
   }
   if (l_ima_2768 > l_ima_2776 && ld_2360 < l_ima_2768) {
      ld_424 = 0.5;
      ld_520 = 0.5;
   }
   if (l_ima_2768 > l_ima_2776 && ld_2360 > l_ima_2768) {
      ld_424 = 1;
      ld_520 = 0;
   }
   if (l_ima_2768 > l_ima_2776 && ld_2360 == l_ima_2768) {
      ld_424 = 0.75;
      ld_520 = 0.25;
   }
   if (l_ima_2768 == l_ima_2776 && ld_2360 < l_ima_2768) {
      ld_424 = 0.25;
      ld_520 = 0.75;
   }
   if (l_ima_2768 == l_ima_2776 && ld_2360 > l_ima_2768) {
      ld_424 = 0.75;
      ld_520 = 0.25;
   }
   if (l_ima_2768 == l_ima_2776 && ld_2360 == l_ima_2768) {
      ld_424 = 0.5;
      ld_520 = 0.5;
   }
   if (l_ima_2832 < l_ima_2840 && ld_2360 < l_ima_2832) {
      ld_456 = 0;
      ld_552 = 1;
   }
   if (l_ima_2832 < l_ima_2840 && ld_2360 > l_ima_2832) {
      ld_456 = 0.5;
      ld_552 = 0.5;
   }
   if (l_ima_2832 < l_ima_2840 && ld_2360 == l_ima_2832) {
      ld_456 = 0.25;
      ld_552 = 0.75;
   }
   if (l_ima_2832 > l_ima_2840 && ld_2360 < l_ima_2832) {
      ld_456 = 0.5;
      ld_552 = 0.5;
   }
   if (l_ima_2832 > l_ima_2840 && ld_2360 > l_ima_2832) {
      ld_456 = 1;
      ld_552 = 0;
   }
   if (l_ima_2832 > l_ima_2840 && ld_2360 == l_ima_2832) {
      ld_456 = 0.75;
      ld_552 = 0.25;
   }
   if (l_ima_2832 == l_ima_2840 && ld_2360 < l_ima_2832) {
      ld_456 = 0.25;
      ld_552 = 0.75;
   }
   if (l_ima_2832 == l_ima_2840 && ld_2360 > l_ima_2832) {
      ld_456 = 0.75;
      ld_552 = 0.25;
   }
   if (l_ima_2832 == l_ima_2840 && ld_2360 == l_ima_2832) {
      ld_456 = 0.5;
      ld_552 = 0.5;
   }
   if (l_ima_2720 < l_ima_2728 && ld_2360 < l_ima_2720) {
      ld_400 = 0;
      ld_496 = 1;
   }
   if (l_ima_2720 < l_ima_2728 && ld_2360 > l_ima_2720) {
      ld_400 = 0.5;
      ld_496 = 0.5;
   }
   if (l_ima_2720 < l_ima_2728 && ld_2360 == l_ima_2720) {
      ld_400 = 0.25;
      ld_496 = 0.75;
   }
   if (l_ima_2720 > l_ima_2728 && ld_2360 < l_ima_2720) {
      ld_400 = 0.5;
      ld_496 = 0.5;
   }
   if (l_ima_2720 > l_ima_2728 && ld_2360 > l_ima_2720) {
      ld_400 = 1;
      ld_496 = 0;
   }
   if (l_ima_2720 > l_ima_2728 && ld_2360 == l_ima_2720) {
      ld_400 = 0.75;
      ld_496 = 0.25;
   }
   if (l_ima_2720 == l_ima_2728 && ld_2360 < l_ima_2720) {
      ld_400 = 0.25;
      ld_496 = 0.75;
   }
   if (l_ima_2720 == l_ima_2728 && ld_2360 > l_ima_2720) {
      ld_400 = 0.75;
      ld_496 = 0.25;
   }
   if (l_ima_2720 == l_ima_2728 && ld_2360 == l_ima_2720) {
      ld_400 = 0.5;
      ld_496 = 0.5;
   }
   if (l_ima_2784 < l_ima_2792 && ld_2360 < l_ima_2784) {
      ld_432 = 0;
      ld_528 = 1;
   }
   if (l_ima_2784 < l_ima_2792 && ld_2360 > l_ima_2784) {
      ld_432 = 0.5;
      ld_528 = 0.5;
   }
   if (l_ima_2784 < l_ima_2792 && ld_2360 == l_ima_2784) {
      ld_432 = 0.25;
      ld_528 = 0.75;
   }
   if (l_ima_2784 > l_ima_2792 && ld_2360 < l_ima_2784) {
      ld_432 = 0.5;
      ld_528 = 0.5;
   }
   if (l_ima_2784 > l_ima_2792 && ld_2360 > l_ima_2784) {
      ld_432 = 1;
      ld_528 = 0;
   }
   if (l_ima_2784 > l_ima_2792 && ld_2360 == l_ima_2784) {
      ld_432 = 0.75;
      ld_528 = 0.25;
   }
   if (l_ima_2784 == l_ima_2792 && ld_2360 < l_ima_2784) {
      ld_432 = 0.25;
      ld_528 = 0.75;
   }
   if (l_ima_2784 == l_ima_2792 && ld_2360 > l_ima_2784) {
      ld_432 = 0.75;
      ld_528 = 0.25;
   }
   if (l_ima_2784 == l_ima_2792 && ld_2360 == l_ima_2784) {
      ld_432 = 0.5;
      ld_528 = 0.5;
   }
   if (l_ima_2848 < l_ima_2856 && ld_2360 < l_ima_2848) {
      ld_464 = 0;
      ld_560 = 1;
   }
   if (l_ima_2848 < l_ima_2856 && ld_2360 > l_ima_2848) {
      ld_464 = 0.5;
      ld_560 = 0.5;
   }
   if (l_ima_2848 < l_ima_2856 && ld_2360 == l_ima_2848) {
      ld_464 = 0.25;
      ld_560 = 0.75;
   }
   if (l_ima_2848 > l_ima_2856 && ld_2360 < l_ima_2848) {
      ld_464 = 0.5;
      ld_560 = 0.5;
   }
   if (l_ima_2848 > l_ima_2856 && ld_2360 > l_ima_2848) {
      ld_464 = 1;
      ld_560 = 0;
   }
   if (l_ima_2848 > l_ima_2856 && ld_2360 == l_ima_2848) {
      ld_464 = 0.75;
      ld_560 = 0.25;
   }
   if (l_ima_2848 == l_ima_2856 && ld_2360 < l_ima_2848) {
      ld_464 = 0.25;
      ld_560 = 0.75;
   }
   if (l_ima_2848 == l_ima_2856 && ld_2360 > l_ima_2848) {
      ld_464 = 0.75;
      ld_560 = 0.25;
   }
   if (l_ima_2848 == l_ima_2856 && ld_2360 == l_ima_2848) {
      ld_464 = 0.5;
      ld_560 = 0.5;
   }
   if (l_ima_2736 < l_ima_2744 && ld_2360 < l_ima_2736) {
      ld_408 = 0;
      ld_504 = 1;
   }
   if (l_ima_2736 < l_ima_2744 && ld_2360 > l_ima_2736) {
      ld_408 = 0.5;
      ld_504 = 0.5;
   }
   if (l_ima_2736 < l_ima_2744 && ld_2360 == l_ima_2736) {
      ld_408 = 0.25;
      ld_504 = 0.75;
   }
   if (l_ima_2736 > l_ima_2744 && ld_2360 < l_ima_2736) {
      ld_408 = 0.5;
      ld_504 = 0.5;
   }
   if (l_ima_2736 > l_ima_2744 && ld_2360 > l_ima_2736) {
      ld_408 = 1;
      ld_504 = 0;
   }
   if (l_ima_2736 > l_ima_2744 && ld_2360 == l_ima_2736) {
      ld_408 = 0.75;
      ld_504 = 0.25;
   }
   if (l_ima_2736 == l_ima_2744 && ld_2360 < l_ima_2736) {
      ld_408 = 0.25;
      ld_504 = 0.75;
   }
   if (l_ima_2736 == l_ima_2744 && ld_2360 > l_ima_2736) {
      ld_408 = 0.75;
      ld_504 = 0.25;
   }
   if (l_ima_2736 == l_ima_2744 && ld_2360 == l_ima_2736) {
      ld_408 = 0.5;
      ld_504 = 0.5;
   }
   if (l_ima_2800 < l_ima_2808 && ld_2360 < l_ima_2800) {
      ld_440 = 0;
      ld_536 = 1;
   }
   if (l_ima_2800 < l_ima_2808 && ld_2360 > l_ima_2800) {
      ld_440 = 0.5;
      ld_536 = 0.5;
   }
   if (l_ima_2800 < l_ima_2808 && ld_2360 == l_ima_2800) {
      ld_440 = 0.25;
      ld_536 = 0.75;
   }
   if (l_ima_2800 > l_ima_2808 && ld_2360 < l_ima_2800) {
      ld_440 = 0.5;
      ld_536 = 0.5;
   }
   if (l_ima_2800 > l_ima_2808 && ld_2360 > l_ima_2800) {
      ld_440 = 1;
      ld_536 = 0;
   }
   if (l_ima_2800 > l_ima_2808 && ld_2360 == l_ima_2800) {
      ld_440 = 0.75;
      ld_536 = 0.25;
   }
   if (l_ima_2800 == l_ima_2808 && ld_2360 < l_ima_2800) {
      ld_440 = 0.25;
      ld_536 = 0.75;
   }
   if (l_ima_2800 == l_ima_2808 && ld_2360 > l_ima_2800) {
      ld_440 = 0.75;
      ld_536 = 0.25;
   }
   if (l_ima_2800 == l_ima_2808 && ld_2360 == l_ima_2800) {
      ld_440 = 0.5;
      ld_536 = 0.5;
   }
   if (l_ima_2864 < l_ima_2872 && ld_2360 < l_ima_2864) {
      ld_472 = 0;
      ld_568 = 1;
   }
   if (l_ima_2864 < l_ima_2872 && ld_2360 > l_ima_2864) {
      ld_472 = 0.5;
      ld_568 = 0.5;
   }
   if (l_ima_2864 < l_ima_2872 && ld_2360 == l_ima_2864) {
      ld_472 = 0.25;
      ld_568 = 0.75;
   }
   if (l_ima_2864 > l_ima_2872 && ld_2360 < l_ima_2864) {
      ld_472 = 0.5;
      ld_568 = 0.5;
   }
   if (l_ima_2864 > l_ima_2872 && ld_2360 > l_ima_2864) {
      ld_472 = 1;
      ld_568 = 0;
   }
   if (l_ima_2864 > l_ima_2872 && ld_2360 == l_ima_2864) {
      ld_472 = 0.75;
      ld_568 = 0.25;
   }
   if (l_ima_2864 == l_ima_2872 && ld_2360 < l_ima_2864) {
      ld_472 = 0.25;
      ld_568 = 0.75;
   }
   if (l_ima_2864 == l_ima_2872 && ld_2360 > l_ima_2864) {
      ld_472 = 0.75;
      ld_568 = 0.25;
   }
   if (l_ima_2864 == l_ima_2872 && ld_2360 == l_ima_2864) {
      ld_472 = 0.5;
      ld_568 = 0.5;
   }
   double ld_2880 = (ld_384 / 4.0 + ld_392 / 2.0 + 0.75 * ld_400 + ld_408) / 2.5;
   double ld_2888 = (ld_416 / 4.0 + ld_424 / 2.0 + 0.75 * ld_432 + ld_440) / 2.5;
   double ld_2896 = (ld_448 / 4.0 + ld_456 / 2.0 + 0.75 * ld_464 + ld_472) / 2.5;
   double ld_2904 = (ld_480 / 4.0 + ld_488 / 2.0 + 0.75 * ld_496 + ld_504) / 2.5;
   double ld_2912 = (ld_512 / 4.0 + ld_520 / 2.0 + 0.75 * ld_528 + ld_536) / 2.5;
   double ld_2920 = (ld_544 / 4.0 + ld_552 / 2.0 + 0.75 * ld_560 + ld_568) / 2.5;
   double ld_2928 = 100.0 * (ld_2880 / 4.0 + ld_2888 / 2.0 + ld_2896) / 1.75;
   double ld_2936 = 100.0 * (ld_2904 / 4.0 + ld_2912 / 2.0 + ld_2920) / 1.75;
   if (ld_2928 >= 55.0) {
      l_text_604 = "Weak Up Trend";
      l_color_600 = DarkGreen;
   } else {
      l_text_604 = ".....Sideway.....";
      l_color_600 = Yellow;
   }
   if (ld_2936 >= 55.0) {
      l_text_604 = "Weak Down Trend";
      l_color_600 = Maroon;
   }
   if (ld_2928 >= 75.0) {
      l_text_604 = "Medium Up Trend";
      l_color_600 = Green;
   }
   if (ld_2936 >= 75.0) {
      l_text_604 = "Medium Down Trend";
      l_color_600 = Crimson;
   }
   if (ld_2928 >= 95.0) {
      l_text_604 = "Strong Up Trend";
      l_color_600 = Lime;
   }
   if (ld_2936 >= 95.0) {
      l_text_604 = "Strong Down Trend";
      l_color_600 = Red;
   }
   string ls_unused_2944 = Period();

   ObjectCreate("TSR2", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR2", "Avg Daily Range:", 7, "Arial Bold", CadetBlue);
   ObjectSet("TSR2", OBJPROP_CORNER, 0);
   ObjectSet("TSR2", OBJPROP_XDISTANCE, 20);
   ObjectSet("TSR2", OBJPROP_YDISTANCE, 5);
   ObjectCreate("TSR3", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR3", DoubleToStr(ld_1256, 0), 7, "Arial", Lime);
   ObjectSet("TSR3", OBJPROP_CORNER, 0);
   ObjectSet("TSR3", OBJPROP_XDISTANCE, 115);
   ObjectSet("TSR3", OBJPROP_YDISTANCE, 5);

   ObjectCreate("TSR4", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR4", "Avg Weekly Range:", 7, "Arial", CadetBlue);
   ObjectSet("TSR4", OBJPROP_CORNER, 0);
   ObjectSet("TSR4", OBJPROP_XDISTANCE, 20);
   ObjectSet("TSR4", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR5", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR5", DoubleToStr(ld_1264, 0), 7, "Arial", Magenta);
   ObjectSet("TSR5", OBJPROP_CORNER, 0);
   ObjectSet("TSR5", OBJPROP_XDISTANCE, 115);
   ObjectSet("TSR5", OBJPROP_YDISTANCE, 20);

   ObjectCreate("TSR6", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR6", "Avg Monthly Range:", 7, "Arial", CadetBlue);
   ObjectSet("TSR6", OBJPROP_CORNER, 0);
   ObjectSet("TSR6", OBJPROP_XDISTANCE, 20);
   ObjectSet("TSR6", OBJPROP_YDISTANCE, 35);
   ObjectCreate("TSR7", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR7", DoubleToStr(ld_1272, 0), 7, "Arial", Aqua);
   ObjectSet("TSR7", OBJPROP_CORNER, 0);
   ObjectSet("TSR7", OBJPROP_XDISTANCE, 110);
   ObjectSet("TSR7", OBJPROP_YDISTANCE, 35);

   ObjectCreate("TSR23", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR23", "Curr Daily Range:", 7, "Arial Bold", CadetBlue);
   ObjectSet("TSR23", OBJPROP_CORNER, 0);
   ObjectSet("TSR23", OBJPROP_XDISTANCE, 150);
   ObjectSet("TSR23", OBJPROP_YDISTANCE, 5);
   ObjectCreate("TSR24", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR24", DoubleToStr(ld_628, 0), 7, "Arial", Lime);
   ObjectSet("TSR24", OBJPROP_CORNER, 0);
   ObjectSet("TSR24", OBJPROP_XDISTANCE, 240);
   ObjectSet("TSR24", OBJPROP_YDISTANCE, 5);

   ObjectCreate("TSR8", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR8", "Curr Weekly Range:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR8", OBJPROP_CORNER, 0);
   ObjectSet("TSR8", OBJPROP_XDISTANCE, 150);
   ObjectSet("TSR8", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR9", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR9", DoubleToStr(ld_636, 0), 7, "Arial", Magenta);
   ObjectSet("TSR9", OBJPROP_CORNER, 0);
   ObjectSet("TSR9", OBJPROP_XDISTANCE, 240);
   ObjectSet("TSR9", OBJPROP_YDISTANCE, 20);

   ObjectCreate("TSR10", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR10", "Curr Monthly Range:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR10", OBJPROP_CORNER, 0);
   ObjectSet("TSR10", OBJPROP_XDISTANCE, 150);
   ObjectSet("TSR10", OBJPROP_YDISTANCE, 35);
   ObjectCreate("TSR11", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR11", DoubleToStr(ld_644, 0), 7, "Arial", Aqua);
   ObjectSet("TSR11", OBJPROP_CORNER, 0);
   ObjectSet("TSR11", OBJPROP_XDISTANCE, 240);
   ObjectSet("TSR11", OBJPROP_YDISTANCE, 35);

   ObjectCreate("TSR31", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR31", "Min:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR31", OBJPROP_CORNER, 0);
   ObjectSet("TSR31", OBJPROP_XDISTANCE, 280);
   ObjectSet("TSR31", OBJPROP_YDISTANCE, 5);
   ObjectCreate("TSR32", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR32", DoubleToStr(ld_1360, 0), 7, "Arial", DodgerBlue);
   ObjectSet("TSR32", OBJPROP_CORNER, 0);
   ObjectSet("TSR32", OBJPROP_XDISTANCE, 305);
   ObjectSet("TSR32", OBJPROP_YDISTANCE, 5);

   ObjectCreate("TSR12", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR12", "Min:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR12", OBJPROP_CORNER, 0);
   ObjectSet("TSR12", OBJPROP_XDISTANCE, 280);
   ObjectSet("TSR12", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR13", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR13", DoubleToStr(ld_1376, 0), 7, "Arial", DodgerBlue);
   ObjectSet("TSR13", OBJPROP_CORNER, 0);
   ObjectSet("TSR13", OBJPROP_XDISTANCE, 305);
   ObjectSet("TSR13", OBJPROP_YDISTANCE, 20);

   ObjectCreate("TSR14", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR14", "Min:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR14", OBJPROP_CORNER, 0);
   ObjectSet("TSR14", OBJPROP_XDISTANCE, 280);
   ObjectSet("TSR14", OBJPROP_YDISTANCE, 35);
   ObjectCreate("TSR15", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR15", DoubleToStr(ld_1392, 0), 7, "Arial", DodgerBlue);
   ObjectSet("TSR15", OBJPROP_CORNER, 0);
   ObjectSet("TSR15", OBJPROP_XDISTANCE, 305);
   ObjectSet("TSR15", OBJPROP_YDISTANCE, 35);

   ObjectCreate("TSR33", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR33", "Max:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR33", OBJPROP_CORNER, 0);
   ObjectSet("TSR33", OBJPROP_XDISTANCE, 330);
   ObjectSet("TSR33", OBJPROP_YDISTANCE, 5);
   ObjectCreate("TSR34", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR34", DoubleToStr(ld_1352, 0), 7, "Arial", Tomato);
   ObjectSet("TSR34", OBJPROP_CORNER, 0);
   ObjectSet("TSR34", OBJPROP_XDISTANCE, 355);
   ObjectSet("TSR34", OBJPROP_YDISTANCE, 5);

   ObjectCreate("TSR35", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR35", "Max:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR35", OBJPROP_CORNER, 0);
   ObjectSet("TSR35", OBJPROP_XDISTANCE, 330);
   ObjectSet("TSR35", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR36", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR36", DoubleToStr(ld_1368, 0), 7, "Arial", Tomato);
   ObjectSet("TSR36", OBJPROP_CORNER, 0);
   ObjectSet("TSR36", OBJPROP_XDISTANCE, 355);
   ObjectSet("TSR36", OBJPROP_YDISTANCE, 20);

   ObjectCreate("TSR37", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR37", "Max:", 7, "Arial ", CadetBlue);
   ObjectSet("TSR37", OBJPROP_CORNER, 0);
   ObjectSet("TSR37", OBJPROP_XDISTANCE, 330);
   ObjectSet("TSR37", OBJPROP_YDISTANCE, 35);
   ObjectCreate("TSR38", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR38", DoubleToStr(ld_1384, 0), 7, "Arial", Tomato);
   ObjectSet("TSR38", OBJPROP_CORNER, 0);
   ObjectSet("TSR38", OBJPROP_XDISTANCE, 355);
   ObjectSet("TSR38", OBJPROP_YDISTANCE, 35);

   ObjectCreate("TSR16", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR16", "Avg Daily %", 7, "Arial Bold", Lime);
   ObjectSet("TSR16", OBJPROP_CORNER, 0);
   ObjectSet("TSR16", OBJPROP_XDISTANCE, 400);
   ObjectSet("TSR16", OBJPROP_YDISTANCE, 5);
   ObjectCreate("TSR17", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR17", "Avg Weekly %", 7, "Arial Bold", Magenta);
   ObjectSet("TSR17", OBJPROP_CORNER, 0);
   ObjectSet("TSR17", OBJPROP_XDISTANCE, 400);
   ObjectSet("TSR17", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR19", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR19", "Avg Monthly %", 7, "Arial Bold", Aqua);
   ObjectSet("TSR19", OBJPROP_CORNER, 0);
   ObjectSet("TSR19", OBJPROP_XDISTANCE, 400);
   ObjectSet("TSR19", OBJPROP_YDISTANCE, 35);

   ObjectCreate("TSR41", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR41", ":", 7, "Arial Bold", Lime);
   ObjectSet("TSR41", OBJPROP_CORNER, 0);
   ObjectSet("TSR41", OBJPROP_XDISTANCE, 470);
   ObjectSet("TSR41", OBJPROP_YDISTANCE, 5);
   ObjectCreate("TSR40", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR40", ":", 7, "Arial Bold", Magenta);
   ObjectSet("TSR40", OBJPROP_CORNER, 0);
   ObjectSet("TSR40", OBJPROP_XDISTANCE, 470);
   ObjectSet("TSR40", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR39", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR39", ":", 7, "Arial Bold", Aqua);
   ObjectSet("TSR39", OBJPROP_CORNER, 0);
   ObjectSet("TSR39", OBJPROP_XDISTANCE, 470);
   ObjectSet("TSR39", OBJPROP_YDISTANCE, 35);

   ObjectCreate("TSR18", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR18", DoubleToStr(ld_748, 2), 7, "Arial", Red);
   ObjectSet("TSR18", OBJPROP_CORNER, 0);
   ObjectSet("TSR18", OBJPROP_XDISTANCE, 485);
   ObjectSet("TSR18", OBJPROP_YDISTANCE, 5);
   ObjectCreate("TSR21", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR21", DoubleToStr(ld_756, 2), 7, "Arial", Red);
   ObjectSet("TSR21", OBJPROP_CORNER, 0);
   ObjectSet("TSR21", OBJPROP_XDISTANCE, 485);
   ObjectSet("TSR21", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR22", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR22", DoubleToStr(ld_764, 2), 7, "Arial", Red);
   ObjectSet("TSR22", OBJPROP_CORNER, 0);
   ObjectSet("TSR22", OBJPROP_XDISTANCE, 485);
   ObjectSet("TSR22", OBJPROP_YDISTANCE, 35);

   ObjectCreate("TSR3911", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR3911", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("TSR3911", OBJPROP_CORNER, 0);
   ObjectSet("TSR3911", OBJPROP_XDISTANCE, 510);
   ObjectSet("TSR3911", OBJPROP_YDISTANCE, 35);
   ObjectCreate("TSR4011", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR4011", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("TSR4011", OBJPROP_CORNER, 0);
   ObjectSet("TSR4011", OBJPROP_XDISTANCE, 510);
   ObjectSet("TSR4011", OBJPROP_YDISTANCE, 20);
   ObjectCreate("TSR4111", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("TSR4111", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("TSR4111", OBJPROP_CORNER, 0);
   ObjectSet("TSR4111", OBJPROP_XDISTANCE, 510);
   ObjectSet("TSR4111", OBJPROP_YDISTANCE, 5);

   ObjectCreate("high2", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("high2", "4 Hrs Trend", 7, "Arial Bold", Blue);
   ObjectSet("high2", OBJPROP_CORNER, 0);
   ObjectSet("high2", OBJPROP_XDISTANCE, 550);
   ObjectSet("high2", OBJPROP_YDISTANCE, 5);
   ObjectCreate("low4", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low4", "8 Hrs Trend", 7, "Arial Bold", Yellow);
   ObjectSet("low4", OBJPROP_CORNER, 0);
   ObjectSet("low4", OBJPROP_XDISTANCE, 550);
   ObjectSet("low4", OBJPROP_YDISTANCE, 20);
   ObjectCreate("low5", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low5", "Daily  Trend", 7, "Arial Bold", Lime);
   ObjectSet("low5", OBJPROP_CORNER, 0);
   ObjectSet("low5", OBJPROP_XDISTANCE, 550);
   ObjectSet("low5", OBJPROP_YDISTANCE, 37);

   ObjectCreate("low4ax", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low4ax", ":", 7, "Arial Bold", Blue);
   ObjectSet("low4ax", OBJPROP_CORNER, 0);
   ObjectSet("low4ax", OBJPROP_XDISTANCE, 610);
   ObjectSet("low4ax", OBJPROP_YDISTANCE, 5);
   ObjectCreate("low4a", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low4a", ":", 7, "Arial Bold", Yellow);
   ObjectSet("low4a", OBJPROP_CORNER, 0);
   ObjectSet("low4a", OBJPROP_XDISTANCE, 610);
   ObjectSet("low4a", OBJPROP_YDISTANCE, 20);
   ObjectCreate("low5b", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low5b", ":", 7, "Arial Bold", Lime);
   ObjectSet("low5b", OBJPROP_CORNER, 0);
   ObjectSet("low5b", OBJPROP_XDISTANCE, 610);
   ObjectSet("low5b", OBJPROP_YDISTANCE, 37);

   ObjectCreate("low", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low", DoubleToStr(ld_2416, 2), 7, "Arial", Green);
   ObjectSet("low", OBJPROP_CORNER, 0);
   ObjectSet("low", OBJPROP_XDISTANCE, 620);
   ObjectSet("low", OBJPROP_YDISTANCE, 5);
   ObjectCreate("lowx", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("lowx", DoubleToStr(ld_2672, 2), 7, "Arial", Green);
   ObjectSet("lowx", OBJPROP_CORNER, 0);
   ObjectSet("lowx", OBJPROP_XDISTANCE, 620);
   ObjectSet("lowx", OBJPROP_YDISTANCE, 20);
   ObjectCreate("lowy", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("lowy", DoubleToStr(ld_2928, 2), 7, "Arial", Green);
   ObjectSet("lowy", OBJPROP_CORNER, 0);
   ObjectSet("lowy", OBJPROP_XDISTANCE, 620);
   ObjectSet("lowy", OBJPROP_YDISTANCE, 37);

   ObjectCreate("low4b", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low4b", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("low4b", OBJPROP_CORNER, 0);
   ObjectSet("low4b", OBJPROP_XDISTANCE, 650);
   ObjectSet("low4b", OBJPROP_YDISTANCE, 5);
   ObjectCreate("low4bx", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low4bx", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("low4bx", OBJPROP_CORNER, 0);
   ObjectSet("low4bx", OBJPROP_XDISTANCE, 650);
   ObjectSet("low4bx", OBJPROP_YDISTANCE, 20);
   ObjectCreate("low4by", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low4by", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("low4by", OBJPROP_CORNER, 0);
   ObjectSet("low4by", OBJPROP_XDISTANCE, 650);
   ObjectSet("low4by", OBJPROP_YDISTANCE, 37);

   ObjectCreate("high4", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("high4", DoubleToStr(ld_2424, 2), 7, "Arial", Red);
   ObjectSet("high4", OBJPROP_CORNER, 0);
   ObjectSet("high4", OBJPROP_XDISTANCE, 675);
   ObjectSet("high4", OBJPROP_YDISTANCE, 5);
   ObjectCreate("high4x", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("high4x", DoubleToStr(ld_2680, 2), 7, "Arial", Red);
   ObjectSet("high4x", OBJPROP_CORNER, 0);
   ObjectSet("high4x", OBJPROP_XDISTANCE, 675);
   ObjectSet("high4x", OBJPROP_YDISTANCE, 20);
   ObjectCreate("high4y", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("high4y", DoubleToStr(ld_2936, 2), 7, "Arial", Red);
   ObjectSet("high4y", OBJPROP_CORNER, 0);
   ObjectSet("high4y", OBJPROP_XDISTANCE, 675);
   ObjectSet("high4y", OBJPROP_YDISTANCE, 37);


   ObjectCreate("low5a", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low5a", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("low5a", OBJPROP_CORNER, 0);
   ObjectSet("low5a", OBJPROP_XDISTANCE, 710);
   ObjectSet("low5a", OBJPROP_YDISTANCE, 5);
   ObjectCreate("low5ax", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low5ax", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("low5ax", OBJPROP_CORNER, 0);
   ObjectSet("low5ax", OBJPROP_XDISTANCE, 710);
   ObjectSet("low5ax", OBJPROP_YDISTANCE, 20);
   ObjectCreate("low5ay", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low5ay", "%", 7, "Arial Bold", CadetBlue);
   ObjectSet("low5ay", OBJPROP_CORNER, 0);
   ObjectSet("low5ay", OBJPROP_XDISTANCE, 710);
   ObjectSet("low5ay", OBJPROP_YDISTANCE, 37);

   ObjectCreate("low6", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low6", l_text_580, 7, "Arial Bold", l_color_576);
   ObjectSet("low6", OBJPROP_CORNER, 0);
   ObjectSet("low6", OBJPROP_XDISTANCE, 730);
   ObjectSet("low6", OBJPROP_YDISTANCE, 5);
   ObjectCreate("low6x", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low6x", l_text_592, 7, "Arial Bold", l_color_588);
   ObjectSet("low6x", OBJPROP_CORNER, 0);
   ObjectSet("low6x", OBJPROP_XDISTANCE, 730);
   ObjectSet("low6x", OBJPROP_YDISTANCE, 20);
   ObjectCreate("low6y", OBJ_LABEL, WindowFind("~"), 0, 0);
   ObjectSetText("low6y", l_text_604, 7, "Arial Bold", l_color_600);
   ObjectSet("low6y", OBJPROP_CORNER, 0);
   ObjectSet("low6y", OBJPROP_XDISTANCE, 730);
   ObjectSet("low6y", OBJPROP_YDISTANCE, 37);

   return (0);
}