//------------------------------------------------------------------ //------------------------------------------------------------------ #property copyright "" #property link "" #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 LimeGreen #property indicator_color2 PaleVioletRed // // // // // double high[]; double low[]; //------------------------------------------------------------------ // //------------------------------------------------------------------ // // // // // int init() { SetIndexBuffer(0,high); SetIndexBuffer(1,low); return(0); } int start() { int counted_bars=IndicatorCounted(); if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; int limit=MathMin(Bars-counted_bars,Bars-1); // // // // // for(int i=limit; i>=0; i--) { high[i] = High[i]; low[i] = Low[i]; } return(0); }