/* Generated by EX4-TO-MQ4 decompiler ONE FILE V4.0.218.3 EX4 ID : 04E20A41724C2645BAEB3FDF008C44EC Website: http://purebeam.biz E-mail : purebeam@gmail.com */ #property copyright "Copyright 2008 Wajdyss" #property link "wajdyss@yahoo.com" #property indicator_chart_window #property indicator_buffers 8 #property indicator_color1 LawnGreen #property indicator_color2 LawnGreen #property indicator_color3 Red #property indicator_color4 Red #property indicator_color5 White #property indicator_color6 White #property indicator_color7 Yellow #property indicator_color8 Yellow extern int hour1 = 22; extern int hour11 = 6; extern int hour2 = 23; extern int hour22 = 7; extern int hour3 = 7; extern int hour33 = 15; extern int hour4 = 12; extern int hour44 = 20; extern int TextSize = 14; extern color TextColor1 = White; extern color TextColor2 = Yellow; extern color TextColor3 = Aqua; extern color TextColor4 = Red; extern color TextColor5 = Chartreuse; double g_ibuf_132[]; double g_ibuf_136[]; double g_ibuf_140[]; double g_ibuf_144[]; double g_ibuf_148[]; double g_ibuf_152[]; double g_ibuf_156[]; double g_ibuf_160[]; int gi_164 = 2100; int gi_168 = 1; int gi_172 = 1; int init() { SetIndexStyle(0, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(0, g_ibuf_132); SetIndexStyle(1, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(1, g_ibuf_136); SetIndexStyle(2, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(2, g_ibuf_140); SetIndexStyle(3, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(3, g_ibuf_144); SetIndexStyle(4, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(4, g_ibuf_148); SetIndexStyle(5, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(5, g_ibuf_152); SetIndexStyle(6, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(6, g_ibuf_156); SetIndexStyle(7, DRAW_HISTOGRAM, STYLE_SOLID, 2); SetIndexBuffer(7, g_ibuf_160); SetIndexDrawBegin(0, 5); SetIndexBuffer(0, g_ibuf_132); SetIndexBuffer(1, g_ibuf_136); SetIndexBuffer(2, g_ibuf_140); SetIndexBuffer(3, g_ibuf_144); SetIndexBuffer(4, g_ibuf_148); SetIndexBuffer(5, g_ibuf_152); SetIndexBuffer(6, g_ibuf_156); SetIndexBuffer(7, g_ibuf_160); return (0); } int deinit() { Comment(""); ObjectDelete("a label"); ObjectDelete("b label"); ObjectDelete("c label"); ObjectDelete("d label"); ObjectDelete("e label"); return (0); } int start() { if (ObjectFind("a label") != 0) { ObjectCreate("a label", OBJ_LABEL, 0, 0, 0); ObjectSetText("a label", "بسم الله الرحمن الرحيم", TextSize, "Arial", TextColor1); ObjectSet("a label", OBJPROP_XDISTANCE, 350); ObjectSet("a label", OBJPROP_YDISTANCE, 0); } else ObjectMove("a label", 0, 0, 0); if (ObjectFind("b label") != 0) { ObjectCreate("b label", OBJ_LABEL, 0, 0, 0); ObjectSetText("b label", "wajdyss Moslim trader indicator", TextSize, "Arial", TextColor2); ObjectSet("b label", OBJPROP_XDISTANCE, 290); ObjectSet("b label", OBJPROP_YDISTANCE, 25); } else ObjectMove("b label", 0, 0, 0); if (ObjectFind("c label") != 0) { ObjectCreate("c label", OBJ_LABEL, 0, 0, 0); ObjectSetText("c label", "wajdyss@yahoo.com", TextSize, "Arial", TextColor3); ObjectSet("c label", OBJPROP_XDISTANCE, 335); ObjectSet("c label", OBJPROP_YDISTANCE, 50); } else ObjectMove("c label", 0, 0, 0); if (Year() > gi_164 || (Year() == gi_164 && Month() > gi_168) || (Year() == gi_164 && Month() == gi_168 && Day() > gi_172)) { if (ObjectFind("d label") != 0) { ObjectCreate("d label", OBJ_LABEL, 0, 0, 0); ObjectSetText("d label", "the indicator has expired , contact us by E-mail", TextSize, "Arial", TextColor4); ObjectSet("d label", OBJPROP_XDISTANCE, 250); ObjectSet("d label", OBJPROP_YDISTANCE, 75); } else ObjectMove("d label", 0, 0, 0); return (0); } if (ObjectFind("d label") != 0) { ObjectCreate("d label", OBJ_LABEL, 0, 0, 0); ObjectSetText("d label", "the indicator well expire after ( " + gi_172 + "-" + gi_168 + "-" + gi_164 + " )", TextSize, "Arial", TextColor4); ObjectSet("d label", OBJPROP_XDISTANCE, 265); ObjectSet("d label", OBJPROP_YDISTANCE, 75); } else ObjectMove("d label", 0, 0, 0); if (Year() > gi_164 || (Year() == gi_164 && Month() > gi_168) || (Year() == gi_164 && Month() == gi_168 && Day() > gi_172)) return (0); if (Period() != PERIOD_H1) return (0); for (int l_bars_0 = Bars; l_bars_0 >= 1; l_bars_0--) { if (TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour1 || TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour11) { g_ibuf_132[l_bars_0] = 999; g_ibuf_136[l_bars_0] = 0; } if (TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour2 || TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour22) { g_ibuf_140[l_bars_0] = 999; g_ibuf_144[l_bars_0] = 0; } if (TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour3 || TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour33) { g_ibuf_148[l_bars_0] = 999; g_ibuf_152[l_bars_0] = 0; } if (TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour4 || TimeHour(iTime(Symbol(), PERIOD_H1, l_bars_0)) == hour44) { g_ibuf_156[l_bars_0] = 999; g_ibuf_160[l_bars_0] = 0; } } Comment("Hour = ", TimeHour(iTime(Symbol(), PERIOD_H1, 0))); return (0); }