N:=9;
M:=9;
RSV:=(((C-LLV(L,N))/(HHV(H,M)-LLV(L,N)))*100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
JZ:=((3*K)-(2*D));
VAR1:=(((C-MA(C,6))/MA(C,6))*100);
VAR2:=(((C-MA(C,12))/MA(C,12))*100);
VAR3:=(((C-MA(C,24))/MA(C,24))*100);
VAR4:=(((VAR1+(2*VAR2))+(3*VAR3))/6);
VAR5:=MA(VAR4,3);
黄金钻:crOSS(JZ,0) AND (VAR5<=(0-7));