Navigation:Home > Content >

CURRENCY_2_EURUSD_METER~.mq4

Time: 2013-05-01 | Download file:CURRENCY_2_EURUSD_METER~.mq4

/*
   Generated by EX4-TO-MQ4 decompiler V4.0.224.1 []
   Website: http://purebeam.biz
   E-mail : [email protected]
*/
#property copyright "Copyright © 2010, B.Sheleen"
#property link      " "

#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 Black

#include 

int gi_unused_76 = 4196;
extern string CreatedBy = "B.Sheleen";
extern color Background = C'0x1E,0x1E,0x1E';
extern int window = 0;
extern int Shift_Y = 545;
extern int Shift_X = 130;
extern color WarnaValue = Aqua;
extern color WarnaPair = Gold;
extern color WarnaKotak_xMeter = Gray;
extern bool TampilkanKotak = FALSE;
extern color WarnaH1c = Red;
extern color WarnaH2c = Crimson;
extern color WarnaH3c = OrangeRed;
extern color WarnaH1 = C'0x98,0xAE,0xEF';
extern color WarnaH2 = C'0x8B,0xA4,0xED';
extern color WarnaH3 = C'0x7E,0x9A,0xEB';
extern color WarnaH4 = C'0x66,0x87,0xE8';
extern color WarnaH5 = C'0x52,0x77,0xE4';
extern color WarnaH6 = C'0x42,0x6A,0xE1';
extern color WarnaH7 = C'0x2E,0x5A,0xDE';
extern color WarnaH8 = C'0x20,0x4B,0xCC';
extern color WarnaH9 = C'0x1B,0x3E,0xA7';
extern color WarnaH10 = RoyalBlue;
extern color WarnaH10b = Orange;
extern color WarnaH9b = C'0x96,0x46,0x00';
extern color WarnaH8b = C'0xBE,0x5A,0x00';
extern color WarnaH7b = C'0xDC,0x6E,0x00';
extern color WarnaH6b = C'0xF0,0x78,0x00';
extern color WarnaH5b = C'0xFF,0x82,0x09';
extern color WarnaH4b = C'0xFF,0x96,0x0B';
extern color WarnaH3b = C'0xFF,0xAA,0x0D';
extern color WarnaH2b = C'0xFF,0xB4,0x1E';
extern color WarnaH1b = C'0xFF,0xBE,0x3C';
extern color WarnaH10a = C'0xFF,0xA0,0xFF';
extern color WarnaH9a = C'0xFF,0x82,0xFF';
extern color WarnaH8a = C'0xFF,0x64,0xFF';
extern color WarnaH7a = C'0xFF,0x50,0xFF';
extern color WarnaH6a = C'0xFA,0x00,0xFA';
extern color WarnaH5a = C'0xDC,0x00,0xDC';
extern color WarnaH4a = C'0xBE,0x00,0xBE';
extern color WarnaH3a = C'0xA0,0x00,0xA0';
extern color WarnaH2a = C'0x82,0x00,0x82';
extern color WarnaH1a = Fuchsia;
int gi_unused_252 = 3937500;
int gi_unused_256 = 255;
int gi_unused_260 = 4678655;
int gi_unused_264 = 5275647;
int gi_unused_268 = 6333684;
int gi_unused_272 = 3329330;
int gi_unused_276 = 5737262;
int gi_unused_280 = 2263842;
int gi_unused_284 = 32768;
int gi_unused_288 = 25600;
int gi_unused_292 = 6908265;
int gi_unused_296 = 9470064;
int gi_unused_300 = 11119017;
int gi_unused_304 = 8421504;
int gi_unused_308 = 32768;
int gi_unused_312 = 32768;
int gi_unused_316 = 5737262;
int gi_unused_320 = 2263842;
int gi_unused_324 = 32768;
int gi_unused_328 = 25600;
bool gi_332 = FALSE;
bool gi_336 = FALSE;
string gsa_340[] = {"GBPJPY"};
string gsa_344[] = {"EURUSD", "GBPUSD", "AUDUSD", "USDJPY", "USDCHF", "USDCAD", "EURJPY", "EURGBP", "EURCHF", "EURAUD", "GBPJPY", "GBPCHF"};
string gsa_348[] = {"EUR", "USD"};
int gia_352[] = {30, 10};
string gsa_356[2] = {"BUY ", "SELL "};
int gia_360[10] = {0, 3, 10, 25, 40, 50, 60, 75, 90, 97};
int gi_364;
int gi_368;
double gda_372[];
double gda_376[];
double gda_380[];
double gda_384[];
double gda_388[];
double gda_392[];
double gda_396[];
double gda_400[];
double gda_404[];
int gia_408[2][];

