//+------------------------------------------------------------------+ //| Geo_InnerBar.mq4 | //| Copyright © 2012, Geokom FX Lab| //| geokom2004@yandex.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2012, Geokom" #property link "geokom2004@yandex.ru" // Geo_InnerBar - отображение внутренних баров #property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Olive // #property indicator_width1 1 //---- input parameters double ExtMapBuffer1[]; //double ExtMapBuffer2[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { SetIndexStyle(0,DRAW_HISTOGRAM); // SetIndexArrow(0,241); SetIndexBuffer(0,ExtMapBuffer1); IndicatorShortName("Geo_InnerBar "); return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; int limit=Bars-counted_bars; if(counted_bars==0) limit-=1+1; for(int i=0; iLow[i+1])) {ExtMapBuffer1[i]=1;} else {ExtMapBuffer1[i]=0;} } return(0); } //+------------------------------------------------------------------+