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;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
drawtext(cross(RSI1,RSI3),l*0.97,'买'),coloryellow,linethick3;
drawtext(cross(RSI3,RSI1),h*1.05,'卖'),colorgreen,linethick3;