N:=14;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
要卖线:100,POINTDOT,COLORYELLOW;
要买线:-100,POINTDOT,COLORYELLOW;
多空:0,POINTDOT,COLORWHITE;
IF(CCI>100,CCI,DRAWNULL),COLORRED;
IF(CCI<-100,CCI,DRAWNULL),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=120,200.1,'徐文明抄短底
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=120,185,'抄短底是上升波必不可少的功夫'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,170.1,'寻找底背离底部买进信号运用CCI
'),COLORYELLOW;
{ _通达信股票指标公式}
DRAWTEXT(CURRBARSCOUNT=120,155.1,'要比运用kd、rsi、W R有时要灵敏一天半左右'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,140.1,'早抓低点较滞抄底的人不管是趋利还是避害都更有腾挪空间
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,125.1,'该指标的使用技巧是
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=120,110,'(1)跌破负100如继续创新低而该指标连续反弹可能现短底
'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=120,95.1,'(2)升破负100及升破100属短多信号以及空头停损信号
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,80,'(3)强势中跌破100及弱势中跌破负100可能产生调整
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,65.1,'(4)升破100后如股指继续创新高而该指标连续下行可能出现短顶
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,50.1,'(5)上述四个作用中第一和第四个更有准确度
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,35.1,'CCI指标只有出现极端行情时才比较容易判断
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=120,20.1,'对大涨或下跌一定数值时判断顶部或底部比较容易没极端行情'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=120,5,'配合macd、SKD、成交量和均线等才能达到最佳效果
'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=75,200.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=75,185,''),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=75,170.1,'
'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=75,155.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=75,140.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=75,125.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=75,110,'
'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=75,95.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=75,80,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=75,65.1,'
'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=75,50.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=75,35.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=75,20.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=75,5,'
'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=35,200.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,185,' '),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,170.1,'
'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=35,155.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,140.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,125.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,110,'
'),COLORYELLOW;DRAWTEXT(CURRBARSCOUNT=35,95.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,80,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,65.1,'
'),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=35,50.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,35.1,'
'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=35,20.1,'
'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=35,5,'
'),COLORYELLOW;