通达信CCI三线指标公式源码如下:
N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)),LINETHICK1;
CCI均线:EMA(CCI,14),LINETHICK1;
CCI84:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84)),COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS(CCI,-100),CCI,'¡Á'),COLORRED;
CCI84STICK:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));
CCI84COLORSTICK:CCI84STICK-100,COLORSTICK;