最高:=HHV(H,5);
最低:=LLV(L,5);
Q1:=(最高-最低)/最低>0.3;
T1:=BARSLAST(Q1);
T2:=BETWEEN(T1,0,2);
T3:=REF(MA(C,5),1)>REF(MA(C,5),5);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
T4:=MACD<REF(MACD,1);
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
VAR4:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
T5:=VAR4<REF(VAR4,1) ;
T6:=L>MA(C,10);
T7:=C<MA(C,5);
T8:=C*1.06>MA(C,5);
Q2:=REF(T2,1)>0 AND T3 AND T4 AND T5 AND T6 AND T7 AND T8;
T9:=C>O*1.028;
T10:=O<LLV(L,3)*1.05;
T11:=REF(Q2,1) AND T9 AND T10;
XG:FILTER(T11,20);