X_1:=9991121;
X_2:=31;
XG:DATE<X_1 AND FINDstR(STKNAME,'退')=0 AND (NOT(REF(EVERY(CLOSE>OPEN AND LOW>ma(HIGH,5),1),1) AND OPEN>REF(HIGH,1) AND (OPEN<REF(HHV(HIGH,20),1) OR EVERY(LOW>REF(HIGH,1),3))) AND (MA(CLOSE,5)>=REF(MA(CLOSE,5),1) OR MA(CLOSE,10)>REF(MA(CLOSE,10),1)) AND (REF(REF(LLV(LOW,20),1),REF(BArslAST(CLOSE<=REF(LLV(LOW,20),1)),1)+1)>REF(REF(LLV(LOW,240),1),REF(BARSLAST(CLOSE<=REF(LLV(LOW,240),1)),1)+1) OR REF(REF(LLV(LOW,20),1),REF(BARSLAST(CLOSE<=REF(LLV(LOW,20),1)),1)+1)=DRAWNULL OR REF(REF(LLV(LOW,240),1),REF(BARSLAST(CLOSE<=REF(LLV(LOW,240),1)),1)+1)=DRAWNULL) AND MA(CLOSE,5)>MA(CLOSE,20) AND HIGH>MAX(MAX(MA(CLOSE,5),MA(CLOSE,10)),MA(CLOSE,15)) AND BARSLASTCOUNT(COUNT(MA(CLOSE,20)>REF(MA(CLOSE,20),BARSLASTCOUNT(MA(CLOSE,20)>REF(MA(CLOSE,20),2))*2),BARSLASTCOUNT(REF(REF(LLV(LOW,20),1),REF(BARSLAST(CLOSE<=REF(LLV(LOW,20),1)),1)+1)=REF(REF(REF(LLV(LOW,20),1),REF(BARSLAST(CLOSE<=REF(LLV(LOW,20),1)),1)+1),1)))=1)=1);