double hBB[],lBB[];
ArraySetAsSeries(hBB,true);
ArraySetAsSeries(lBB,true);
int BB_Handle=iBands(NULL,0,20,0,2,PRICE_CLOSE);
if(CopyBuffer(BB_Handle,UPPER_BAND,0,2,hBB)<=0) return;
if(CopyBuffer(BB_Handle,LOWER_BAND,0,2,lBB)<=0) return;
ibands_upper= hBB[0] ;
ibands_lower=lBB[0];