以下是通达信均线交叉提示主图附附图源码

M1:=5;M2:=10;M3:=20;M4:=30;M5:=60;M6:=120;

MA5:MA(CLOSE,M1),LINETHICK1;

MA10:MA(CLOSE,M2),LINETHICK1;

MA20:MA(CLOSE,M3),LINETHICK1;

MA30:MA(CLOSE,M4),LINETHICK1;

MA60:MA(CLOSE,M5),LINETHICK1;

 

IF(MA5>= REF(MA5,1) AND MA5>= MA10,MA5,DRAWNULL),COLORRED,LINETHICK1;

IF(MA10>= REF(MA10,1) AND MA10>= MA20,MA10,DRAWNULL),COLORRED,LINETHICK1;

IF(MA20>= REF(MA20,1) AND MA20>= MA30,MA20,DRAWNULL),COLORRED,LINETHICK1;

IF(MA30>= REF(MA30,1) AND MA30>= MA60,MA30,DRAWNULL),COLORRED,LINETHICK1;

DRAWICON(CROSS(MA5,MA10),LOW*0.99,1);

DRAWICON(CROSS(MA10,MA20),LOW*0.99,1);

DRAWICON(CROSS(MA20,MA30),LOW*0.99,1);

DRAWICON(CROSS(MA10,MA5),H,2);

DRAWICON(CROSS(MA20,MA10),H,2);

DRAWICON(CROSS(MA30,MA20),H,2);

 

DRAWTEXT(CROSS(MA5,MA10),MA5,'○'),LINETHICK1, COLORYELLOW;

DRAWTEXT(CROSS(MA10,MA20),MA10,'◎'),LINETHICK1, COLORYELLOW;

DRAWTEXT(CROSS(MA20,MA30),MA20,'●'),LINETHICK1, COLORYELLOW;

 

DRAWTEXT(CROSS(MA30,MA60),MA30,'☆'),LINETHICK1, COLORYELLOW;

通达信均线交叉提示主图附附图源码

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