VAR1:=MA(MA(C,60),30);
VAR2:=MA(C,5);
VAR3:=HHV(H,8);
JJ1:=EVERY(VAR1>REF(VAR1,1),5);
JJ2:=EVERY(VAR3<=REF(VAR3,1),9);
TJ1:=JJ1 AND VAR3>VAR1 AND VAR2/VAR1<1.04 AND CROSS(0.5,JJ2);
TJ2:=JJ1 AND VAR3<VAR1 AND CROSS(0.5,JJ2);
TJ3:=VAR1<REF(VAR1,1) AND VAR3/VAR1<=0.92 AND CROSS(0.5,JJ2) AND C>O;
TJ4:=VAR1<REF(VAR1,1) AND VAR3>VAR1 AND VAR3/VAR1<1.05 AND CROSS(0.5,JJ2) AND C>O;
TJ1 OR TJ2 OR TJ3 OR TJ4;