TYP:=(HIGH+LOW+CLOSE)/3;
cci:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
XF:IF(CCI>=100,CCI,100),COLORRED,LINETHICK2;
XA:IF(CCI<=-100,CCI,-100),COLORGREEN,LINETHICK2;
快卖: IF(PEAKBARS(3,15,1)=1,100,0),COLORRED,LINETHICK5;{有未来只做参考}
快买: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,-120,0),COLORYELLOW,LINETHICK5;{有未来只做参考}
STICKLINE(CCI<-150,CCI,-150,10,0),COLOR0000BB;
STICKLINE(C>0,-150,-151,6,0),COLORBLUE;
STICKLINE(CCI>150,CCI,150,10,0),COLOR0000BB;
STICKLINE(C>0,150,151,6,0),COLORBLUE;