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;
VAR1S:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);
VAR2S:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);
VAR3S:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);
VAR4S:=(((VAR1S + (2 * VAR2S)) + (3 * VAR3S)) / 6);
VAR5S:=MA(VAR4S,3);
DB:=IF(VAR5S,20,0);
HDY:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
FX:=HDY<=10;
中短通吃:crOSS(J,K) AND (DB >= 20) AND FX;