D1:=EMA(C,3);
DK:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:=EMA(DIF,9);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
GZ:=CROSS(DIF,DEA) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
XG:CROSS(D1,DK) AND DK>=REF(DK,1) AND GZ;