Navigation:Home > Content >

Signal_Bars_(AAD_Mods).mq4

Time: 2010-01-06 | Download file:Signal_Bars_(AAD_Mods).mq4

#property copyright "Copyright ©2010, AAD... | Indicator Is Free @ ForexFactory.com / Forex-TSD.com"
#property link      "www.ForexFactory.com"

#property indicator_chart_window

extern string Disclaimer = "-- This Indicator Is 100% Free @ ForexFactory.com / Forex-TSD.com --";
extern string IndicatorChartPosition = "---> Indicator Chart Position Settings <---";
extern bool RightTopCornerDisplay = TRUE;
extern int AdjustSideToSide = 15;
extern int ShiftUpOrDown = 0;
extern int PlaceIntoIndicatorWindowNumber = 0;
extern string InfoSettings = "---> Info Display Settings <---";
extern bool ShowSmallerSize = TRUE;
extern bool ShowBarTrend = TRUE;
extern bool ShowPrice = TRUE;
extern bool ShowDailyData = FALSE;
extern bool ShowBarClock = TRUE;
extern bool ShowPriceOnly = FALSE;
extern bool ShowDailyDataOnly = FALSE;
extern string Timeframes = "---> Display Timeframes <---";
extern int Timeframe1 = 5;
extern int Timeframe2 = 15;
extern int Timeframe3 = 30;
extern int Timeframe4 = 60;
extern int Timeframe5 = 240;
extern int Timeframe6 = 1440;
extern int Timeframe7 = 10080;
extern string MainColor = "---> Main Color Settings <---";
extern color TimeframeLabelColor = DimGray;
extern color DailyDataLabelColor = DimGray;
extern color BarLabelColor = DimGray;
extern color SpreadColor = Gold;
extern color HiToLowColor = Gold;
extern color BarClockColor = Gold;
extern color PipsUpColor = Blue;
extern color PipsDownColor = Red;
extern color DailyAvgUpColor = Blue;
extern color DailyAvgDownColor = Red;
extern string PriceColors = "---> Price & BarTrend Color Settings <---";
extern color PriceUpColor = Blue;
extern color PriceDownColor = Red;
extern color PriceNeutralColor = Gold;
extern string MACDColors = "---> MACD Color Settings <---";
extern color xUp_Above_0 = DodgerBlue;
extern color xDown_Above_0 = DarkOrange;
extern color xUp_Below_0 = Blue;
extern color xDown_Below_0 = Red;
extern string MACDSettings = "---> MACD Variable Settings <---";
extern int MACD_Fast = 8;
extern int MACD_Slow = 17;
extern int MACD_Signal = 9;
extern int MACD_PRICE_TYPE = 0;
extern string STRSettings = "-- STR Indicator Settings --";
extern string STRColors = "---> STR Color Settings <---";
extern color STR_UpColor = Blue;
extern color STR_DownColor = Red;
extern color STR_NO_SignalColor = Gold;
extern string RSISettings = "---> RSI Variable Settings <---";
extern int RSI_Period = 9;
extern int RSI_PRICE_TYPE = 0;
extern string CCISettings = "---> CCI Variable Settings <---";
extern int CCI_Period = 13;
extern int CCI_PRICE_TYPE = 0;
extern string STOCHSettings = "---> STOCH Variable Settings <---";
extern int STOCH_K_Period = 5;
extern int STOCH_D_Period = 3;
extern int STOCH_Slowing = 3;
extern int STOCH_MA_MODE = 1;
extern string MAColors = "---> MA Color Settings <---";
extern color MA_UpColor = Blue;
extern color MA_DownColor = Red;
extern string MASettings = "---> MA Variable Settings <---";
extern int MA_Fast = 5;
extern int MA_Slow = 9;
extern int MA_MODE = 1;
extern int MA_PRICE_TYPE = 0;
extern string ___Mods___ = "(( Mods By AAD ))";

int Signal(string a_name_0, int a_x_8, int a_y_12) {
   ObjectCreate(a_name_0, OBJ_LABEL, PlaceIntoIndicatorWindowNumber, 0, 0);
   ObjectSet(a_name_0, OBJPROP_CORNER, RightTopCornerDisplay);
   ObjectSet(a_name_0, OBJPROP_XDISTANCE, a_x_8);
   ObjectSet(a_name_0, OBJPROP_YDISTANCE, a_y_12);
   ObjectSet(a_name_0, OBJPROP_BACK, FALSE);
   return (0);
}

double prDiff(int a_timeframe_0, int ai_4) {
   double ld_ret_8 = iClose(NULL, a_timeframe_0, ai_4) - iOpen(NULL, a_timeframe_0, ai_4);
   return (ld_ret_8);
}

int init() {
   return (0);
}

int deinit() {
   ObjectDelete("AAD");
   ObjectDelete("CurrentPrice");
   ObjectDelete("SignalTimeframe1");
   ObjectDelete("SignalTimeframe2");
   ObjectDelete("SignalTimeframe3");
   ObjectDelete("SignalTimeframe4");
   ObjectDelete("SignalTimeframe5");
   ObjectDelete("SignalTimeframe6");
   ObjectDelete("SignalTimeframe7");
   ObjectDelete("MACD");
   ObjectDelete("MACDSignalColor1");
   ObjectDelete("MACDSignalColor2");
   ObjectDelete("MACDSignalColor3");
   ObjectDelete("MACDSignalColor4");
   ObjectDelete("MACDSignalColor5");
   ObjectDelete("MACDSignalColor6");
   ObjectDelete("MACDSignalColor7");
   ObjectDelete("STR");
   ObjectDelete("STRSignalColor1");
   ObjectDelete("STRSignalColor2");
   ObjectDelete("STRSignalColor3");
   ObjectDelete("STRSignalColor4");
   ObjectDelete("STRSignalColor5");
   ObjectDelete("STRSignalColor6");
   ObjectDelete("STRSignalColor7");
   ObjectDelete("EMA");
   ObjectDelete("EMASignalColor1");
   ObjectDelete("EMASignalColor2");
   ObjectDelete("EMASignalColor3");
   ObjectDelete("EMASignalColor4");
   ObjectDelete("EMASignalColor5");
   ObjectDelete("EMASignalColor6");
   ObjectDelete("EMASignalColor7");
   ObjectDelete("Spread");
   ObjectDelete("SpreadAmount");
   ObjectDelete("PipsToOpen");
   ObjectDelete("PipsNearTheDayOpen");
   ObjectDelete("HighToLow");
   ObjectDelete("PipsFromTheDaysHighToLow");
   ObjectDelete("DailyAvg");
   ObjectDelete("DailyAveragePipAmount");
   ObjectDelete("BarClock");
   ObjectDelete("BarClosesInMinutes:Seconds");
   ObjectDelete("M1BarTrend");
   ObjectDelete("M5BarTrend");
   ObjectDelete("M15BarTrend");
   ObjectDelete("M30BarTrend");
   ObjectDelete("H1BarTrend");
   ObjectDelete("H4BarTrend");
   ObjectDelete("D1BarTrend");
   ObjectDelete("W1BarTrend");
   ObjectDelete("MN1BarTrend");
   ObjectDelete("BarTrend");
   ObjectDelete("M1BarTrendColor");
   ObjectDelete("M5BarTrendColor");
   ObjectDelete("M15BarTrendColor");
   ObjectDelete("M30BarTrendColor");
   ObjectDelete("H1BarTrendColor");
   ObjectDelete("H4BarTrendColor");
   ObjectDelete("D1BarTrendColor");
   ObjectDelete("W1BarTrendColor");
   ObjectDelete("MN1BarTrendColor");
   return (0);
}

