BC:=(C+h+L+(REF(C,1)+O)/2)/4;
RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
K:SMA(RSV,3,1),COLORWHITE;
D:SMA(K,3,1),COLORMAGENTA;
cci:-(BC-(MA(BC,7)+MA(BC,14)+MA(BC,21))/3)/(0.015*(AVEDEV(BC,7)+AVEDEV(BC,14)+AVEDEV(BC,21))/3)/4+50,COLORYELLOW;
IF(k<CCI,CCI,DRAWNULL),COLORGREEN;
0,COLORGRAY;50,COLORRED;100,COLORBLUE;
STICKLINE(c>0,25,25,6,0),COLORCYAN;
STICKLINE(c>0,75,75,6,0),COLORCYAN;