N:=9;M1:=3;M2:=8;WN:=5;WM1:=3;WM2:=13;MN:=20;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
A:=SMA(RSV,M1,1);
B:=SMA(A,M2,1);
E:=A-B;
K:A;
D:B;
J:E;
DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
X:80;
Y:20;
Z:50;
WRSV:=(CLOSE-LLV(LOW,WN))/(HHV(HIGH,WN)-LLV(LOW,WN))*100;
WAA:=SMA(WRSV,WM1,1);
WB:=SMA(WAA,WM2,1);
WE:=WAA-WB;
WK:WAA,NODRAW;
WD:WB,NODRAW;
WJ:WAA-WB,NODRAW;
MRSV:=(CLOSE-LLV(LOW,MN))/(HHV(HIGH,MN)-LLV(LOW,MN))*100;
MAA:=SMA(MRSV,5,1);
MB:=SMA(MAA,13,1);
ME:=MAA-MB;
MK:MAA,NODRAW;
MD:MB,NODRAW;
MJ:MAA-MB,NODRAW;
STICKLINE(MJ 0,MK,MD,9,1),COLORRED;
STICKLINE(MJ 0,MK,MD,9,1),COLORGREEN;
STICKLINE(WJ 0,WK,WD,4,0),COLORMAGENTA;
STICKLINE(WJ 0,WK,WD,4,0),COLORLIGREEN;