(a1 AND all(C O,2)) OR (a1 AND C O AND REF(C,1) REF(O,1) AND REF(C,2) REF(O,2));
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);
Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J 20,30,0);
CROSS(J,REF(J+0.01,1)) AND X AND J