N:=9;
M1:=3;
M2:=3;
A1:80;
A2:50;
A3:20;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),colorred;
D:SMA(K,M2,1),colorgreen;
金叉:CROSS(K,D) OR CROSS(K,D),NODRAW;
死叉:CROSS(D,K) OR CROSS(D,K)OR CROSS(D,K),NODRAW;
DRAWICON(金叉,L,1);
DRAWICON(死叉,H*1,2);
DRAWKLINE(H,O,L,C);