N1:=5;
N2:=10;
N3:=20;
LC:=REF(CLOSE,1);
rsi5:=SMA(maX(CLOSE-LC,0),N1,1)/SMA(Abs(CLOSE-LC),N1,1)*100;
RSI10:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI20:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
金叉:crOSS(RSI5,RSI20) AND CROSS(RSI10,RSI20);