A1:=(C-REF(C,1))/REF(C,1)*100;
A2:=(C-REF(O,29))/REF(O,29)*100;
A3:=(C-LLV(L,45))/(HHV(H,45)-LLV(L,45))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=COUNT(crOSS(A4,A5) AND A5<8 AND A1>8 AND A2<-30,20);
A7:=A6 OR A6 AND A1<3;
B:filter(A7,20);
A1:=(C-REF(C,1))/REF(C,1)*100;
A2:=(C-REF(O,29))/REF(O,29)*100;
A3:=(C-LLV(L,45))/(HHV(H,45)-LLV(L,45))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=COUNT(crOSS(A4,A5) AND A5<8 AND A1>8 AND A2<-30,20);
A7:=A6 OR A6 AND A1<3;
B:filter(A7,20);