DOWN:=50;
N:=120;
X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
X_3:=(X_1-X_2)*2;
X_4:=HHV(HIGH,N);
X_5:=REF(BArslAST(HIGH=X_4),1)+1;
X_6:=LLV(LOW,X_5+1);
X_7:=REF(BARSLAST(LOW=X_6),1)+1;
X_8:=100*X_6/X_4>100-DOWN;
X_9:=X_8 AND X_5>=30 AND X_7>=10;
X_10:=IF(CODELIKE(9) OR CODELIKE(10),7,5);
X_11:=vol=HHV(VOL,15) AND BETWEEN(VOL/MA(VOL,5),0.5,5);
X_12:=OPEN=LOW OR (HIGH-CLOSE)/(OPEN-LOW)>2;
X_13:=CLOSE>OPEN AND HIGH>CLOSE AND HIGH-CLOSE>OPEN-LOW;
X_14:=LOW>REF(HIGH,1) OR (OPEN>REF(CLOSE,1) AND HIGH>REF(HIGH,1));
X_15:=100*(CLOSE-OPEN)/OPEN<=X_10;
X_16:=CLOSE<REF(HIGH,X_5)*0.8;
X_17:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16;
X_18:=BETWEEN(LLV(LOW,10)/REF(LOW,X_7),1,(100+X_10)/2);
X_19:=REF(BARSLAST(crOSS(X_1,X_2)),1)+1;
X_20:=X_1<=0.1 OR X_2<=0.1 AND X_1>=X_2 AND X_19<=10 OR CROSS(X_1,X_2);
X_21:=X_9 AND X_17 AND X_18 AND X_20;
XH:X_21 AND REF(NOT(X_21),1);