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;

 

通达信CCI变色指标公式