#property copyright "InsightNext" #property link "http://www.metaquotes.net" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Blue double g_ibuf_76[]; double g_ibuf_80[]; double g_ifractals_84; double g_ifractals_92; int init() { IndicatorBuffers(2); SetIndexStyle(0, DRAW_NONE); SetIndexBuffer(0, g_ibuf_76); SetIndexLabel(0, NULL); SetIndexStyle(1, DRAW_NONE); SetIndexBuffer(1, g_ibuf_80); SetIndexLabel(1, NULL); return (0); } int deinit() { return (0); } int start() { for (int l_bars_0 = Bars; l_bars_0 >= 0; l_bars_0--) { g_ifractals_84 = iFractals(NULL, 0, MODE_UPPER, l_bars_0); if (g_ifractals_84 > 0.0) g_ibuf_76[l_bars_0] = High[l_bars_0]; else g_ibuf_76[l_bars_0] = g_ibuf_76[l_bars_0 + 1]; g_ifractals_92 = iFractals(NULL, 0, MODE_LOWER, l_bars_0); if (g_ifractals_92 > 0.0) g_ibuf_80[l_bars_0] = Low[l_bars_0]; else g_ibuf_80[l_bars_0] = g_ibuf_80[l_bars_0 + 1]; } return (0); }