N1:=5;
N3:=20;
LC:=REF(CLOSE,1);
rsi5:=SMA(maX(CLOSE-LC,0),N1,1)/SMA(Abs(CLOSE-LC),N1,1)*100;
RSI20:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
S1:=BArslAST(REF(crOSS(RSI5,RSI20),1));
S1A:=REF(CLOSE,S1+1)>CLOSE AND RSI5>REF(RSI5,S1+1) AND CROSS(RSI5,RSI20);
底背离:S1A;