LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK1,COLORFFFFFF;
RSI2:SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,LINETHICK1,COLORYELLOW;
RSI3:SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100,LINETHICK1,COLORMAGENTA;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
WR反向:(0-WR)-100,COLORRED;
A2:-3,COLOR0099FF,DOTLINE;
A3:20,COLOR0099FF,DOTLINE;
A4:80,COLORGRAY;
A5:-95,COLORGRAY;
TJ:= CROSS(RSI1,20);
DRAWICON(TJ,RSI1,1);
TJX:=CROSS(RSI1,80);
DRAWICON(TJX,RSI1,2);
TJ2:=WR反向< A2 AND REF(WR反向,1)>A2;
DRAWICON(TJ2,WR反向,1);
TJ2X:=WR反向< A5 AND REF(WR反向,1)>A5;
DRAWICON(TJ2X,A5,2);
TJ3:=TJ AND TJ2;
RW买入:STICKLINE(TJ3,0,40,0,1),COLORYELLOW;
DRAWICON(RW买入,50,41);