/* Generated by EX4-TO-MQ4 decompiler V4.0.224.1 [] Website: http://purebeam.biz E-mail : purebeam@gmail.com */ #property copyright "Copyright ?2008, LEOSONY82.com" #property link "forex@LEOSONY82.com" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 LawnGreen int gi_76 = 5; int g_timeframe_80 = PERIOD_H1; double g_ibuf_84[]; double g_ibuf_88[]; int gia_92[]; int g_count_96 = 0; int gi_100 = -1; int init() { SetIndexStyle(0, DRAW_ARROW); SetIndexArrow(0, 22); SetIndexBuffer(0, g_ibuf_84); SetIndexEmptyValue(0, 0.0); SetIndexStyle(1, DRAW_ARROW); SetIndexArrow(1, 22); SetIndexBuffer(1, g_ibuf_88); SetIndexEmptyValue(1, 0.0); if (Period() > g_timeframe_80) { Alert("indicator dapat berfungsi di time frame ini", g_timeframe_80); return (0); } ArrayCopySeries(gia_92, 5, Symbol(), g_timeframe_80); return (0); } int deinit() { return (0); } int start() { int l_count_0; double l_icustom_4; string ls_12 = "2020.12.28"; int l_str2time_20 = StrToTime(ls_12); if (TimeCurrent() >= l_str2time_20) { Alert("hubungi kamarul untuk aktifkan!"); return (0); } int li_24 = IndicatorCounted(); int li_28 = 300; if (li_24 < 0) return (-1); if (li_24 > 0) li_24--; li_28 = Bars - li_24; for (int l_index_32 = 0; l_index_32 < li_28; l_index_32++) { if (Time[l_index_32] >= gia_92[0]) l_count_0 = 0; else { l_count_0 = ArrayBsearch(gia_92, Time[l_index_32 - 1], WHOLE_ARRAY, 0, MODE_DESCEND); if (Period() <= g_timeframe_80) l_count_0++; } for (int li_36 = l_count_0; li_36 < l_count_0 + 100; li_36++) { l_icustom_4 = iCustom(NULL, g_timeframe_80, "ZigZag", gi_76, 5, 3, 0, li_36 + 1); if (l_icustom_4 != 0.0) break; } if (iClose(NULL, 0, l_index_32 + 1) <= l_icustom_4) g_ibuf_88[l_index_32] = l_icustom_4; else g_ibuf_88[l_index_32] = 0.0; if (iClose(NULL, 0, l_index_32 + 1) >= l_icustom_4) { if (gi_100 != FALSE) { g_count_96 = 0; gi_100 = FALSE; } if (g_count_96 == 0 || g_count_96 > 500) { Alert(Symbol(), " - CHECK YOU SIGNAL GOOD FOR BUY "); //PlaySound("stops.wav"); g_count_96 = 1; } else g_count_96++; g_ibuf_84[l_index_32] = l_icustom_4; } else { if (gi_100 != FALSE) { g_count_96 = 0; gi_100 = FALSE; } if (g_count_96 == 0 || g_count_96 > 500) { Alert(Symbol(), " - CHECK YOU SIGNAL GOOD FOR SELL "); //PlaySound("stops.wav"); g_count_96 = 1; } else g_count_96++; g_ibuf_84[l_index_32] = 0.0; } ObjectsRedraw(); } return (0); }