KDJ??ЧԴ??
DIF:=EMA(CLOSE,)-EMA(CLOSE,),COLORYELLOW;
DEA:=EMA(DIF,9)COLORMAGENTA;
MACD:=(DIF-DEA)*2,COLORLIGRAY;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
选:EXIST(CROSS(DIF,DEA),3) AND EXIST(CROSS(J,K),3) AND CROSS(MA(C,5),MA(C,));
修改KDJ指标公式
是用CCI来构造的, 源码如下
N:=;
RK:SMA(CCI,3,1);
RD:SMA(RK,3,1);
RJ:3*RK-2*RD;
头:=+REVERSE(EMA(RJ,1));
底:=-+REVERSE(EMA(RJ,1));
抛:IF(RJ>头,,),COLORGREEN;
吸:IF(RJ<底,-,-),COLORRED;
现价:=(C+L+H)/3;
AO:=SMA(现价,5,1)-SMA(现价,,1);
AC:AO-SMA(AO,3,1),LINETHICK2,COLORRED;
IF(AC<REF(AC,1),AC,DRAWNULL)LINETHICK2,COLORBLUE;
2024-12-24 07:55
2024-12-24 07:53
2024-12-24 07:47
2024-12-24 07:34
2024-12-24 07:02