/* Generated by EX4-TO-MQ4 decompiler V4.0.224.1 [] Website: http://purebeam.biz E-mail : purebeam@gmail.com */ #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Yellow extern double tf = 1440.0; extern int period = 15; int gi_unused_88 = 0; extern int shift = 0; double g_ibuf_96[]; int init() { SetIndexBuffer(0, g_ibuf_96); SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1); SetIndexLabel(0, "MA " + tf); IndicatorShortName("MTF Moving Average (" + tf + ", " + period + ")"); return (0); } int deinit() { return (0); } int start() { int li_24; int l_ind_counted_0 = IndicatorCounted(); int li_4 = Bars - l_ind_counted_0 - 1; double l_timeframe_8 = Period(); double ld_16 = tf / l_timeframe_8; while (li_4 >= 0) { li_24 = MathFloor(li_4 / ld_16); g_ibuf_96[li_4] = iMA(Symbol(), tf, period, shift, MODE_EMA, PRICE_CLOSE, li_24); li_4--; } return (0); }