Need Indcator Code Help

 
I need help to change this code to draw lines for all bars when attached to chart. Presently, when attached to chart, it draws lines beginning at current Bar.
Wackena

#property indicator_chart_window
#property indicator_buffers 3
#property indicator_color1 Yellow
#property indicator_color2 Red
#property indicator_color3 White

//---- Inputs ----------------
extern int BarRange=72;


//---- buffers ----------------
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];

int ExtCountedBars=0;
double _High, _Low, _Mid;


int init()
  {
   int    draw_begin;
   string short_name;
//---- draw settings -------------
   SetIndexStyle(0,DRAW_LINE);
   IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
   if(BarRange<2) BarRange=13;
   draw_begin=BarRange-1;

   IndicatorShortName(short_name+BarRange+")");
   SetIndexDrawBegin(0,draw_begin);
   
//---- buffers map --------------------
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexBuffer(2,ExtMapBuffer3);
   
   return(0);
  }

// ----- Program Start ----------------
int start()
  {

   if(Bars<=BarRange) return(0);
   ExtCountedBars=IndicatorCounted();
//---- check for possible errors
   if (ExtCountedBars<0) return(-1);
//---- last counted bar will be recounted
   if (ExtCountedBars>0) ExtCountedBars--;
   
   _High=High[iHighest(Symbol(),0,MODE_HIGH,BarRange,1)];
   _Low=Low[iLowest(Symbol(),0,MODE_LOW,BarRange,1)];
   _Mid=(_High+_Low)/2;
  
   ExtMapBuffer1[0] = _High;
   ExtMapBuffer2[0] = _Low;
   ExtMapBuffer3[0] = _Mid;

}  
 
See as example this Price Channel - "MQL4: Price Channel"
And more search on mql4-forum http://codebase.mql4.com/search/Price%20Channel
I think there is enough.
 
Rosh,
Thank you.
Wackena
Reason: