rsi5:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(Abs(C-REF(C,1)),5,1)*100,COLORFFAAFF;
RSI10:=SMA(MAX(C-REF(C,1),0),10,1)/SMA(ABS(C-REF(C,1)),10,1)*100,COLORDDAADD;
RSI20:=SMA(MAX(C-REF(C,1),0),20,1)/SMA(ABS(C-REF(C,1)),20,1)*100,COLORAA99AA;
VAR1:=BARSLAST(REF(crOSS(RSI20,RSI5),1));
VAR2:=REF(CLOSE,VAR1+1)<CLOSE AND REF(RSI5,VAR1+1)>RSI5 AND CROSS(RSI20,RSI5);
VAR3:=BARSLAST(REF(CROSS(RSI5,RSI20),1));
VAR4:=REF(CLOSE,VAR3+1)>CLOSE AND RSI5>REF(RSI5,VAR3+1) AND CROSS(RSI5,RSI20);
底背离:VAR4;