int init() {
   gi_364 = ArrayRange(gsa_344, 0);
   gi_368 = ArrayRange(gsa_348, 0);
   int li_0 = ArrayRange(gia_352, 0);
   if (gi_368 != li_0) Print("The size of array aMajor is not equals to aMajorPos");
   ArrayResize(gda_372, gi_368);
   ArrayResize(gda_376, gi_364);
   ArrayResize(gda_380, gi_364);
   ArrayResize(gda_384, gi_364);
   ArrayResize(gda_388, gi_364);
   ArrayResize(gda_392, gi_364);
   ArrayResize(gda_396, gi_364);
   ArrayResize(gda_400, gi_364);
   ArrayResize(gda_404, gi_364);
   init_tradepair_index();
   initGraph();
   if (gi_336) {
      while (true) {
         if (IsConnected()) main();
         if (!IsConnected()) objectBlank();
         ObjectsRedraw();
         Sleep(1000);
      }
   }
   return (0);
}

int deinit() {
   ObjectsDeleteAll(0, OBJ_LABEL);
   Print("shutdown error - ", ErrorDescription(GetLastError()));
   return (0);
}

int start() {
   if (!gi_336) main();
   return (0);
}

void main() {
   double ld_0;
   int l_count_8;
   string l_symbol_12;
   double ld_20;
   for (int l_index_28 = 0; l_index_28 < gi_364; l_index_28++) {
      RefreshRates();
      if (gi_332) l_symbol_12 = gsa_344[l_index_28] + 109;
      else l_symbol_12 = gsa_344[l_index_28];
      ld_0 = GetPoint(l_symbol_12);
      gda_376[l_index_28] = MarketInfo(l_symbol_12, MODE_HIGH);
      gda_380[l_index_28] = MarketInfo(l_symbol_12, MODE_LOW);
      gda_384[l_index_28] = MarketInfo(l_symbol_12, MODE_BID);
      gda_388[l_index_28] = MarketInfo(l_symbol_12, MODE_ASK);
      gda_396[l_index_28] = MathMax((gda_376[l_index_28] - gda_380[l_index_28]) / ld_0, 1);
      gda_392[l_index_28] = (gda_384[l_index_28] - gda_380[l_index_28]) / gda_396[l_index_28] / ld_0;
      gda_400[l_index_28] = iLookup(100.0 * gda_392[l_index_28]);
      gda_404[l_index_28] = 9 - gda_400[l_index_28];
   }
   for (int l_index_32 = 0; l_index_32 < gi_368; l_index_32++) {
      l_count_8 = 0;
      ld_20 = 0;
      for (l_index_28 = 0; l_index_28 < gi_364; l_index_28++) {
         if (StringSubstr(gsa_344[l_index_28], 0, 3) == gsa_348[l_index_32]) {
            l_count_8++;
            ld_20 += gda_400[l_index_28];
         }
         if (StringSubstr(gsa_344[l_index_28], 3, 3) == gsa_348[l_index_32]) {
            l_count_8++;
            ld_20 += gda_404[l_index_28];
         }
         if (l_count_8 > 0) gda_372[l_index_32] = NormalizeDouble(ld_20 / l_count_8, 1);
         else gda_372[l_index_32] = -1;
      }
   }
   objectBlank();
   for (l_index_32 = 0; l_index_32 < gi_368; l_index_32++) paintCurr(l_index_32, gda_372[l_index_32]);
   paintLine();
}

