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;