ZF:=H/L;
CF:=C/REF(C,1);
N:=HHVBARS(ZF*CF,20);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
(HHV(H,N-1)-LLV(L,N-1))/LLV(L,N-1)<0.2
AND
C>MAX(MA(C,20),MAX(MA(C,60),MAX(MA(C,120),MA(C,240))))
AND
N>=5
AND
MA(V,5)>=MA(V,135)
AND
MA(C,20)>MAX(MA(C,60),MAX(MA(C,120),MA(C,240)))
AND
EVERY(V<REF(V,N),5)
AND ((DIF-DEA)>0 OR EVERY((DIF-DEA)>=REF((DIF-DEA),1),2))
AND COUNT((C/REF(C,6))>1.5,60)=0;