void init_tradepair_index() {
   string ls_0;
   string ls_8;
   string ls_16;
   int l_arr_size_24 = ArraySize(gsa_340);
   for (int l_count_28 = 0; l_count_28 < l_arr_size_24; l_count_28++) {
      ls_0 = gsa_340[0];
      ls_8 = StringSubstr(ls_0, 0, 3);
      ls_16 = StringSubstr(ls_0, 3, 3);
      gia_408[0][l_count_28] = -1;
      gia_408[1][l_count_28] = -1;
      for (int l_index_32 = 0; l_index_32 < gi_368; l_index_32++) {
         if (ls_8 == gsa_348[l_index_32]) gia_408[0][l_count_28] = l_index_32;
         if (ls_16 == gsa_348[l_index_32]) gia_408[1][l_count_28] = l_index_32;
      }
      if (gia_408[0][l_count_28] == -1 || gia_408[1][l_count_28] == -1) Print("Currency Pair : ", ls_0, " is not tradeable, check array definition!");
   }
}

double GetPoint(string as_unused_0) {
   string ls_8;
   double ld_ret_16 = 0.0001;
   double ld_ret_24 = 0.01;
   if (StringSubstr(ls_8, 3, 3) == "JPY") return (ld_ret_24);
   return (ld_ret_16);
}

int iLookup(double ad_0) {
   int li_ret_8 = -1;
   if (ad_0 <= gia_360[0]) li_ret_8 = 0;
   else {
      for (int li_12 = 1; li_12 < 10; li_12++) {
         if (ad_0 < gia_360[li_12]) {
            li_ret_8 = li_12 - 1;
            break;
         }
      }
      if (li_ret_8 == -1) li_ret_8 = 9;
   }
   return (li_ret_8);
}

