SJ:=1;
严重超买:100*SJ,COLORRED,POINTDOT;
超买:80,COLORRED,POINTDOT;
超卖:20,COLOR00FF00,POINTDOT;
严重超卖:0*SJ,COLOR00FF00,POINTDOT;
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;{www.9m8.cn 九毛八公式指标网}
RK:MA(K9,15)*SJ,LINETHICK1;
RD:MA(D9,15)*SJ,LINETHICK1;
RJ:MA(J,15)*SJ,LINETHICK1;
DRAWTEXT(CROSS(RK,RD)*SJ 20,RK*0.80,'多'),COLORRED;
DRAWTEXT(CROSS(RD,RK)*SJ 80,78,'空'),COLORGREEN,DRAWABOVE;