LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),21,1)*100,LINETHICK2,COLORFF00FF;
RSIB:=CROSS(RSI1,27);
RSIS:=CROSS(80,RSI1);
JJB:=BARSLAST(RSIB);
JJS:=BARSLAST(RSIS);
STICKLINE(JJB =JJS,RSI1,REF(RSI1,1),1,0);
STICKLINE(JJB JJS,RSI1,REF(RSI1,1),1,0);
DRAWICON(CROSS(80,RSI1),RSI1,2);
DRAWTEXT(CROSS(85,RSI1),RSI1,'见顶');
DRAWTEXT(CROSS(RSI1,27),RSI1,'底');
DRAWICON(CROSS(RSI1,27),RSI1,1);