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