//+------------------------------------------------------------------+ //| macdHelp.mq4 | //| | //| | //+------------------------------------------------------------------+ #property copyright "" #property link "" #property indicator_separate_window #property indicator_buffers 5 #property indicator_color1 Red #property indicator_color2 Red #property indicator_color3 Red #property indicator_color4 Red #property indicator_color5 Red //---- buffers double ExtMapBuffer0[]; double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; double ExtMapBuffer4[]; extern int FastEMA=12; extern int SlowEMA=26; extern int SignalSMA=9; extern int BollingerPeriod=21; extern int BollingerDeviation=2; extern int BollingerShift=0; int i; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer0); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,ExtMapBuffer1); SetIndexStyle(2,DRAW_LINE); SetIndexBuffer(2,ExtMapBuffer2); SetIndexStyle(3,DRAW_LINE); SetIndexBuffer(3,ExtMapBuffer3); SetIndexStyle(4,DRAW_LINE); SetIndexBuffer(4,ExtMapBuffer4); //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit, counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i=0;i