A1:=SMA(MAX(C-REF(C,1),0),7,1)/SMA(Abs(C-REF(C,1)),7,1)*100;
A3:=EMA(C,5);
A4:=EMA(A3,5);
A5:=A3-REF(A3,1);
A6:=A4-REF(A4,1);
A7:=ABS(A3-A4);
A8:=(A5+A6)/2;
A9:=POW(A7,1)*POW(A8,3);
A10:=A9/HHV(ABS(A9),15);
T1:=FILTER(REF(A1,1)<20 AND A1>REF(A1,1),5);
T2:=C/MA(C,40)<0.74;
T3:=(H-L)/REF(C,1)>0.05;
T4:=COUNT(T3,5)>1;
T5:=T2 AND T3 AND T4;
T6:=crOSS(A10,-0.9);
T7:=FILTER(((T1 AND ((MA(C,30)-L)/MA(C,60))*100>10) OR C>REF(C,1)) AND REF(T5,1),10);
T8:=FILTER(REF(T5,1) AND (T6 OR C>REF(C,1)) AND "macd.MACD">-1.5,10);
抄底XG:COUNT(T8,13)>=1 AND T7;