X_1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
X_2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
X_3:=SMA(X_2,13,8);
X_4:=SMA(X_1,21,8);
X_5:=CEILING(SMA(X_3,13,8));
X_7:=X_5-X_4<(-80);
X_8:=REF(CLOSE,1);
X_9:=REF(VOL,1);
X_10:=(CLOSE-X_8)/(CLOSE+X_8);
X_11:=(VOL-X_9)/(VOL+X_9);
X_12:=SUM(ABS(X_11),12)/SUM(ABS(X_10),12);
X_13:=SMA(MAX(CLOSE-X_8,0),12,1)/SMA(ABS(CLOSE-X_8),12,1)*100;
X_14:=X_12<6 AND X_13<25;
X_15:=X_12<7 AND X_13<30;
X_16:=X_12<8 AND X_13<31;
X_17:=X_14 OR X_15 OR X_16 AND BARSCOUNT(CLOSE)>60;
X_18:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<(-25);
X_19:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<(-27);
X_20:=X_18 AND X_19;
X_21:=X_20 AND (CLOSE>OPEN*1.06 OR CLOSE>REF(CLOSE,1)*1.038) AND VOL<REF(VOL,1)*2.8 OR CLOSE<MA(CLOSE,48)*0.7 AND (COUNT(CLOSE<OPEN*0.97,2)=2 AND DPO>(-3.7) OR COUNT(HIGH/LOW>1.065,5)>3);
X_22:=CLOSE/(EMA(EMA((CLOSE+LOW+HIGH)/3,3),26)*0.9)<0.95;
X_23:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)<(-0.2245);
XG:X_7 AND X_17 AND X_21 AND X_22 AND X_23;