DRAWNUMBER(ISLASTBAR ,C,C),COLORMAGENTA;
BBI:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4;
IF(BBI<REF(BBI,1),BBI,DRAWNULL),COLORGREEN,LINETHICK3;
IF(BBI>REF(BBI,1),BBI,DRAWNULL),COLORRED,LINETHICK3;
BOLL:MA(CLOSE,N),COLORWHITE,LINETHICK2;
UB:BOLL+2*STD(CLOSE,N),COLORBLUE,LINETHICK2;
LB:BOLL-2*STD(CLOSE,N),COLORYELLOW,LINETHICK2;
IF(BOLL>=REF(BOLL,1),BOLL,DRAWNULL),LINETHICK3,COLORRED;