/* */ #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Blue #property indicator_color2 Red double G_ibuf_76[]; double G_ibuf_80[]; double G_icustom_84; double G_icustom_92; double G_icustom_100; double G_icustom_108; double G_icustom_116; double G_icustom_124; double G_icustom_132; double G_icustom_140; double G_icustom_148; bool Gi_156 = FALSE; bool Gi_160 = FALSE; bool alert1; bool alert2; // E37F0136AA3FFAF149B351F6A4C948E9 int init() { SetIndexStyle(0, DRAW_ARROW, 5); SetIndexArrow(0, 233); SetIndexBuffer(0, G_ibuf_76); SetIndexEmptyValue(3, 0.0); SetIndexStyle(1, DRAW_ARROW); SetIndexArrow(1, 234); SetIndexBuffer(1, G_ibuf_80); SetIndexEmptyValue(4, 0.0); return (0); } // 52D46093050F38C27267BCE42543EF60 int deinit() { return (0); } // EA2B2676C28C0DB26D39331A336C6B92 int start() { int Li_0; int ind_counted_4 = IndicatorCounted(); for (int Li_8 = ind_counted_4 - 1; Li_8 >= 0; Li_8--) { Li_0 = Li_8; G_icustom_84 = iCustom(NULL, 0, "indicator_1", 0, Li_0); G_icustom_92 = iCustom(NULL, 0, "indicator_1", 1, Li_0); G_icustom_100 = iCustom(NULL, 0, "indicator_1", 2, Li_0); G_icustom_108 = iCustom(NULL, 0, "indicator_1", 3, Li_0); G_icustom_116 = iCustom(NULL, 0, "indicator_1", 4, Li_0); G_icustom_140 = iCustom(NULL, 0, "indicator_2", 1, Li_0); G_icustom_148 = iCustom(NULL, 0, "indicator_2", 2, Li_0); G_icustom_124 = iCustom(NULL, 0, "indicator_3", 0, Li_0); G_icustom_132 = iCustom(NULL, 0, "indicator_3", 1, Li_0); if (G_icustom_92 > 0.0 && G_icustom_108 > 0.0) Gi_160 = FALSE; if (G_icustom_100 > 0.0 && G_icustom_116 > 0.0) Gi_156 = FALSE; if (Low[Li_8] > G_icustom_84 && G_icustom_92 > 0.0 && G_icustom_100 == EMPTY_VALUE && G_icustom_108 > 0.0 && G_icustom_116 == 0.0 && G_icustom_124 == 1.0 && G_icustom_140 == 1.0 && Gi_156 == FALSE) { G_ibuf_76[Li_8] = Low[Li_8] - 100.0 * Point; Gi_156 = TRUE; Gi_160 = FALSE; if(alert2==1){Alert("Alert Low>");alert2=0;alert1=1;} } if (G_icustom_84 > High[Li_8] && G_icustom_100 > 0.0 && G_icustom_92 == EMPTY_VALUE && G_icustom_116 > 0.0 && G_icustom_108 == 0.0 && G_icustom_132 == 1.0 && G_icustom_148 == 1.0 && Gi_160 == FALSE) { G_ibuf_80[Li_8] = High[Li_8] + 100.0 * Point; Gi_160 = TRUE; Gi_156 = FALSE; if(alert1==1){Alert("Alert High<");alert2=1;alert1=0;} } } return (0); }