int start() {
   int li_0;
   int li_4;
   string l_text_8;
   string l_text_16;
   string l_text_24;
   string l_text_32;
   string l_text_40;
   string l_text_48;
   string l_text_56;
   string ls_unused_64;
   string l_text_72;
   string l_text_80;
   color l_color_88;
   color l_color_92;
   color l_color_96;
   color l_color_100;
   color l_color_104;
   color l_color_108;
   color l_color_112;
   color l_color_116;
   color l_color_120;
   double ld_124;
   double ld_132;
   double ld_140;
   double ld_148;
   double ld_156;
   double ld_164;
   double ld_172;
   double ld_180;
   double ld_188;
   string l_text_196;
   int li_208;
   int li_212;
   int li_216;
   int li_220;
   int li_224;
   int li_228;
   int li_232;
   color l_color_236;
   color l_color_240;
   color l_color_244;
   color l_color_248;
   color l_color_252;
   color l_color_256;
   color l_color_260;
   string ls_unused_264;
   color l_color_272;
   color l_color_276;
   color l_color_280;
   color l_color_284;
   color l_color_288;
   color l_color_292;
   color l_color_296;
   color l_color_300;
   string ls_unused_304;
   color l_color_312;
   color l_color_316;
   double ld_388;
   if (ShowBarTrend == FALSE) li_0 = 0;
   else li_0 = 17;
   if (ShowDailyDataOnly == FALSE) li_4 = 0;
   else li_4 = 35;
   if (ShowDailyDataOnly == TRUE && ShowPriceOnly == TRUE) li_4 = 0;
   if (ShowBarTrend == TRUE) {
      Signal("M1BarTrend", AdjustSideToSide - 5 + 172, ShiftUpOrDown + 22);
      ObjectSetText("M1BarTrend", "M1", 7, "Arial Bold", TimeframeLabelColor);
      Signal("M5BarTrend", AdjustSideToSide - 5 + 153, ShiftUpOrDown + 22);
      ObjectSetText("M5BarTrend", "M5", 7, "Arial Bold", TimeframeLabelColor);
      Signal("M15BarTrend", AdjustSideToSide - 5 + 131, ShiftUpOrDown + 22);
      ObjectSetText("M15BarTrend", "M15", 7, "Arial Bold", TimeframeLabelColor);
      Signal("M30BarTrend", AdjustSideToSide - 5 + 110, ShiftUpOrDown + 22);
      ObjectSetText("M30BarTrend", "M30", 7, "Arial Bold", TimeframeLabelColor);
      Signal("H1BarTrend", AdjustSideToSide - 5 + 94, ShiftUpOrDown + 22);
      ObjectSetText("H1BarTrend", "H1", 7, "Arial Bold", TimeframeLabelColor);
      Signal("H4BarTrend", AdjustSideToSide - 5 + 74, ShiftUpOrDown + 22);
      ObjectSetText("H4BarTrend", "H4", 7, "Arial Bold", TimeframeLabelColor);
      Signal("D1BarTrend", AdjustSideToSide - 5 + 54, ShiftUpOrDown + 22);
      ObjectSetText("D1BarTrend", "D1", 7, "Arial Bold", TimeframeLabelColor);
      Signal("W1BarTrend", AdjustSideToSide - 5 + 33, ShiftUpOrDown + 22);
      ObjectSetText("W1BarTrend", "W1", 7, "Arial Bold", TimeframeLabelColor);
      Signal("MN1BarTrend", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 22);
      ObjectSetText("MN1BarTrend", "MN1", 7, "Arial Bold", TimeframeLabelColor);
      l_text_8 = "ggg";
      l_text_16 = "ggg";
      l_text_24 = "ggg";
      l_text_32 = "ggg";
      l_text_40 = "ggg";
      l_text_48 = "ggg";
      l_text_56 = "ggg";
      l_text_72 = "ggg";
      l_text_80 = "ggg";
      ld_124 = prDiff(PERIOD_M1, 0);
      ld_132 = prDiff(PERIOD_M5, 0);
      ld_140 = prDiff(PERIOD_M15, 0);
      ld_148 = prDiff(PERIOD_M30, 0);
      ld_156 = prDiff(PERIOD_H1, 0);
      ld_164 = prDiff(PERIOD_H4, 0);
      ld_172 = prDiff(PERIOD_D1, 0);
      ld_180 = prDiff(PERIOD_W1, 0);
      ld_188 = prDiff(PERIOD_MN1, 0);
      if (ld_124 > 0.0) l_color_88 = PriceUpColor;
      else {
         if (ld_124 < 0.0) l_color_88 = PriceDownColor;
         else l_color_88 = PriceNeutralColor;
      }
      if (ld_132 > 0.0) l_color_92 = PriceUpColor;
      else {
         if (ld_132 < 0.0) l_color_92 = PriceDownColor;
         else l_color_92 = PriceNeutralColor;
      }
      if (ld_140 > 0.0) l_color_96 = PriceUpColor;
      else {
         if (ld_140 < 0.0) l_color_96 = PriceDownColor;
         else l_color_96 = PriceNeutralColor;
      }
      if (ld_148 > 0.0) l_color_100 = PriceUpColor;
      else {
         if (ld_148 < 0.0) l_color_100 = PriceDownColor;
         else l_color_100 = PriceNeutralColor;
      }
      if (ld_156 > 0.0) l_color_104 = PriceUpColor;
      else {
         if (ld_156 < 0.0) l_color_104 = PriceDownColor;
         else l_color_104 = PriceNeutralColor;
      }
      if (ld_164 > 0.0) l_color_108 = PriceUpColor;
      else {
         if (ld_164 < 0.0) l_color_108 = PriceDownColor;
         else l_color_108 = PriceNeutralColor;
      }
      if (ld_172 > 0.0) l_color_112 = PriceUpColor;
      else {
         if (ld_172 < 0.0) l_color_112 = PriceDownColor;
         else l_color_112 = PriceNeutralColor;
      }
      if (ld_180 > 0.0) l_color_116 = PriceUpColor;
      else {
         if (ld_180 < 0.0) l_color_116 = PriceDownColor;
         else l_color_116 = PriceNeutralColor;
      }
      if (ld_188 > 0.0) l_color_120 = PriceUpColor;
      else {
         if (ld_188 < 0.0) l_color_120 = PriceDownColor;
         else l_color_120 = PriceNeutralColor;
      }
      l_text_196 = "BarTrend";
      Signal("BarTrend", AdjustSideToSide - 5 + 190, ShiftUpOrDown + 31);
      ObjectSetText("BarTrend", l_text_196, 6, "Arial Bold", BarLabelColor);
      Signal("M1BarTrendColor", AdjustSideToSide - 5 + 170, ShiftUpOrDown + 33);
      ObjectSetText("M1BarTrendColor", l_text_8, 5, "Webdings", l_color_88);
      Signal("M5BarTrendColor", AdjustSideToSide - 5 + 150, ShiftUpOrDown + 33);
      ObjectSetText("M5BarTrendColor", l_text_16, 5, "Webdings", l_color_92);
      Signal("M15BarTrendColor", AdjustSideToSide - 5 + 130, ShiftUpOrDown + 33);
      ObjectSetText("M15BarTrendColor", l_text_24, 5, "Webdings", l_color_96);
      Signal("M30BarTrendColor", AdjustSideToSide - 5 + 110, ShiftUpOrDown + 33);
      ObjectSetText("M30BarTrendColor", l_text_32, 5, "Webdings", l_color_100);
      Signal("H1BarTrendColor", AdjustSideToSide - 5 + 90, ShiftUpOrDown + 33);
      ObjectSetText("H1BarTrendColor", l_text_40, 5, "Webdings", l_color_104);
      Signal("H4BarTrendColor", AdjustSideToSide - 5 + 70, ShiftUpOrDown + 33);
      ObjectSetText("H4BarTrendColor", l_text_48, 5, "Webdings", l_color_108);
      Signal("D1BarTrendColor", AdjustSideToSide - 5 + 50, ShiftUpOrDown + 33);
      ObjectSetText("D1BarTrendColor", l_text_56, 5, "Webdings", l_color_112);
      Signal("W1BarTrendColor", AdjustSideToSide - 5 + 30, ShiftUpOrDown + 33);
      ObjectSetText("W1BarTrendColor", l_text_72, 5, "Webdings", l_color_116);
      Signal("MN1BarTrendColor", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 33);
      ObjectSetText("MN1BarTrendColor", l_text_80, 5, "Webdings", l_color_120);
   }
   int l_ind_counted_320 = IndicatorCounted();
   string l_text_324 = "";
   string l_text_332 = "";
   string l_text_340 = "";
   string l_text_348 = "";
   string l_text_356 = "";
   string l_text_364 = "";
   string l_text_372 = "";
   double ld_380 = 1;
   if (Digits == 5 || Digits == 3) ld_380 = 10;
   if (Digits == 3) ld_388 = Digits - 2;
   else ld_388 = Digits - 4;
   if (Timeframe1 == PERIOD_M1) l_text_324 = "M1";
   if (Timeframe1 == PERIOD_M5) l_text_324 = "M5";
   if (Timeframe1 == PERIOD_M15) l_text_324 = "M15";
   if (Timeframe1 == PERIOD_M30) l_text_324 = "M30";
   if (Timeframe1 == PERIOD_H1) l_text_324 = "H1";
   if (Timeframe1 == PERIOD_H4) l_text_324 = "H4";
   if (Timeframe1 == PERIOD_D1) l_text_324 = "D1";
   if (Timeframe1 == PERIOD_W1) l_text_324 = "W1";
   if (Timeframe1 == PERIOD_MN1) l_text_324 = "MN";
   if (Timeframe2 == PERIOD_M1) l_text_332 = "M1";
   if (Timeframe2 == PERIOD_M5) l_text_332 = "M5";
   if (Timeframe2 == PERIOD_M15) l_text_332 = "M15";
   if (Timeframe2 == PERIOD_M30) l_text_332 = "M30";
   if (Timeframe2 == PERIOD_H1) l_text_332 = "H1";
   if (Timeframe2 == PERIOD_H4) l_text_332 = "H4";
   if (Timeframe2 == PERIOD_D1) l_text_332 = "D1";
   if (Timeframe2 == PERIOD_W1) l_text_332 = "W1";
   if (Timeframe2 == PERIOD_MN1) l_text_332 = "MN";
   if (Timeframe3 == PERIOD_M1) l_text_340 = "M1";
   if (Timeframe3 == PERIOD_M5) l_text_340 = "M5";
   if (Timeframe3 == PERIOD_M15) l_text_340 = "M15";
   if (Timeframe3 == PERIOD_M30) l_text_340 = "M30";
   if (Timeframe3 == PERIOD_H1) l_text_340 = "H1";
   if (Timeframe3 == PERIOD_H4) l_text_340 = "H4";
   if (Timeframe3 == PERIOD_D1) l_text_340 = "D1";
   if (Timeframe3 == PERIOD_W1) l_text_340 = "W1";
   if (Timeframe3 == PERIOD_MN1) l_text_340 = "MN";
   if (Timeframe4 == PERIOD_M1) l_text_348 = "M1";
   if (Timeframe4 == PERIOD_M5) l_text_348 = "M5";
   if (Timeframe4 == PERIOD_M15) l_text_348 = "M15";
   if (Timeframe4 == PERIOD_M30) l_text_348 = "M30";
   if (Timeframe4 == PERIOD_H1) l_text_348 = "H1";
   if (Timeframe4 == PERIOD_H4) l_text_348 = "H4";
   if (Timeframe4 == PERIOD_D1) l_text_348 = "D1";
   if (Timeframe4 == PERIOD_W1) l_text_348 = "W1";
   if (Timeframe4 == PERIOD_MN1) l_text_348 = "MN";
   if (Timeframe5 == PERIOD_M1) l_text_356 = "M1";
   if (Timeframe5 == PERIOD_M5) l_text_356 = "M5";
   if (Timeframe5 == PERIOD_M15) l_text_356 = "M15";
   if (Timeframe5 == PERIOD_M30) l_text_356 = "M30";
   if (Timeframe5 == PERIOD_H1) l_text_356 = "H1";
   if (Timeframe5 == PERIOD_H4) l_text_356 = "H4";
   if (Timeframe5 == PERIOD_D1) l_text_356 = "D1";
   if (Timeframe5 == PERIOD_W1) l_text_356 = "W1";
   if (Timeframe5 == PERIOD_MN1) l_text_356 = "MN";
   if (Timeframe6 == PERIOD_M1) l_text_364 = "M1";
   if (Timeframe6 == PERIOD_M5) l_text_364 = "M5";
   if (Timeframe6 == PERIOD_M15) l_text_364 = "M15";
   if (Timeframe6 == PERIOD_M30) l_text_364 = "M30";
   if (Timeframe6 == PERIOD_H1) l_text_364 = "H1";
   if (Timeframe6 == PERIOD_H4) l_text_364 = "H4";
   if (Timeframe6 == PERIOD_D1) l_text_364 = "D1";
   if (Timeframe6 == PERIOD_W1) l_text_364 = "W1";
   if (Timeframe6 == PERIOD_MN1) l_text_364 = "MN";
   if (Timeframe7 == PERIOD_M1) l_text_372 = "M1";
   if (Timeframe7 == PERIOD_M5) l_text_372 = "M5";
   if (Timeframe7 == PERIOD_M15) l_text_372 = "M15";
   if (Timeframe7 == PERIOD_M30) l_text_372 = "M30";
   if (Timeframe7 == PERIOD_H1) l_text_372 = "H1";
   if (Timeframe7 == PERIOD_H4) l_text_372 = "H4";
   if (Timeframe7 == PERIOD_D1) l_text_372 = "D1";
   if (Timeframe7 == PERIOD_W1) l_text_372 = "W1";
   if (Timeframe7 == PERIOD_MN1) l_text_372 = "MN";
   if (Timeframe1 == PERIOD_M15) li_208 = -2;
   if (Timeframe1 == PERIOD_M30) li_208 = -3;
   if (Timeframe2 == PERIOD_M15) li_212 = -2;
   if (Timeframe2 == PERIOD_M30) li_212 = -3;
   if (Timeframe3 == PERIOD_M15) li_216 = -2;
   if (Timeframe3 == PERIOD_M30) li_216 = -3;
   if (Timeframe4 == PERIOD_M15) li_220 = -2;
   if (Timeframe4 == PERIOD_M30) li_220 = -3;
   if (Timeframe5 == PERIOD_M15) li_224 = -2;
   if (Timeframe5 == PERIOD_M30) li_224 = -3;
   if (Timeframe6 == PERIOD_M15) li_228 = -2;
   if (Timeframe6 == PERIOD_M30) li_228 = -3;
   if (Timeframe7 == PERIOD_M15) li_232 = -2;
   if (Timeframe6 == PERIOD_M30) li_232 = -3;
   if (ShiftUpOrDown < 0) return (0);
   if (ShowDailyDataOnly == FALSE || ShowDailyDataOnly == FALSE && ShowPriceOnly == FALSE) {
      Signal("SignalTimeframe1", AdjustSideToSide - 5 + 133 + li_208, ShiftUpOrDown + 23 + li_0);
      ObjectSetText("SignalTimeframe1", l_text_324, 7, "Arial Bold", TimeframeLabelColor);
      Signal("SignalTimeframe2", AdjustSideToSide - 5 + 113 + li_212, ShiftUpOrDown + 23 + li_0);
      ObjectSetText("SignalTimeframe2", l_text_332, 7, "Arial Bold", TimeframeLabelColor);
      Signal("SignalTimeframe3", AdjustSideToSide - 5 + 93 + li_216, ShiftUpOrDown + 23 + li_0);
      ObjectSetText("SignalTimeframe3", l_text_340, 7, "Arial Bold", TimeframeLabelColor);
      Signal("SignalTimeframe4", AdjustSideToSide - 5 + 73 + li_220, ShiftUpOrDown + 23 + li_0);
      ObjectSetText("SignalTimeframe4", l_text_348, 7, "Arial Bold", TimeframeLabelColor);
      Signal("SignalTimeframe5", AdjustSideToSide - 5 + 53 + li_224, ShiftUpOrDown + 23 + li_0);
      ObjectSetText("SignalTimeframe5", l_text_356, 7, "Arial Bold", TimeframeLabelColor);
      Signal("SignalTimeframe6", AdjustSideToSide - 5 + 33 + li_228, ShiftUpOrDown + 23 + li_0);
      ObjectSetText("SignalTimeframe6", l_text_364, 7, "Arial Bold", TimeframeLabelColor);
      Signal("SignalTimeframe7", AdjustSideToSide - 5 + 13 + li_232, ShiftUpOrDown + 23 + li_0);
      ObjectSetText("SignalTimeframe7", l_text_372, 7, "Arial Bold", TimeframeLabelColor);
   }
   string l_text_396 = "";
   string l_text_404 = "";
   string l_text_412 = "";
   string l_text_420 = "";
   string l_text_428 = "";
   string l_text_436 = "";
   string l_text_444 = "";
   string ls_unused_452 = "";
   string ls_unused_460 = "";
   double l_imacd_468 = iMACD(NULL, Timeframe1, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
   double l_imacd_476 = iMACD(NULL, Timeframe1, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
   double l_imacd_484 = iMACD(NULL, Timeframe2, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
   double l_imacd_492 = iMACD(NULL, Timeframe2, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
   double l_imacd_500 = iMACD(NULL, Timeframe3, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
   double l_imacd_508 = iMACD(NULL, Timeframe3, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
   double l_imacd_516 = iMACD(NULL, Timeframe4, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
   double l_imacd_524 = iMACD(NULL, Timeframe4, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
   double l_imacd_532 = iMACD(NULL, Timeframe5, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
   double l_imacd_540 = iMACD(NULL, Timeframe5, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
   double l_imacd_548 = iMACD(NULL, Timeframe6, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
   double l_imacd_556 = iMACD(NULL, Timeframe6, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
   double l_imacd_564 = iMACD(NULL, Timeframe7, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_MAIN, 0);
   double l_imacd_572 = iMACD(NULL, Timeframe7, MACD_Fast, MACD_Slow, MACD_Signal, MACD_PRICE_TYPE, MODE_SIGNAL, 0);
   if (l_imacd_468 > l_imacd_476) {
      l_text_420 = "ggg";
      l_color_248 = xUp_Below_0;
   }
   if (l_imacd_468 <= l_imacd_476) {
      l_text_420 = "ggg";
      l_color_248 = xDown_Above_0;
   }
   if (l_imacd_468 > l_imacd_476 && l_imacd_468 > 0.0) {
      l_text_420 = "ggg";
      l_color_248 = xUp_Above_0;
   }
   if (l_imacd_468 <= l_imacd_476 && l_imacd_468 < 0.0) {
      l_text_420 = "ggg";
      l_color_248 = xDown_Below_0;
   }
   if (l_imacd_484 > l_imacd_492) {
      l_text_428 = "ggg";
      l_color_252 = xUp_Below_0;
   }
   if (l_imacd_484 <= l_imacd_492) {
      l_text_428 = "ggg";
      l_color_252 = xDown_Above_0;
   }
   if (l_imacd_484 > l_imacd_492 && l_imacd_484 > 0.0) {
      l_text_428 = "ggg";
      l_color_252 = xUp_Above_0;
   }
   if (l_imacd_484 <= l_imacd_492 && l_imacd_484 < 0.0) {
      l_text_428 = "ggg";
      l_color_252 = xDown_Below_0;
   }
   if (l_imacd_500 > l_imacd_508) {
      l_text_436 = "ggg";
      l_color_256 = xUp_Below_0;
   }
   if (l_imacd_500 <= l_imacd_508) {
      l_text_436 = "ggg";
      l_color_256 = xDown_Above_0;
   }
   if (l_imacd_500 > l_imacd_508 && l_imacd_500 > 0.0) {
      l_text_436 = "ggg";
      l_color_256 = xUp_Above_0;
   }
   if (l_imacd_500 <= l_imacd_508 && l_imacd_500 < 0.0) {
      l_text_436 = "ggg";
      l_color_256 = xDown_Below_0;
   }
   if (l_imacd_516 > l_imacd_524) {
      l_text_444 = "ggg";
      l_color_260 = xUp_Below_0;
   }
   if (l_imacd_516 <= l_imacd_524) {
      l_text_444 = "ggg";
      l_color_260 = xDown_Above_0;
   }
   if (l_imacd_516 > l_imacd_524 && l_imacd_516 > 0.0) {
      l_text_444 = "ggg";
      l_color_260 = xUp_Above_0;
   }
   if (l_imacd_516 <= l_imacd_524 && l_imacd_516 < 0.0) {
      l_text_444 = "ggg";
      l_color_260 = xDown_Below_0;
   }
   if (l_imacd_532 > l_imacd_540) {
      l_text_404 = "ggg";
      l_color_240 = xUp_Below_0;
   }
   if (l_imacd_532 <= l_imacd_540) {
      l_text_404 = "ggg";
      l_color_240 = xDown_Above_0;
   }
   if (l_imacd_532 > l_imacd_540 && l_imacd_532 > 0.0) {
      l_text_404 = "ggg";
      l_color_240 = xUp_Above_0;
   }
   if (l_imacd_532 <= l_imacd_540 && l_imacd_532 < 0.0) {
      l_text_404 = "ggg";
      l_color_240 = xDown_Below_0;
   }
   if (l_imacd_548 > l_imacd_556) {
      l_text_412 = "ggg";
      l_color_244 = xUp_Below_0;
   }
   if (l_imacd_548 <= l_imacd_556) {
      l_text_412 = "ggg";
      l_color_244 = xDown_Above_0;
   }
   if (l_imacd_548 > l_imacd_556 && l_imacd_548 > 0.0) {
      l_text_412 = "ggg";
      l_color_244 = xUp_Above_0;
   }
   if (l_imacd_548 <= l_imacd_556 && l_imacd_548 < 0.0) {
      l_text_412 = "ggg";
      l_color_244 = xDown_Below_0;
   }
   if (l_imacd_564 > l_imacd_572) {
      l_text_396 = "ggg";
      l_color_236 = xUp_Below_0;
   }
   if (l_imacd_564 <= l_imacd_572) {
      l_text_396 = "ggg";
      l_color_236 = xDown_Above_0;
   }
   if (l_imacd_564 > l_imacd_572 && l_imacd_564 > 0.0) {
      l_text_396 = "ggg";
      l_color_236 = xUp_Above_0;
   }
   if (l_imacd_564 <= l_imacd_572 && l_imacd_564 < 0.0) {
      l_text_396 = "ggg";
      l_color_236 = xDown_Below_0;
   }
   if (ShowDailyDataOnly == FALSE || ShowDailyDataOnly == FALSE && ShowPriceOnly == FALSE) {
      Signal("MACD", AdjustSideToSide - 5 + 150, ShiftUpOrDown + 33 + li_0);
      ObjectSetText("MACD", "MACD", 6, "Arial Bold", BarLabelColor);
      Signal("MACDSignalColor1", AdjustSideToSide - 5 + 130, ShiftUpOrDown + 35 + li_0);
      ObjectSetText("MACDSignalColor1", l_text_420, 5, "Webdings", l_color_248);
      Signal("MACDSignalColor2", AdjustSideToSide - 5 + 110, ShiftUpOrDown + 35 + li_0);
      ObjectSetText("MACDSignalColor2", l_text_428, 5, "Webdings", l_color_252);
      Signal("MACDSignalColor3", AdjustSideToSide - 5 + 90, ShiftUpOrDown + 35 + li_0);
      ObjectSetText("MACDSignalColor3", l_text_436, 5, "Webdings", l_color_256);
      Signal("MACDSignalColor4", AdjustSideToSide - 5 + 70, ShiftUpOrDown + 35 + li_0);
      ObjectSetText("MACDSignalColor4", l_text_444, 5, "Webdings", l_color_260);
      Signal("MACDSignalColor5", AdjustSideToSide - 5 + 50, ShiftUpOrDown + 35 + li_0);
      ObjectSetText("MACDSignalColor5", l_text_404, 5, "Webdings", l_color_240);
      Signal("MACDSignalColor6", AdjustSideToSide - 5 + 30, ShiftUpOrDown + 35 + li_0);
      ObjectSetText("MACDSignalColor6", l_text_412, 5, "Webdings", l_color_244);
      Signal("MACDSignalColor7", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 35 + li_0);
      ObjectSetText("MACDSignalColor7", l_text_396, 5, "Webdings", l_color_236);
   }
   double l_irsi_580 = iRSI(NULL, Timeframe7, RSI_Period, RSI_PRICE_TYPE, 0);
   double l_irsi_588 = iRSI(NULL, Timeframe6, RSI_Period, RSI_PRICE_TYPE, 0);
   double l_irsi_596 = iRSI(NULL, Timeframe5, RSI_Period, RSI_PRICE_TYPE, 0);
   double l_irsi_604 = iRSI(NULL, Timeframe4, RSI_Period, RSI_PRICE_TYPE, 0);
   double l_irsi_612 = iRSI(NULL, Timeframe3, RSI_Period, RSI_PRICE_TYPE, 0);
   double l_irsi_620 = iRSI(NULL, Timeframe2, RSI_Period, RSI_PRICE_TYPE, 0);
   double l_irsi_628 = iRSI(NULL, Timeframe1, RSI_Period, RSI_PRICE_TYPE, 0);
   double l_istochastic_636 = iStochastic(NULL, Timeframe7, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
   double l_istochastic_644 = iStochastic(NULL, Timeframe6, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
   double l_istochastic_652 = iStochastic(NULL, Timeframe5, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
   double l_istochastic_660 = iStochastic(NULL, Timeframe4, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
   double l_istochastic_668 = iStochastic(NULL, Timeframe3, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
   double l_istochastic_676 = iStochastic(NULL, Timeframe2, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
   double l_istochastic_684 = iStochastic(NULL, Timeframe1, STOCH_K_Period, STOCH_D_Period, STOCH_Slowing, STOCH_MA_MODE, 0, MODE_MAIN, 0);
   double l_icci_692 = iCCI(NULL, Timeframe7, CCI_Period, CCI_PRICE_TYPE, 0);
   double l_icci_700 = iCCI(NULL, Timeframe6, CCI_Period, CCI_PRICE_TYPE, 0);
   double l_icci_708 = iCCI(NULL, Timeframe5, CCI_Period, CCI_PRICE_TYPE, 0);
   double l_icci_716 = iCCI(NULL, Timeframe4, CCI_Period, CCI_PRICE_TYPE, 0);
   double l_icci_724 = iCCI(NULL, Timeframe3, CCI_Period, CCI_PRICE_TYPE, 0);
   double l_icci_732 = iCCI(NULL, Timeframe2, CCI_Period, CCI_PRICE_TYPE, 0);
   double l_icci_740 = iCCI(NULL, Timeframe1, CCI_Period, CCI_PRICE_TYPE, 0);
   string l_text_748 = "";
   string l_text_756 = "";
   string l_text_764 = "";
   string l_text_772 = "";
   string l_text_780 = "";
   string l_text_788 = "";
   string l_text_796 = "";
   string ls_unused_804 = "";
   string ls_unused_812 = "";
   l_text_796 = "ggg";
   color l_color_820 = STR_NO_SignalColor;
   l_text_780 = "ggg";
   color l_color_824 = STR_NO_SignalColor;
   l_text_748 = "ggg";
   color l_color_828 = STR_NO_SignalColor;
   l_text_788 = "ggg";
   color l_color_832 = STR_NO_SignalColor;
   l_text_756 = "ggg";
   color l_color_836 = STR_NO_SignalColor;
   l_text_764 = "ggg";
   color l_color_840 = STR_NO_SignalColor;
   l_text_772 = "ggg";
   color l_color_844 = STR_NO_SignalColor;
   if (l_irsi_580 > 50.0 && l_istochastic_636 > 40.0 && l_icci_692 > 0.0) {
      l_text_796 = "ggg";
      l_color_820 = STR_UpColor;
   }
   if (l_irsi_588 > 50.0 && l_istochastic_644 > 40.0 && l_icci_700 > 0.0) {
      l_text_780 = "ggg";
      l_color_824 = STR_UpColor;
   }
   if (l_irsi_596 > 50.0 && l_istochastic_652 > 40.0 && l_icci_708 > 0.0) {
      l_text_748 = "ggg";
      l_color_828 = STR_UpColor;
   }
   if (l_irsi_604 > 50.0 && l_istochastic_660 > 40.0 && l_icci_716 > 0.0) {
      l_text_788 = "ggg";
      l_color_832 = STR_UpColor;
   }
   if (l_irsi_612 > 50.0 && l_istochastic_668 > 40.0 && l_icci_724 > 0.0) {
      l_text_756 = "ggg";
      l_color_836 = STR_UpColor;
   }
   if (l_irsi_620 > 50.0 && l_istochastic_676 > 40.0 && l_icci_732 > 0.0) {
      l_text_764 = "ggg";
      l_color_840 = STR_UpColor;
   }
   if (l_irsi_628 > 50.0 && l_istochastic_684 > 40.0 && l_icci_740 > 0.0) {
      l_text_772 = "ggg";
      l_color_844 = STR_UpColor;
   }
   if (l_irsi_580 < 50.0 && l_istochastic_636 < 60.0 && l_icci_692 < 0.0) {
      l_text_796 = "ggg";
      l_color_820 = STR_DownColor;
   }
   if (l_irsi_588 < 50.0 && l_istochastic_644 < 60.0 && l_icci_700 < 0.0) {
      l_text_780 = "ggg";
      l_color_824 = STR_DownColor;
   }
   if (l_irsi_596 < 50.0 && l_istochastic_652 < 60.0 && l_icci_708 < 0.0) {
      l_text_748 = "ggg";
      l_color_828 = STR_DownColor;
   }
   if (l_irsi_604 < 50.0 && l_istochastic_660 < 60.0 && l_icci_716 < 0.0) {
      l_text_788 = "ggg";
      l_color_832 = STR_DownColor;
   }
   if (l_irsi_612 < 50.0 && l_istochastic_668 < 60.0 && l_icci_724 < 0.0) {
      l_text_756 = "ggg";
      l_color_836 = STR_DownColor;
   }
   if (l_irsi_620 < 50.0 && l_istochastic_676 < 60.0 && l_icci_732 < 0.0) {
      l_text_764 = "ggg";
      l_color_840 = STR_DownColor;
   }
   if (l_irsi_628 < 50.0 && l_istochastic_684 < 60.0 && l_icci_740 < 0.0) {
      l_text_772 = "ggg";
      l_color_844 = STR_DownColor;
   }
   if (ShowDailyDataOnly == FALSE || ShowDailyDataOnly == FALSE && ShowPriceOnly == FALSE) {
      Signal("STR", AdjustSideToSide - 5 + 150, ShiftUpOrDown + 42 + li_0);
      ObjectSetText("STR", "STR", 6, "Arial Bold", BarLabelColor);
      Signal("STRSignalColor1", AdjustSideToSide - 5 + 130, ShiftUpOrDown + 44 + li_0);
      ObjectSetText("STRSignalColor1", l_text_772, 5, "Webdings", l_color_844);
      Signal("STRSignalColor2", AdjustSideToSide - 5 + 110, ShiftUpOrDown + 44 + li_0);
      ObjectSetText("STRSignalColor2", l_text_764, 5, "Webdings", l_color_840);
      Signal("STRSignalColor3", AdjustSideToSide - 5 + 90, ShiftUpOrDown + 44 + li_0);
      ObjectSetText("STRSignalColor3", l_text_756, 5, "Webdings", l_color_836);
      Signal("STRSignalColor4", AdjustSideToSide - 5 + 70, ShiftUpOrDown + 44 + li_0);
      ObjectSetText("STRSignalColor4", l_text_788, 5, "Webdings", l_color_832);
      Signal("STRSignalColor5", AdjustSideToSide - 5 + 50, ShiftUpOrDown + 44 + li_0);
      ObjectSetText("STRSignalColor5", l_text_748, 5, "Webdings", l_color_828);
      Signal("STRSignalColor6", AdjustSideToSide - 5 + 30, ShiftUpOrDown + 44 + li_0);
      ObjectSetText("STRSignalColor6", l_text_780, 5, "Webdings", l_color_824);
      Signal("STRSignalColor7", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 44 + li_0);
      ObjectSetText("STRSignalColor7", l_text_796, 5, "Webdings", l_color_820);
   }
   double l_ima_848 = iMA(Symbol(), Timeframe1, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_856 = iMA(Symbol(), Timeframe1, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_864 = iMA(Symbol(), Timeframe2, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_872 = iMA(Symbol(), Timeframe2, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_880 = iMA(Symbol(), Timeframe3, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_888 = iMA(Symbol(), Timeframe3, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_896 = iMA(Symbol(), Timeframe4, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_904 = iMA(Symbol(), Timeframe4, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_912 = iMA(Symbol(), Timeframe5, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_920 = iMA(Symbol(), Timeframe5, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_928 = iMA(Symbol(), Timeframe6, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_936 = iMA(Symbol(), Timeframe6, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_944 = iMA(Symbol(), Timeframe7, MA_Fast, 0, MA_MODE, MA_PRICE_TYPE, 0);
   double l_ima_952 = iMA(Symbol(), Timeframe7, MA_Slow, 0, MA_MODE, MA_PRICE_TYPE, 0);
   string l_text_960 = "";
   string l_text_968 = "";
   string l_text_976 = "";
   string l_text_984 = "";
   string l_text_992 = "";
   string l_text_1000 = "";
   string l_text_1008 = "";
   string ls_unused_1016 = "";
   string ls_unused_1024 = "";
   if (l_ima_848 > l_ima_856) {
      l_text_960 = "ggg";
      l_color_272 = MA_UpColor;
   }
   if (l_ima_848 <= l_ima_856) {
      l_text_960 = "ggg";
      l_color_272 = MA_DownColor;
   }
   if (l_ima_864 > l_ima_872) {
      l_text_968 = "ggg";
      l_color_276 = MA_UpColor;
   }
   if (l_ima_864 <= l_ima_872) {
      l_text_968 = "ggg";
      l_color_276 = MA_DownColor;
   }
   if (l_ima_880 > l_ima_888) {
      l_text_976 = "ggg";
      l_color_280 = MA_UpColor;
   }
   if (l_ima_880 <= l_ima_888) {
      l_text_976 = "ggg";
      l_color_280 = MA_DownColor;
   }
   if (l_ima_896 > l_ima_904) {
      l_text_984 = "ggg";
      l_color_284 = MA_UpColor;
   }
   if (l_ima_896 <= l_ima_904) {
      l_text_984 = "ggg";
      l_color_284 = MA_DownColor;
   }
   if (l_ima_912 > l_ima_920) {
      l_text_992 = "ggg";
      l_color_288 = MA_UpColor;
   }
   if (l_ima_912 <= l_ima_920) {
      l_text_992 = "ggg";
      l_color_288 = MA_DownColor;
   }
   if (l_ima_928 > l_ima_936) {
      l_text_1000 = "ggg";
      l_color_292 = MA_UpColor;
   }
   if (l_ima_928 <= l_ima_936) {
      l_text_1000 = "ggg";
      l_color_292 = MA_DownColor;
   }
   if (l_ima_944 > l_ima_952) {
      l_text_1008 = "ggg";
      l_color_296 = MA_UpColor;
   }
   if (l_ima_944 <= l_ima_952) {
      l_text_1008 = "ggg";
      l_color_296 = MA_DownColor;
   }
   if (ShowDailyDataOnly == FALSE || ShowDailyDataOnly == FALSE && ShowPriceOnly == FALSE) {
      Signal("EMA", AdjustSideToSide - 5 + 150, ShiftUpOrDown + 51 + li_0);
      ObjectSetText("EMA", "EMA", 6, "Arial Bold", BarLabelColor);
      Signal("EMASignalColor1", AdjustSideToSide - 5 + 130, ShiftUpOrDown + 53 + li_0);
      ObjectSetText("EMASignalColor1", l_text_960, 5, "Webdings", l_color_272);
      Signal("EMASignalColor2", AdjustSideToSide - 5 + 110, ShiftUpOrDown + 53 + li_0);
      ObjectSetText("EMASignalColor2", l_text_968, 5, "Webdings", l_color_276);
      Signal("EMASignalColor3", AdjustSideToSide - 5 + 90, ShiftUpOrDown + 53 + li_0);
      ObjectSetText("EMASignalColor3", l_text_976, 5, "Webdings", l_color_280);
      Signal("EMASignalColor4", AdjustSideToSide - 5 + 70, ShiftUpOrDown + 53 + li_0);
      ObjectSetText("EMASignalColor4", l_text_984, 5, "Webdings", l_color_284);
      Signal("EMASignalColor5", AdjustSideToSide - 5 + 50, ShiftUpOrDown + 53 + li_0);
      ObjectSetText("EMASignalColor5", l_text_992, 5, "Webdings", l_color_288);
      Signal("EMASignalColor6", AdjustSideToSide - 5 + 30, ShiftUpOrDown + 53 + li_0);
      ObjectSetText("EMASignalColor6", l_text_1000, 5, "Webdings", l_color_292);
      Signal("EMASignalColor7", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 53 + li_0);
      ObjectSetText("EMASignalColor7", l_text_1008, 5, "Webdings", l_color_296);
   }
   double ld_1032 = NormalizeDouble(MarketInfo(Symbol(), MODE_BID), Digits);
   double l_ima_1040 = iMA(Symbol(), PERIOD_M1, 1, 0, MODE_EMA, PRICE_CLOSE, 1);
   string ls_unused_1048 = "";
   if (l_ima_1040 > ld_1032) {
      ls_unused_1048 = "";
      l_color_300 = PriceDownColor;
   }
   if (l_ima_1040 < ld_1032) {
      ls_unused_1048 = "";
      l_color_300 = PriceUpColor;
   }
   if (l_ima_1040 == ld_1032) {
      ls_unused_1048 = "";
      l_color_300 = PriceNeutralColor;
   }
   if (ShowPriceOnly == FALSE) {
      if (ShowDailyDataOnly == FALSE) Signal("AAD", AdjustSideToSide - 5 + 150, ShiftUpOrDown + 23 + li_0);
      if (ShowBarTrend == TRUE && ShowDailyDataOnly == TRUE) Signal("AAD", AdjustSideToSide - 5 + 190, ShiftUpOrDown + 22);
      if (ShowBarTrend == TRUE) Signal("AAD", AdjustSideToSide - 5 + 190, ShiftUpOrDown + 22);
      ObjectSetText("AAD", "AAD", 6, "Arial", DarkSlateGray);
   }
   if (ShowBarTrend == TRUE && ShowPriceOnly == TRUE) {
      Signal("AAD", AdjustSideToSide - 5 + 190, ShiftUpOrDown + 22);
      ObjectSetText("AAD", "AAD", 6, "Arial", DarkSlateGray);
   }
   if (ShowSmallerSize == FALSE) {
      if (ShowPrice == TRUE) {
         Signal("CurrentPrice", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 58 - li_4 + li_0);
         ObjectSetText("CurrentPrice", DoubleToStr(ld_1032, Digits), 33, "Arial", l_color_300);
      }
      if (ShowPriceOnly == TRUE) {
         Signal("CurrentPrice", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 23 - li_4 + li_0);
         ObjectSetText("CurrentPrice", DoubleToStr(ld_1032, Digits), 33, "Arial", l_color_300);
      }
   }
   if (ShowSmallerSize == TRUE) {
      if (ShowPrice == TRUE) {
         Signal("CurrentPrice", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 58 - li_4 + li_0);
         ObjectSetText("CurrentPrice", DoubleToStr(ld_1032, Digits), 23, "Arial", l_color_300);
      }
      if (ShowPriceOnly == TRUE) {
         Signal("CurrentPrice", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 23 - li_4 + li_0);
         ObjectSetText("CurrentPrice", DoubleToStr(ld_1032, Digits), 23, "Arial", l_color_300);
      }
   }
   int li_1056 = 0;
   int li_1060 = 0;
   int li_1064 = 0;
   int li_1068 = 0;
   int li_1072 = 0;
   int li_1076 = 0;
   li_1056 = (iHigh(NULL, PERIOD_D1, 1) - iLow(NULL, PERIOD_D1, 1)) / Point;
   for (li_1076 = 1; li_1076 <= 5; li_1076++) li_1060 = li_1060 + (iHigh(NULL, PERIOD_D1, li_1076) - iLow(NULL, PERIOD_D1, li_1076)) / Point;
   for (li_1076 = 1; li_1076 <= 10; li_1076++) li_1064 = li_1064 + (iHigh(NULL, PERIOD_D1, li_1076) - iLow(NULL, PERIOD_D1, li_1076)) / Point;
   for (li_1076 = 1; li_1076 <= 20; li_1076++) li_1068 = li_1068 + (iHigh(NULL, PERIOD_D1, li_1076) - iLow(NULL, PERIOD_D1, li_1076)) / Point;
   li_1060 /= 5;
   li_1064 /= 10;
   li_1068 /= 20;
   li_1072 = (li_1056 + li_1060 + li_1064 + li_1068) / 4;
   string ls_unused_1080 = "";
   string ls_unused_1088 = "";
   string l_dbl2str_1096 = "";
   string l_dbl2str_1104 = "";
   string l_dbl2str_1112 = "";
   string ls_unused_1120 = "";
   string ls_unused_1128 = "";
   string ls_1136 = "";
   double l_iopen_1144 = iOpen(NULL, PERIOD_D1, 0);
   double l_iclose_1152 = iClose(NULL, PERIOD_D1, 0);
   double l_ihigh_1160 = iHigh(NULL, PERIOD_D1, 0);
   double l_ilow_1168 = iLow(NULL, PERIOD_D1, 0);
   int li_1176 = Time[0] + 60 * Period() - TimeCurrent();
   int li_1180 = li_1176 % 60;
   li_1176 = (li_1176 - li_1176 % 60) / 60;
   string ls_1184 = "" + li_1176 + ":" + li_1180 + "";
   double l_bid_1192 = MarketInfo(Symbol(), MODE_BID);
   double l_ask_1200 = MarketInfo(Symbol(), MODE_ASK);
   double ld_1208 = (l_ask_1200 - l_bid_1192) / Point;
   string l_dbl2str_1216 = DoubleToStr(ld_1208 / ld_380, ld_388);
   l_dbl2str_1096 = DoubleToStr((l_iclose_1152 - l_iopen_1144) / ld_380 / Point, 0);
   l_dbl2str_1104 = DoubleToStr(li_1072 / ld_380, ld_388);
   ls_1136 = (iHigh(NULL, PERIOD_D1, 1) - iLow(NULL, PERIOD_D1, 1)) / Point / ld_380;
   l_dbl2str_1112 = DoubleToStr((l_ihigh_1160 - l_ilow_1168) / ld_380 / Point, 0);
   if (l_iclose_1152 >= l_iopen_1144) {
      ls_unused_1120 = "-";
      l_color_312 = PipsUpColor;
   }
   if (l_iclose_1152 < l_iopen_1144) {
      ls_unused_1120 = "-";
      l_color_312 = PipsDownColor;
   }
   if (l_dbl2str_1104 >= ls_1136) {
      ls_unused_1128 = "-";
      l_color_316 = DailyAvgUpColor;
   }
   if (l_dbl2str_1104 < ls_1136) {
      ls_unused_1128 = "-";
      l_color_316 = DailyAvgDownColor;
   }
   if (ShowSmallerSize == FALSE && ShowPriceOnly == FALSE) {
      if (ShowDailyData == TRUE || ShowDailyDataOnly == TRUE) {
         if (ShowPrice == TRUE) {
            Signal("Spread", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 100 - li_4 + li_0);
            ObjectSetText("Spread", "Spread ", 12, "Arial", DailyDataLabelColor);
            Signal("SpreadAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 100 - li_4 + li_0);
            ObjectSetText("SpreadAmount", "" + l_dbl2str_1216 + "", 12, "Arial Bold", SpreadColor);
            Signal("PipsToOpen", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 118 - li_4 + li_0);
            ObjectSetText("PipsToOpen", "Pips to Open ", 12, "Arial", DailyDataLabelColor);
            Signal("PipsNearTheDayOpen", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 118 - li_4 + li_0);
            ObjectSetText("PipsNearTheDayOpen", "" + l_dbl2str_1096 + "", 12, "Arial Bold", l_color_312);
            Signal("HighToLow", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 136 - li_4 + li_0);
            ObjectSetText("HighToLow", "High to Low ", 12, "Arial", DailyDataLabelColor);
            Signal("PipsFromTheDaysHighToLow", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 136 - li_4 + li_0);
            ObjectSetText("PipsFromTheDaysHighToLow", "" + l_dbl2str_1112 + "", 12, "Arial Bold", HiToLowColor);
            Signal("DailyAvg", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 154 - li_4 + li_0);
            ObjectSetText("DailyAvg", "Daily Avg ", 12, "Arial", DailyDataLabelColor);
            Signal("DailyAveragePipAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 154 - li_4 + li_0);
            ObjectSetText("DailyAveragePipAmount", "" + l_dbl2str_1104 + "", 12, "Arial Bold", l_color_316);
            if (ShowBarClock == TRUE) {
               Signal("BarClock", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 172 - li_4 + li_0);
               ObjectSetText("BarClock", "Bar Closes In ", 12, "Arial", DailyDataLabelColor);
               Signal("BarClosesInMinutes:Seconds", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 172 - li_4 + li_0);
               ObjectSetText("BarClosesInMinutes:Seconds", "" + ls_1184 + "", 12, "Arial Bold", BarClockColor);
            }
         }
      }
   }
   if (ShowSmallerSize == FALSE && ShowPriceOnly == FALSE) {
      if (ShowDailyData == TRUE || ShowDailyDataOnly == TRUE) {
         if (ShowPrice == FALSE) {
            Signal("Spread", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 58 - li_4 + li_0);
            ObjectSetText("Spread", "Spread ", 12, "Arial", DailyDataLabelColor);
            Signal("SpreadAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 58 - li_4 + li_0);
            ObjectSetText("SpreadAmount", "" + l_dbl2str_1216 + "", 12, "Arial Bold", SpreadColor);
            Signal("PipsToOpen", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 76 - li_4 + li_0);
            ObjectSetText("PipsToOpen", "Pips to Open ", 12, "Arial", DailyDataLabelColor);
            Signal("PipsNearTheDayOpen", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 76 - li_4 + li_0);
            ObjectSetText("PipsNearTheDayOpen", "" + l_dbl2str_1096 + "", 12, "Arial Bold", l_color_312);
            Signal("HighToLow", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 94 - li_4 + li_0);
            ObjectSetText("HighToLow", "High to Low ", 12, "Arial", DailyDataLabelColor);
            Signal("PipsFromTheDaysHighToLow", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 94 - li_4 + li_0);
            ObjectSetText("PipsFromTheDaysHighToLow", "" + l_dbl2str_1112 + "", 12, "Arial Bold", HiToLowColor);
            Signal("DailyAvg", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 112 - li_4 + li_0);
            ObjectSetText("DailyAvg", "Daily Avg ", 12, "Arial", DailyDataLabelColor);
            Signal("DailyAveragePipAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 112 - li_4 + li_0);
            ObjectSetText("DailyAveragePipAmount", "" + l_dbl2str_1104 + "", 12, "Arial Bold", l_color_316);
            if (ShowBarClock == TRUE) {
               Signal("BarClock", AdjustSideToSide - 5 + 80, ShiftUpOrDown + 130 - li_4 + li_0);
               ObjectSetText("BarClock", "Bar Closes In ", 12, "Arial", DailyDataLabelColor);
               Signal("BarClosesInMinutes:Seconds", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 130 - li_4 + li_0);
               ObjectSetText("BarClosesInMinutes:Seconds", "" + ls_1184 + "", 12, "Arial Bold", BarClockColor);
            }
         }
      }
   }
   if (ShowSmallerSize == TRUE && ShowPriceOnly == FALSE) {
      if (ShowDailyData == TRUE || ShowDailyDataOnly == TRUE) {
         if (ShowPrice == TRUE) {
            Signal("Spread", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 87 - li_4 + li_0);
            ObjectSetText("Spread", "Spread ", 10, "Arial", DailyDataLabelColor);
            Signal("SpreadAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 87 - li_4 + li_0);
            ObjectSetText("SpreadAmount", "" + l_dbl2str_1216 + "", 9, "Arial Bold", SpreadColor);
            Signal("PipsToOpen", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 103 - li_4 + li_0);
            ObjectSetText("PipsToOpen", "Pips to Open ", 10, "Arial", DailyDataLabelColor);
            Signal("PipsNearTheDayOpen", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 103 - li_4 + li_0);
            ObjectSetText("PipsNearTheDayOpen", "" + l_dbl2str_1096 + "", 9, "Arial Bold", l_color_312);
            Signal("HighToLow", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 119 - li_4 + li_0);
            ObjectSetText("HighToLow", "High to Low ", 10, "Arial", DailyDataLabelColor);
            Signal("PipsFromTheDaysHighToLow", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 119 - li_4 + li_0);
            ObjectSetText("PipsFromTheDaysHighToLow", "" + l_dbl2str_1112 + "", 9, "Arial Bold", HiToLowColor);
            Signal("DailyAvg", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 135 - li_4 + li_0);
            ObjectSetText("DailyAvg", "Daily Avg ", 10, "Arial", DailyDataLabelColor);
            Signal("DailyAveragePipAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 135 - li_4 + li_0);
            ObjectSetText("DailyAveragePipAmount", "" + l_dbl2str_1104 + "", 9, "Arial Bold", l_color_316);
            if (ShowBarClock == TRUE) {
               Signal("BarClock", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 151 - li_4 + li_0);
               ObjectSetText("BarClock", "Bar Closes In ", 10, "Arial", DailyDataLabelColor);
               Signal("BarClosesInMinutes:Seconds", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 151 - li_4 + li_0);
               ObjectSetText("BarClosesInMinutes:Seconds", "" + ls_1184 + "", 9, "Arial Bold", BarClockColor);
            }
         }
      }
   }
   if (ShowSmallerSize == TRUE && ShowPriceOnly == FALSE) {
      if (ShowDailyData == TRUE || ShowDailyDataOnly == TRUE) {
         if (ShowPrice == FALSE) {
            Signal("Spread", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 58 - li_4 + li_0);
            ObjectSetText("Spread", "Spread ", 10, "Arial", DailyDataLabelColor);
            Signal("SpreadAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 58 - li_4 + li_0);
            ObjectSetText("SpreadAmount", "" + l_dbl2str_1216 + "", 9, "Arial Bold", SpreadColor);
            Signal("PipsToOpen", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 74 - li_4 + li_0);
            ObjectSetText("PipsToOpen", "Pips to Open ", 10, "Arial", DailyDataLabelColor);
            Signal("PipsNearTheDayOpen", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 74 - li_4 + li_0);
            ObjectSetText("PipsNearTheDayOpen", "" + l_dbl2str_1096 + "", 9, "Arial Bold", l_color_312);
            Signal("HighToLow", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 90 - li_4 + li_0);
            ObjectSetText("HighToLow", "High to Low ", 10, "Arial", DailyDataLabelColor);
            Signal("PipsFromTheDaysHighToLow", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 90 - li_4 + li_0);
            ObjectSetText("PipsFromTheDaysHighToLow", "" + l_dbl2str_1112 + "", 9, "Arial Bold", HiToLowColor);
            Signal("DailyAvg", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 106 - li_4 + li_0);
            ObjectSetText("DailyAvg", "Daily Avg ", 10, "Arial", DailyDataLabelColor);
            Signal("DailyAveragePipAmount", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 106 - li_4 + li_0);
            ObjectSetText("DailyAveragePipAmount", "" + l_dbl2str_1104 + "", 9, "Arial Bold", l_color_316);
            if (ShowBarClock == TRUE) {
               Signal("BarClock", AdjustSideToSide - 5 + 65, ShiftUpOrDown + 122 - li_4 + li_0);
               ObjectSetText("BarClock", "Bar Closes In ", 10, "Arial", DailyDataLabelColor);
               Signal("BarClosesInMinutes:Seconds", AdjustSideToSide - 5 + 10, ShiftUpOrDown + 122 - li_4 + li_0);
               ObjectSetText("BarClosesInMinutes:Seconds", "" + ls_1184 + "", 9, "Arial Bold", BarClockColor);
            }
         }
      }
   }
   RefreshRates();
   return (0);
}

Recommend