N:=5;
N1:=5;
N2:=10;
N3:=20;
MA1:=MA(CLOSE,N1);
MA2:=MA(CLOSE,N2);
MA3:=MA(CLOSE,N3);
TJ1:=MA1>MA2 AND MA2>MA3;
TJ2:=MA1>REF(MA1,1) AND MA2>REF(MA2,1) AND MA3>REF(MA3,1);
TJ3:=EVERY(TJ1,N) AND NOT(EVERY(TJ1,(N+1))) ;
TJ4:=COUNT((V/REF(MA(V,5),1)>=1),20)>=1;
TJ1 AND TJ2 AND TJ3 AND TJ4;