MID:= MA(CLOSE,20);
UPPER:=MID + 2*STD(CLOSE,20);
LOWER:=MID - 2*STD(CLOSE,20);
BB:(C-LOWER)/(UPPER-LOWER)*100,COLORGREEN;
IF(BB>=REF(BB,1),BB,DRAWNULL),COLORRED;
IF(BB<=REF(BB,1),BB,DRAWNULL),COLORGREEN;
0,DOTLINE;
100,DOTLINE;
50,DOTLINE;
STICKLINE(BB>100,BB,100,2,0),COLORYELLOW;
STICKLINE(BB<0,0,BB,2,0),COLORRED;
DRAWTEXT_FIX(1,0,0,0,'︻┻═┳一 '),COLORRED;
K:MA(BB,5),COLORGREEN;
IF(K>=REF(K,1),K,DRAWNULL),COLORRED;
IF(K<=REF(K,1),K,DRAWNULL),COLORGREEN;