RSSV:=(REF(C,1) - LLV(LOW,40))/(HHV(HIGH,40) - LLV(LOW,40))*100;
KS:=EMA(RSSV,3);
DS:=EMA(KS,3);
JS:=(3*KS-2*DS);
SS:=IF(JS<=0,-JS*5,0);
RSDV:=(CLOSE - LLV(LOW,39))/(HHV(HIGH,39) - LLV(LOW,39))*100;
KD:=EMA(RSDV,3);
DD:=EMA(KD,3);
JD:=(3*KD-2*DD);
KDJ1:=REF(COUNT(JD<REF(JD,1),5)>=3,1) AND REF(JD,1)<20;
KDJ2:=JD>REF(JD,1);
XX:=IF(FILTER(KDJ1 AND KDJ2,3),30,0);
JF:="KDJ.J";
XUGU:SS AND XX AND CROSS(JF,0) ;