KDJ买卖-(贴图,源码,说明)

2011-03-05 10:32:00来源:本站整理浏览:89

买的意思是:J值小于前一天的同时,J小于0,K小于20
低位金叉:K上穿D 同时前一天K小于25
背离,只是提醒,不做买卖
准确买卖:在买的同时 加入了30天均线向上~

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;
JJ: 2*(k-d), COLORSTICK;
买:J>REF(J,1) AND K>20 AND REF(J,1)<0,LINETHICK0;
DRAWICON(买,J,7),ALIGN1,LAYER0;
低位金叉:CROSS(K,D) AND REF(K,1)<25,LINETHICK0;
DRAWICON(低位金叉,5,1),ALIGN1,LAYER0;
A2:=BARSLAST(ref(cross(k,d),1));
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,'KDJ底背离'),COLORYELLOW;
MA4:=ma(c,30);
准确买点:IF(买 AND MA4>REF(MA4,1),79,0);

股票公式栏目导航

本类热门

相关公式