N:=1;
TP:=(H+L+C)/3;
MA1:=SUM(C,N);
MD1:=SUM(C/MA1,N);
cci:(MA1-TP)/MD1*150,volSTICK;
STICKLINE(CCI>0,CCI,0,2,0),COLORMAGENTA;
STICKLINE(CCI<0,CCI,0,3.1,1),COLORGREEN;
CCI5:SUM(CCI,5),COLORRED,LINETHICK3;
M5:MA(CCI5,5);
M5A:MA(M5,5);
M5B:MA(M5A,5);
DRAWBAND(CCI5*0.8,90,CCI5*0.98,90);
STICKLINE(CCI5>REF(CCI5,1),CCI5*0.98,REF(CCI5,1),3,1),COLORRED;