X_1:=REF(CLOSE,6)/REF(CLOSE,7)>1.095 AND REF(OPEN,6)<REF(MA(CLOSE,20),6) AND BETWEEN(OPEN/REF(OPEN,6),1.02,0.98);
X_2:=REF(CLOSE,5)/REF(CLOSE,6)>1.095 AND REF(OPEN,5)<REF(MA(CLOSE,20),5) AND BETWEEN(OPEN/REF(OPEN,5),1.02,0.98);
X_3:=REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(OPEN,4)<REF(MA(CLOSE,20),4) AND BETWEEN(OPEN/REF(OPEN,4),1.02,0.98);
X_4:=REF(CLOSE,3)/REF(CLOSE,4)>1.095 AND REF(OPEN,3)<REF(MA(CLOSE,20),3) AND BETWEEN(OPEN/REF(OPEN,3),1.02,0.98);
X_5:=(HHV(HIGH,20)-LLV(LOW,20))/LLV(LOW,20)*100<21 AND REF(CLOSE,1)*1.1-CLOSE<0.01 AND OPEN<MIN(MA(CLOSE,5),MIN(MA(CLOSE,10),MA(CLOSE,20)));
折叠:X_1 OR X_2 OR X_3 OR X_4 AND (CLOSE/REF(CLOSE,1)>1.03 AND REF(CLOSE,2)/REF(CLOSE,3)<1.07) OR (X_5 AND CLOSE>MAX(MA(CLOSE,5),MAX(MA(CLOSE,10),MA(CLOSE,20))) AND (HHV(MA(CLOSE,20),20)-LLV(MA(CLOSE,20),20))/LLV(MA(CLOSE,20),20)*100<5 AND (HHV(MA(CLOSE,60),20)-LLV(MA(CLOSE,60),20))/LLV(MA(CLOSE,60),20)*100<5),COLORYELLOW;
X_6:=MA(IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3,84.027);
X_7:=IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3-X_6;
X_8:=0.015*AVEDEV(IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3,84.027);
X_9:=IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3-MA(IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3,84.027);
X_10:=0.015*AVEDEV(IF(HIGH>CLOSE AND CLOSE>OPEN OR (HIGH>OPEN AND OPEN>=CLOSE),CLOSE,HIGH)+IF(LOW<CLOSE AND CLOSE<OPEN OR (LOW<OPEN AND OPEN<=CLOSE),CLOSE,LOW)/3,84.027);
涨停:EMA(X_7/X_8,2.0332)>HHV(MA(EMA(X_9/X_10,2.0332),5),21) AND CROSS(CLOSE,1.13*EMA((EXPMA(CLOSE*VOL,3)/EXPMA(VOL,3)+EXPMA(CLOSE*VOL,6)/EXPMA(VOL,6)+EXPMA(CLOSE*VOL,12)/EXPMA(VOL,12)+EXPMA(CLOSE*VOL,24)/EXPMA(VOL,24))/4,13)) AND REF(CLOSE,1)*1.1-CLOSE<0.01 AND HIGH=CLOSE,COLORMAGENTA;