void initGraph() {
   for (int l_index_0 = 0; l_index_0 < gi_368; l_index_0++) {
      objectCreate(gsa_348[l_index_0] + "_1", Shift_X + gia_352[l_index_0], Shift_Y + 56);
      objectCreate(gsa_348[l_index_0] + "_2", Shift_X + gia_352[l_index_0], Shift_Y + 51);
      objectCreate(gsa_348[l_index_0] + "_3", Shift_X + gia_352[l_index_0], Shift_Y + 46);
      objectCreate(gsa_348[l_index_0] + "_4", Shift_X + gia_352[l_index_0], Shift_Y + 41);
      objectCreate(gsa_348[l_index_0] + "_5", Shift_X + gia_352[l_index_0], Shift_Y + 36);
      objectCreate(gsa_348[l_index_0] + "_6", Shift_X + gia_352[l_index_0], Shift_Y + 31);
      objectCreate(gsa_348[l_index_0] + "_7", Shift_X + gia_352[l_index_0], Shift_Y + 26);
      objectCreate(gsa_348[l_index_0] + "_8", Shift_X + gia_352[l_index_0], Shift_Y + 21);
      objectCreate(gsa_348[l_index_0] + "_9", Shift_X + gia_352[l_index_0], Shift_Y + 16);
      objectCreate(gsa_348[l_index_0] + "_10", Shift_X + gia_352[l_index_0], Shift_Y + 11);
      objectCreate(gsa_348[l_index_0], Shift_X + gia_352[l_index_0] + 2, Shift_Y + 12, gsa_348[l_index_0], 7, "Arial Narrow", WarnaPair);
      objectCreate(gsa_348[l_index_0] + "p", Shift_X + gia_352[l_index_0] + 4, Shift_Y + 21, DoubleToStr(9, 1), 8, "Arial Narrow", WarnaValue);
   }
   if (TampilkanKotak == TRUE) {
      objectCreate("line60", Shift_X + 12, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line62", Shift_X + 17, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line63", Shift_X + 24, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line64", Shift_X + 31, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line65", Shift_X + 38, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line66", Shift_X + 45, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line67", Shift_X + 52, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line68", Shift_X + 59, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line69", Shift_X + 65, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line691", Shift_X + 72, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line692", Shift_X + 79, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line693", Shift_X + 86, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line694", Shift_X + 93, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line695", Shift_X + 100, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line696", Shift_X + 101, Shift_Y + 88, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line40", Shift_X + 12, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line42", Shift_X + 17, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line43", Shift_X + 24, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line44", Shift_X + 31, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line45", Shift_X + 38, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line46", Shift_X + 45, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line47", Shift_X + 52, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line48", Shift_X + 59, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line49", Shift_X + 65, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line491", Shift_X + 72, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line492", Shift_X + 79, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line493", Shift_X + 86, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line494", Shift_X + 93, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line495", Shift_X + 100, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line496", Shift_X + 101, Shift_Y + 33, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line50", Shift_X + 11, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line52", Shift_X + 17, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line53", Shift_X + 24, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line54", Shift_X + 31, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line55", Shift_X + 38, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line56", Shift_X + 45, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line57", Shift_X + 52, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line58", Shift_X + 59, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line59", Shift_X + 65, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line591", Shift_X + 72, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line592", Shift_X + 79, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line593", Shift_X + 86, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line594", Shift_X + 93, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line595", Shift_X + 100, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line596", Shift_X + 101, Shift_Y + 12, "_", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line10", Shift_X + 10, Shift_Y + 20, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line11", Shift_X + 10, Shift_Y + 35, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line12", Shift_X + 10, Shift_Y + 50, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line13", Shift_X + 10, Shift_Y + 65, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line14", Shift_X + 10, Shift_Y + 74, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line15", Shift_X + 10, Shift_Y + 12, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line30", Shift_X + 108, Shift_Y + 20, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line31", Shift_X + 108, Shift_Y + 35, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line32", Shift_X + 108, Shift_Y + 50, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line33", Shift_X + 108, Shift_Y + 65, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line34", Shift_X + 108, Shift_Y + 74, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line35", Shift_X + 108, Shift_Y + 12, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line201", Shift_X + 89, Shift_Y + 33, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line211", Shift_X + 89, Shift_Y + 35, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line221", Shift_X + 89, Shift_Y + 50, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line231", Shift_X + 89, Shift_Y + 65, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line241", Shift_X + 89, Shift_Y + 74, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line202", Shift_X + 69, Shift_Y + 33, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line212", Shift_X + 69, Shift_Y + 35, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line222", Shift_X + 69, Shift_Y + 50, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line232", Shift_X + 69, Shift_Y + 65, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line242", Shift_X + 69, Shift_Y + 74, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line203", Shift_X + 49, Shift_Y + 33, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line213", Shift_X + 49, Shift_Y + 35, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line223", Shift_X + 49, Shift_Y + 50, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line233", Shift_X + 49, Shift_Y + 65, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line243", Shift_X + 49, Shift_Y + 74, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line204", Shift_X + 29, Shift_Y + 33, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line214", Shift_X + 29, Shift_Y + 35, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line224", Shift_X + 29, Shift_Y + 50, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line234", Shift_X + 29, Shift_Y + 65, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line244", Shift_X + 29, Shift_Y + 74, "|", 12, "Arial", WarnaKotak_xMeter);
      objectCreate("line90", Shift_X + 29, Shift_Y + 55, "_", 6, "Arial", WarnaKotak_xMeter);
      objectCreate("line91", Shift_X + 49, Shift_Y + 55, "_", 6, "Arial", WarnaKotak_xMeter);
      objectCreate("line92", Shift_X + 69, Shift_Y + 55, "_", 6, "Arial", WarnaKotak_xMeter);
      objectCreate("line93", Shift_X + 89, Shift_Y + 55, "_", 6, "Arial", WarnaKotak_xMeter);
   }
   if (TampilkanKotak == TRUE) objectCreate("sign111", Shift_X + 11, Shift_Y + 88, "______", 8, "Arial Narrow", DimGray);
   if (TampilkanKotak == FALSE) objectCreate("sign111", Shift_X + 11, Shift_Y + 86, "______", 8, "Arial Narrow", DimGray);
   ObjectsRedraw();
}

