N:=14;M:=50;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:(TYP-ma(TYP,N))/(0.015*AVEDEV(TYP,N)),COLORWHITE,LINETHICK1;
C2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORRED;
上升:IF(CCI>REF(CCI,1),CCI,DRAWNULL),LINETHICK1,COLORWHITE;
下降:IF(CCI<REF(CCI,1),CCI,DRAWNULL),LINETHICK1,COLORWHITE;
B:=crOSS(CCI,-100) AND REF(CCI,3)<-120;
DRAWTEXT(B,-100,'B'),COLOR00FFFF,LINETHICK3,stICK;
S:=CROSS(110,CCI);
DRAWTEXT(S,110,' '),COLORGREEN;
超买线:100,COLORGREEN;
超卖线:-100,COLORBLUE;