N:=45;
M1:=15;
M2:=15;
DRAWGBK(C>1,RGB(0,0,0),RGB(1,1,1),1,0,0);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,M1,1);
D:SMA(K,M2,1),COLORYELLOW;
J:(3*K-2*D),COLORWHITE;
NOTEXTA:-10,COLORRED,DOTLINE;
NOTEXTB:50,COLORGRAY,DOTLINE;
NOTEXTC:120,COLORGREEN,DOTLINE;
A1:=crOSS(J,100);
B1:=CROSS(100,J);
A2:=CROSS(5,J);
B2:=CROSS(J,5);
NOTEXTAA1:DRAWLINE(A1,100,B1,100,0),COLORFF8000,LINETHICK1;
NOTEXTAA2:DRAWLINE(A2,5,B2,5,0),COLORRED,LINETHICK1;
NOTEXTAA:IF(J>100,J,DRAWNULL),LINETHICK2,COLORFF8000;
NOTEXTBB:IF(J<5,J,DRAWNULL),LINETHICK2,COLORRED;
STICKLINE(J>100,100,J,2,1),COLORFF8000;
STICKLINE(J<5,5,J,2,1),COLORRED;
DRAWTEXT(BArslAST(J>100),NOTEXTAA1,’ 风险区’),COLORGREEN;
DRAWTEXT(BARSLAST(J<5),NOTEXTAA2,’ 机会区’),COLORRED;
DIF:(EMA(CLOSE,12) – EMA(CLOSE,26)),COLORFFFF00,NODRAW;
DEA:EMA(DIF,9),COLORGREEN,NODRAW;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)