源码
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
M20:=MA(CLOSE,20);
M40:=MA(CLOSE,40);
进场:IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,1,0) AND M20>REF(M20,1);
进场2:IF(CROSS(J,0) AND M40>REF(M40,1),2,0);