通达信机构主力专用指标

M:=14;

TYP:=(HIGH + LOW + CLOSE)/3;

CCI:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),LINESTICK,COLORCYAN;

跌:IF(CCI<REF(CCI,1),CCI,DRAWNULL),COLORGREEN,LINETHICK2;

DRAWICON(CROSS(200,CCI),250,5);

DRAWICON( CROSS(CCI,-200),-250,4);

转强:STICKLINE(CCI>0,0,CCI,8,0),COLOR0000D5;

弱转强:STICKLINE(CROSS(CCI,-200) AND CCI>REF(CCI,1),CCI,0,8,0),COLOR00DFDF;

强转弱:STICKLINE(CROSS(200,CCI) AND CCI<REF(CCI,1),0,CCI,8,0),COLORGREEN;

天顶线:200,COLORRED;

地底线:-200,COLORCYAN;

牛熊线:100,COLORLIMAGENTA;

M1:MA(CLOSE,13),COLORYELLOW,LINETHICK2;

M2:MA(CLOSE,34),LINETHICK2,COLORWHITE;

M3:MA(CLOSE,55),COLORGREEN,LINETHICK2;

A:MA(C,5)COLORBLUE,LINETHICK3;

B:=A<REF(A,1);

IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;

DRAWTEXT(LAST(C<O,3,0) AND LAST(VOL<REF(VOL,1),3,0),L*0.975,'');

DRAWTEXT(CROSS("DMI.PDI","DMI.MDI") AND CROSS("DMI.PDI","DMI.ADX") AND CROSS("DMI.PDI","DMI.ADXR") AND C>REF(C,1)*1.05 AND VOL>REF(VOL,1),L*0.975,'DMI涨');

DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),L*0.975,'CCI底');

DRAWTEXT(LAST((H-L)/REF(C,1)<0.1,5,0) AND VOL>REF(VOL,1)*2 AND C>REF(C,1)*1.05,L*0.975,'');

DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND C>REF(C,1)*1.098,L*0.975,'');

DRAWTEXT((LAST(C<O,6,3) AND LAST(C>O,2,0)) OR (LAST(C<O,6,3) AND C>O AND REF(C,1)<REF(O,1) AND REF(C,2)>REF(O,2)),L*0.975,'');

DRAWTEXT(CROSS((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100,(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100) AND MA(C,40)>REF(MA(C,40),1),L*0.98,'');

DRAWTEXT(C<O AND VOL>REF(VOL,1)*1.5 AND LAST(VOL<REF(VOL,1),5,1),L*0.975,'');

DRAWTEXT((C>O AND V>REF(V,1)*2.5 AND CROSS(C,MA(C,5))) OR (C>O AND V>REF(V,1)*10),L*0.975,'');

image.png

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