N:=14;
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,1,0),COLORRED;
STICKLINE(CCI<0,0,CCI,1,0),COLORLIGREEN;
STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,1,0),COLORYELLOW;
STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,1,0),COLORGREEN;
{ _通达信股票指标公式}
CCI70:(TYP-MA(TYP,70))/(0.015*AVEDEV(TYP,70)),COLORYELLOW,LINETHICK2;
差值:=CCI70-REF(CCI70,1);
IF(差值>0,CCI70,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(差值<0,CCI70,DRAWNULL),COLORBLUE,LINETHICK2;
逃顶线:200,COLORGREEN;
强势线:100,COLORRED,LINETHICK2;
趋势线:CCI,COLORGRAY,LINESTICK,LINETHICK1;
中轴线:0,COLORYELLOW,LINETHICK1;
抄底线:-100,COLORWHITE;
弱势线:-200,COLORGREEN;
DRAWICON(CROSS(CCI,-100) OR (REF(CCI,1)>-100 AND REF(CCI,1)<-95 AND CCI>REF(CCI,1)),CCI-0.03,1);
DRAWICON(CROSS(100,CCI) OR (REF(CCI,1)<100 AND REF(CCI,1)>95 AND CCI<REF(CCI,1)),CCI+0.03,2);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。