VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
BBBB:= VAR3;
DDD:= VAR4;
VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;
VAR9:=CROSS(VAR4,VAR3) AND VAR3>80;
VAR8:=CROSS(VAR2,VAR3) AND VAR3>80 AND VAR3>VAR4;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);
SSS:=DD,COLOR0000FF,LINETHICK2,COLORGREEN;
GGG:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);
N:=9;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
E:=(K+D)/2;
HHH:=(K+D)/2;
AAA:HHH>REF(HHH,1) AND SSS<REF(SSS,1) AND HHH<40,COLORRED;