#property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Green #property indicator_color2 Green #property indicator_color3 Green //---------------------------------- extern int iPeriod=14; extern double StdFrrors=2; //---------------------------------- double ci[],uch[],dch[]; double L_Value, M_Dev; //================================================ int init(){ SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ci); SetIndexStyle(1,DRAW_LINE); SetIndexBuffer(1,uch); SetIndexStyle(2,DRAW_LINE); SetIndexBuffer(2,dch); return(0);} //================================================ int start(){ int limit; int counted_bars=IndicatorCounted(); // определим количество просчитаных баров у индикатора if(counted_bars>0){ counted_bars--; } limit=Bars-counted_bars; if(counted_bars==0) limit-=iPeriod; for(int i=0;i