【大智慧】KDJ優(yōu)化版指標(biāo)公式
攻城獅 2015.11.28 11:24
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;
買(mǎi):J>REF(J,1) AND K>20 AND REF(J,1)<0,LINETHICK0;
DRAWICON(買(mǎi),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));
{概念股網(wǎng)-股票公式網(wǎng)站 www.chiang1015.com}
B2:=ref(c,A2+1)>c and ref(k,A2+1)KDJ底背離:FILTER(B2>0,5),linethick0,COLORYELLOW;
DRAWTEXT(FILTER(B2>0,5),0.80,’離’),COLORYELLOW;
MA4:=ma(c,30);
準(zhǔn):IF(買(mǎi) AND MA4>REF(MA4,1),30,0),LINETHICK0;
DRAWTEXT(準(zhǔn),D,’準(zhǔn)’),COLOR00FF00;
DOWN:=OPEN>CLOSE;
{去停牌和ST股}
ST:=STRFIND(stkname,’ST’,1)>0;
S:=STRFIND(stkname,’S’,1)>0;
股價(jià)偏離:=(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(股價(jià)偏離 ,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;
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場(chǎng),不代表本網(wǎng)贊同其觀點(diǎn),亦不對(duì)其真實(shí)性負(fù)責(zé),投資決策請(qǐng)建立在獨(dú)立思考之上。