//+------------------------------------------------------------------+ //| Cand.mq4 | //| Copyright © 2009, palt. | //| http://mql4you.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2009, palt." #property link "http://mql4you.ru" #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Green #property indicator_color2 Red #property indicator_width1 2 #property indicator_width2 1 //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; //+------------------------------------------------------------------+ int init() {SetIndexStyle(0,DRAW_HISTOGRAM); SetIndexBuffer(0,ExtMapBuffer1); SetIndexStyle(1,DRAW_HISTOGRAM); SetIndexBuffer(1,ExtMapBuffer2); return(0);} //+------------------------------------------------------------------+ int deinit() {return(0);} //+------------------------------------------------------------------+ int start() {int limit; int counted_bars=IndicatorCounted(); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i