用法说明:CCI指标大家都熟悉,是做短线的利器,不用多说!指标共有五条线,最上下两条线为卖、买警戒线,中间线为强弱分界线,到风险和安全区域CCI会变色(有买卖指示,含有未来)只能做参考!
指标源码:
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;