KDJ指标太过灵敏,最好与其他指标结合使用,我自编的是KDJ与MACD结合。选股条件是:
1、KD金叉,同时K<30,D<3,
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
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;
A:=CROSS(KDJ.K,KDJ.D) AND K<30 AND D<30 AND J<30 ;
B:=MACD<0 AND DEA>0;
XG: A AND B;