源码:(大智慧新一代)
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),linethick0;
DRAWTEXT(CROSS(200,CCI),250,'下穿200'),COLORGREEN;
DRAWTEXT( CROSS(CCI,-200),-150,'上穿-200'),COLORYELLOW;
DRAWTEXT( CROSS(CCI,-100),-100,'上穿-100'),COLORFF00FF;
STICKLINE(CCI>0,0,CCI,4,0),COLORRED;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,4,0),COLORYELLOW;
STICKLINE(CROSS(200,CCI) AND CCI[
DRAWTEXTREL(10,10,'转强 CCI>0 红柱'),COLORRED;
DRAWTEXTREL(10,80,'弱转强 CCI上穿-200 黄柱'),COLORYELLOW;
DRAWTEXTREL(10,150,'强转弱 CCI下穿200 绿柱'),COLORGREEN;
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),colorYELLOW,LINETHICK2;
差值:=CCI70-REF(CCI70,1);
partline(CCI70,差值>0,rgb(255,255,0),差值<0,RGB(0,0,255)),linethick2;
周CCI:"cci.aa#week",LINETHICK2,COLORWHITE;
0,COLORYELLOW; ]