void objectCreate(string a_name_0, int a_x_8, int a_y_12, string a_text_16 = "-", int a_fontsize_24 = 42, string a_fontname_28 = "Arial", color a_color_36 = -1) {
   ObjectCreate(a_name_0, OBJ_LABEL, window, 0, 0);
   ObjectSet(a_name_0, OBJPROP_CORNER, 3);
   ObjectSet(a_name_0, OBJPROP_COLOR, a_color_36);
   ObjectSet(a_name_0, OBJPROP_XDISTANCE, a_x_8);
   ObjectSet(a_name_0, OBJPROP_YDISTANCE, a_y_12);
   ObjectSetText(a_name_0, a_text_16, a_fontsize_24, a_fontname_28, a_color_36);
}

void objectBlank() {
   for (int l_index_0 = 0; l_index_0 < gi_368; l_index_0++) {
      ObjectSet(gsa_348[l_index_0] + "_1", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_2", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_3", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_4", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_5", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_6", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_7", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_8", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_9", OBJPROP_COLOR, Background);
      ObjectSet(gsa_348[l_index_0] + "_10", OBJPROP_COLOR, Background);
   }
   ObjectSet("line1", OBJPROP_COLOR, CLR_NONE);
   ObjectSet("line2", OBJPROP_COLOR, CLR_NONE);
   ObjectSet("line3", OBJPROP_COLOR, CLR_NONE);
   ObjectSet("line4", OBJPROP_COLOR, CLR_NONE);
}

