//+------------------------------------------------------------------+ //| Geo_ShowOpenDayLevel.mq4 | //| Copyright © 2011, Geokom | //| geokom2004@yandex.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2012, Geokom" #property link "geokom2004@yandex.ru" // Geo_2 - отображение линии на уровне между High и Low // Geo_ShowOpenDayLevel - отображение уровня открытия дня #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 Black // #property indicator_width1 1 //#define double ExtMapBuffer1[]; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { SetIndexStyle(0,DRAW_LINE,3,1); SetIndexBuffer(0,ExtMapBuffer1); return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int limit; int counted_bars=IndicatorCounted(); // проверим возможные ошибки - зачем время терять, если нет ничего if(counted_bars<0) return(-1); // пересчитаем последний if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i