KDJ买卖
2011-02-15 17:09:00来源:本站整理浏览:82
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:SMA(K,3,1),COLORRED,linethick2;
PARTLINE(D<REF(D,1),D),COLORBLUE,linethick2;
J: (3*K-2*D);
partline(J>=REF(J,1),J),Colorred,LINETHICK2;
partline(J<REF(J,1),J),Colorblue,LINETHICK2;
DRAWTEXT(J>=REF(J,1) AND ISLASTBAR=1,K,' ←看多'),COLORYELLOW;
DRAWTEXT(J<REF(J,1) AND ISLASTBAR=1,K,' ←保守'),COLORMAGENTA;
STICKLINE(K>D,D,K,6,0),colorred;
STICKLINE(K<=D,D,K,6,0),colorblue;
DRAWICON(CROSS(K,D),D-0.02,4);
DRAWICON(CROSS(D,K),D+0.06,5);
DRAWTEXT(K>D,0,'買'),colorred,ALIGN0;
DRAWTEXT(K<D,0,'賣'),colorblue,ALIGN0;
K:=SMA(RSV,3,1);
D:SMA(K,3,1),COLORRED,linethick2;
PARTLINE(D<REF(D,1),D),COLORBLUE,linethick2;
J: (3*K-2*D);
partline(J>=REF(J,1),J),Colorred,LINETHICK2;
partline(J<REF(J,1),J),Colorblue,LINETHICK2;
DRAWTEXT(J>=REF(J,1) AND ISLASTBAR=1,K,' ←看多'),COLORYELLOW;
DRAWTEXT(J<REF(J,1) AND ISLASTBAR=1,K,' ←保守'),COLORMAGENTA;
STICKLINE(K>D,D,K,6,0),colorred;
STICKLINE(K<=D,D,K,6,0),colorblue;
DRAWICON(CROSS(K,D),D-0.02,4);
DRAWICON(CROSS(D,K),D+0.06,5);
DRAWTEXT(K>D,0,'買'),colorred,ALIGN0;
DRAWTEXT(K<D,0,'賣'),colorblue,ALIGN0;
- 上一篇公式:飞狐主力秘密筹码指标公式
- 下一篇公式:KD%