N1:=6;
N2:=12;
LC:=REF(CLOSE,1);
rsi1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(Abs(CLOSE-LC),N1,1)*100;
RSI2:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
A:20;
D:80;
买:=RSI1<20 ;
DRAWTEXT(买,RSI1*0.8,'买'),colorblue;
卖:=RSI1>80 ;
DRAWTEXT(卖,RSI1*1.09,'卖'),colorred;
买:=RSI2<20 ;
DRAWTEXT(买,RSI2*0.8,'加'),colorblue;
卖:=RSI2>80 ;
DRAWTEXT(卖,RSI2*1.09,'清'),colorred;