input: N(9,2,100),M1(3,2,50),M2(3,2,50);
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
交叉位:=((3*REF(D,1)-2*REF(K,1))*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9);
n1:=sysparam(3); n2:=sysparam(2); n3:=(n1-n2)+1; hh:=hhv(J,n3); ll:=llv(J,n3);
zhh:=hh[n1]; zll:=ll[n1];
DRAWTEXT(BARPOS=SYSPARAM(3)&&交叉位