以下是通达信天地分界副图源码
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
STICKLINE(J>REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORRED;
STICKLINE(J>REF(J,1),J,REF(J,1),3,0),COLORRED;
STICKLINE(J<REF(J,1),HHV(J,3),LLV(J,3),0,0),COLORFFAA00;
STICKLINE(J<REF(J,1),J,REF(J,1),3,0),COLORFF3300;
预警线:100,COLOR00FF00,DOTLINE;
启动线:0,COLORFF00FF,DOTLINE;
安全线:80,DOTLINE;
分界线:50,DOTLINE,COLORWHITE;
DRAWTEXT(ISLASTBAR,预警线,’预警’)COLORRED;
DRAWTEXT(ISLASTBAR,启动线,’启动’)COLORMAGENTA;
DRAWTEXT(ISLASTBAR,安全线,’安全’)COLORMAGENTA;
DRAWTEXT(ISLASTBAR,分界线,’分界’)COLORWHITE;
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWICON(CROSS(FF,MA15),J,22);
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)