RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:3*K-2*D;
买:J>REF(J,1) AND K>20 AND REF(J,1)<0,LINETHICK0;
DRAWICON(买,0,7),ALIGN1,LAYER0;
低位金叉:crOSS(K,D) AND REF(K,1)<25,LINETHICK0;
DRAWICON(低位金叉,0,1),ALIGN1,LAYER0;
A2:=BArslAST(ref(cross(k,d),1));
{股旁网-股票公式网站 www.GupaNg.com}
B2:=ref(c,A2+1)>c and ref(k,A2+1)<k and cross(k,d);
kdj底背离:FILTER(B2>0,5),linethick0,COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),0.80,’离’),COLORYELLOW;
MA4:=ma(c,30);
准:IF(买 AND MA4>REF(MA4,1),30,0),LINETHICK0;
DRAWTEXT(准,D,’准’),COLOR00FF00;
DOWN:=OPEN>CLOSE;
{去停牌和ST股}
ST:=STRFIND(stkname,’ST’,1)>0;
S:=STRFIND(stkname,’S’,1)>0;
股价偏离:=(c/ref(c,4)-1)*100<-20 and O/REF(LOW,1)<1.01 and COUNT(DOWN,3)=3 AND not(ST) and not(S);
aa:=HHV(股价偏离 ,5 );
杀跌:if(aa>0 and c>o,100,0),LINETHICK0;
VERTLINE(杀跌,1);
MID:=MA(J,20);
上轨:MID + 2*STD(J,20),COLOR993300;
下轨:MID – 2*STD(J,20),COLOR993300;
中轨:((上轨-下轨)/2)+下轨,COLOR993300;
抄:CROSS(J,下轨) AND J>REF(J,1),LINETHICK0;
DRAWTEXT(抄,下轨,’抄’),COLOR00FF00;

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