N:=250;
wr1:=100-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),DOTLINE,COLORLIGREEN;
EW:=EMA(WR1,5);
STICKLINE(WR1<20,WR1,20,1,0),COLORYELLOW;
STICKLINE(WR1>80,WR1,80,1,0),COLORYELLOW;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,5,1);
D:SMA(K,5,1);
J:=3*K-2*D;
DRAWBAND(K,RGB(208,50,111),D,RGB(0,100,111));
XXC:WR1,DOTLINE,COLORWHITE;
Z50:50,DOTLINE;