以下是通达信金牛金典均线源码

{DRAWBAND(MA(CLOSE,5),RGB(225,225,225),MA(CLOSE,10),RGB(0,51,153));}
 DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(51,153,51));
 DRAWKLINE(H,O,L,C);
 MA5:MA(CLOSE,5),COLORWHITE;
 MA10:MA(CLOSE,10),COLORYELLOW;
 MA20:MA(CLOSE,24),COLORMAGENTA;
 MA60:MA(CLOSE,60),COLOR336699;
 IF(MA20>REF(MA20,1),MA20,DRAWNULL),COLORMAGENTA,LINETHICK1;
 IF(MA20<REF(MA20,1),MA20,DRAWNULL),COLORGREEN,LINETHICK1;
 IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK2;
 IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK2;
 IF(MA5=REF(MA5,1),MA5,DRAWNULL),COLORWHITE,LINETHICK2;
 IF(MA10>REF(MA10,1),MA10,DRAWNULL),COLORYELLOW,LINETHICK2;
 IF(MA10<REF(MA10,1),MA10,DRAWNULL),COLORGREEN,LINETHICK2;
 {K线画色}
 {STICKLINE(C>=MA10,LOW,HIGH,0,1),COLORRED;
 STICKLINE(C>=MA10,CLOSE,OPEN,3.2,2),COLORRED;
 STICKLINE(C<MA10,LOW,HIGH,0,1),COLORGREEN;
 STICKLINE(C<MA10,CLOSE,OPEN,3.2,2),COLORGREEN;
 STICKLINE(CROSS(MA10,C),OPEN,CLOSE,3.2,0),COLORGREEN;
 STICKLINE(CROSS(C,MA10),OPEN,CLOSE,3.2,0),COLORRED;
 STICKLINE((CLOSE>OPEN) AND (C<MA10),CLOSE,OPEN,3.2,2)COLORGREEN;
 STICKLINE((CLOSE>OPEN) AND (C>=MA10),CLOSE,OPEN,3.2,2)COLORRED;
 STICKLINE((CLOSE<OPEN) AND (C<MA10),CLOSE,OPEN,3.2,0)COLORGREEN;
 STICKLINE((CLOSE<OPEN) AND (C>=MA10),CLOSE,OPEN,3.2,0)COLORRED;};

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