SJ:=1;
N:=15;
M1:=5;
M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K9:=SMA(RSV,M1,1);
D9:=SMA(K9,M2,1);
J:=3*K9-2*D9;
RK:MA(K9,15)*SJ,LINETHICK1;
RD:MA(D9,15)*SJ,LINETHICK1;
RJ:MA(J,15)*SJ,LINETHICK1;
DRAWTEXT(CROSS(RK,RD)*SJ&&RD<20,RK*0.80,'多'),COLORRED;
DRAWTEXT(CROSS(RD,RK)*SJ&&RD>80,78,'空'),COLORGREEN,DRAWABOVE;