VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=SMA(VAR2,13,8);
VAR4:=SMA(VAR1,21,8);
VAR5:=CEILING(SMA(VAR3,13,8));
VAR6:=VAR5-VAR4;
VAR7:=VAR5-VAR4<(-80);
VAR8:=REF(CLOSE,1);
VAR9:=REF(VOL,1);
VAR10:=(CLOSE-VAR8)/(CLOSE+VAR8);
VAR11:=(VOL-VAR9)/(VOL+VAR9);
VAR12:=SUM(ABS(VAR11),12)/SUM(ABS(VAR10),12);
VAR13:=SMA(MAX(CLOSE-VAR8,0),12,1)/SMA(ABS(CLOSE-VAR8),12,1)*100;
VAR14:=VAR12<6 AND VAR13<25;
VAR15:=VAR12<7 AND VAR13<30;
VAR16:=VAR12<8 AND VAR13<31;
VAR17:=VAR14 OR VAR15 OR VAR16 AND BARSCOUNT(CLOSE)>60;
VAR18:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100<(-25);
VAR19:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<(-27);
VAR20:=VAR18 AND VAR19;{}
VAR21:=VAR20 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);
VAR22:=CLOSE/(EMA(EMA((CLOSE+LOW+HIGH)/3,3),26)*0.9)<0.95;
VAR23:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)<(-0.2245);
XG:VAR7 AND VAR17 AND VAR21 AND VAR22 AND VAR23;
{----------------- ------------------}