//+------------------------------------------------------------------+ //| Copyright © 2012, Vladimir Hlystov | //| http://cmillion.narod.ru | //+------------------------------------------------------------------+ #property copyright "Copyright © 2012, Vladimir Hlystov" #property link "http://cmillion.narod.ru" #property indicator_chart_window //+------------------------------------------------------------------+ int init() { return(0); } //+------------------------------------------------------------------+ int deinit() { ObjectsDeleteAll(0,OBJ_TRIANGLE); Comment(""); return(0); } //+------------------------------------------------------------------+ int start() { datetime TimeMin=Time[0],TimeMax=Time[0]; double Min=Low[0],Max=High[0]; 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--; for (int i=0; i<=limit; i++) { if (Min>Low[i]) {Min=Low[i];TimeMin=Time[i];} if (Max