void paintCurr(int ai_0, double ad_4) {
   if (ad_4 <= 2.5 && ad_4 < 0.0) ObjectSet(gsa_348[ai_0] + "_10", OBJPROP_COLOR, WarnaH1c);
   if (ad_4 <= 2.5 && ad_4 > 0.0) ObjectSet(gsa_348[ai_0] + "_10", OBJPROP_COLOR, WarnaH1c);
   if (ad_4 >= 5.0 && ad_4 > 0.0) ObjectSet(gsa_348[ai_0] + "_10", OBJPROP_COLOR, WarnaH1);
   if (ad_4 < 5.0 && ad_4 > 2.5) ObjectSet(gsa_348[ai_0] + "_10", OBJPROP_COLOR, WarnaH1a);
   if (ad_4 >= 7.0 && ad_4 > 0.0) ObjectSet(gsa_348[ai_0] + "_10", OBJPROP_COLOR, WarnaH1b);
   if (ad_4 <= 2.5 && ad_4 > 1.0) ObjectSet(gsa_348[ai_0] + "_9", OBJPROP_COLOR, WarnaH2c);
   if (ad_4 >= 5.0 && ad_4 > 1.0) ObjectSet(gsa_348[ai_0] + "_9", OBJPROP_COLOR, WarnaH2);
   if (ad_4 < 5.0 && ad_4 > 2.5) ObjectSet(gsa_348[ai_0] + "_9", OBJPROP_COLOR, WarnaH2a);
   if (ad_4 >= 7.0 && ad_4 > 1.0) ObjectSet(gsa_348[ai_0] + "_9", OBJPROP_COLOR, WarnaH2b);
   if (ad_4 <= 2.5 && ad_4 > 2.0) ObjectSet(gsa_348[ai_0] + "_8", OBJPROP_COLOR, WarnaH3c);
   if (ad_4 >= 5.0 && ad_4 > 2.0) ObjectSet(gsa_348[ai_0] + "_8", OBJPROP_COLOR, WarnaH3);
   if (ad_4 < 5.0 && ad_4 > 2.5) ObjectSet(gsa_348[ai_0] + "_8", OBJPROP_COLOR, WarnaH3a);
   if (ad_4 >= 7.0 && ad_4 > 2.0) ObjectSet(gsa_348[ai_0] + "_8", OBJPROP_COLOR, WarnaH3b);
   if (ad_4 >= 5.0 && ad_4 > 3.0) ObjectSet(gsa_348[ai_0] + "_7", OBJPROP_COLOR, WarnaH4);
   if (ad_4 < 5.0 && ad_4 > 3.0) ObjectSet(gsa_348[ai_0] + "_7", OBJPROP_COLOR, WarnaH4a);
   if (ad_4 >= 7.0 && ad_4 > 3.0) ObjectSet(gsa_348[ai_0] + "_7", OBJPROP_COLOR, WarnaH4b);
   if (ad_4 >= 5.0 && ad_4 > 4.0) ObjectSet(gsa_348[ai_0] + "_6", OBJPROP_COLOR, WarnaH5);
   if (ad_4 < 5.0 && ad_4 > 4.0) ObjectSet(gsa_348[ai_0] + "_6", OBJPROP_COLOR, WarnaH5a);
   if (ad_4 >= 7.0 && ad_4 > 4.0) ObjectSet(gsa_348[ai_0] + "_6", OBJPROP_COLOR, WarnaH5b);
   if (ad_4 >= 5.0 && ad_4 > 5.0) ObjectSet(gsa_348[ai_0] + "_5", OBJPROP_COLOR, WarnaH6);
   if (ad_4 < 5.0 && ad_4 > 5.0) ObjectSet(gsa_348[ai_0] + "_5", OBJPROP_COLOR, WarnaH6a);
   if (ad_4 >= 7.0 && ad_4 > 5.0) ObjectSet(gsa_348[ai_0] + "_5", OBJPROP_COLOR, WarnaH6b);
   if (ad_4 >= 5.0 && ad_4 > 6.0) ObjectSet(gsa_348[ai_0] + "_4", OBJPROP_COLOR, WarnaH7);
   if (ad_4 < 5.0 && ad_4 > 6.0) ObjectSet(gsa_348[ai_0] + "_4", OBJPROP_COLOR, WarnaH7a);
   if (ad_4 >= 7.0 && ad_4 > 6.0) ObjectSet(gsa_348[ai_0] + "_4", OBJPROP_COLOR, WarnaH7b);
   if (ad_4 >= 5.0 && ad_4 > 7.0) ObjectSet(gsa_348[ai_0] + "_3", OBJPROP_COLOR, WarnaH8);
   if (ad_4 < 5.0 && ad_4 > 7.0) ObjectSet(gsa_348[ai_0] + "_3", OBJPROP_COLOR, WarnaH8a);
   if (ad_4 >= 7.0 && ad_4 > 7.0) ObjectSet(gsa_348[ai_0] + "_3", OBJPROP_COLOR, WarnaH8b);
   if (ad_4 >= 5.0 && ad_4 > 8.0) ObjectSet(gsa_348[ai_0] + "_2", OBJPROP_COLOR, WarnaH9);
   if (ad_4 < 5.0 && ad_4 > 8.0) ObjectSet(gsa_348[ai_0] + "_2", OBJPROP_COLOR, WarnaH9a);
   if (ad_4 >= 7.0 && ad_4 > 8.0) ObjectSet(gsa_348[ai_0] + "_2", OBJPROP_COLOR, WarnaH9b);
   if (ad_4 >= 5.0 && ad_4 > 9.0) ObjectSet(gsa_348[ai_0] + "_1", OBJPROP_COLOR, WarnaH10);
   if (ad_4 < 5.0 && ad_4 > 9.0) ObjectSet(gsa_348[ai_0] + "_1", OBJPROP_COLOR, WarnaH10a);
   if (ad_4 >= 7.0 && ad_4 > 9.0) ObjectSet(gsa_348[ai_0] + "_1", OBJPROP_COLOR, WarnaH10b);
   ObjectSet(gsa_348[ai_0], OBJPROP_COLOR, WarnaPair);
   ObjectSetText(gsa_348[ai_0] + "p", DoubleToStr(ad_4, 1), 8, "Arial Narrow", WarnaValue);
}

void paintLine() {
   ObjectSet("line1", OBJPROP_COLOR, CLR_NONE);
   ObjectSet("line2", OBJPROP_COLOR, Aqua);
   ObjectSet("line3", OBJPROP_COLOR, CLR_NONE);
   ObjectSet("line4", OBJPROP_COLOR, CLR_NONE);
}

Recommend