//+------------------------------------------------------------------+ //| i_GMMA_Long_Gistogram.mq4 | //| Copyright © 2010, dmmikl86 | //| mhs_86@mail.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2010, dmmikl86" #property link "mhs_86@mail.ru" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 SaddleBrown //---- buffers double ExtMapBuffer1[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators SetIndexStyle(0,DRAW_HISTOGRAM,EMPTY,2); SetIndexBuffer(0,ExtMapBuffer1); //---- return(0); } int deinit() { return(0); } int start() { int i,limit,counted_bars=IndicatorCounted(); double ma1, ma2, ma3, ma4, ma5, ma6, ma1_1, ma2_1, ma3_1, ma4_1, ma5_1, ma6_1; if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(i=0; i