JM:=crOSS(kd.K,KD.D);
JM2:=kdj.J>REF(KDJ.J,1) AND REF(KDJ.J,2)>REF(KDJ.J,1) AND KD.K>KD.D;
DAYS:=BARSLAST(REF(JM,1));
LOWJM:=KD.K>REF(KD.K,DAYS) AND REF(KD.K,DAYS) < 50;
BB1:=JM AND LOWJM;
BB2:=NOT(JM) AND JM2 AND LOWJM;
KDJ双金叉:( BB1 OR BB2)*20;
JM:=crOSS(kd.K,KD.D);
JM2:=kdj.J>REF(KDJ.J,1) AND REF(KDJ.J,2)>REF(KDJ.J,1) AND KD.K>KD.D;
DAYS:=BARSLAST(REF(JM,1));
LOWJM:=KD.K>REF(KD.K,DAYS) AND REF(KD.K,DAYS) < 50;
BB1:=JM AND LOWJM;
BB2:=NOT(JM) AND JM2 AND LOWJM;
KDJ双金叉:( BB1 OR BB2)*20;