VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=CROSS(VAR4,VAR2);
VAR6:=MA(CLOSE,5);
VAR7:=(CLOSE-VAR6)/VAR6*100;
VAR8:=ATAN((VAR6/REF(VAR6,1)-1)*100)*180/3.1416;
VAR9:=SMA(EMA((VAR6-REF(VAR6,1))/REF(VAR6,1),3)*100,3,1);
VAR10:=EMA(VAR9-REF(VAR9,1),3);
VAR11:=MA(CLOSE,10);
VAR12:=MA(CLOSE,20);
VAR13:=ATAN((VAR11/REF(VAR11,1)-1)*100)*180/3.1416;
VAR14:=MA(CLOSE,30);{}
VAR15:=(CLOSE-VAR14)/VAR14*100;
VAR16:=ATAN((VAR14/REF(VAR14,1)-1)*100)*180/3.1416;
VAR17:=FILTER(VAR16>30 AND VAR13>45 AND CROSS(VAR8,60),10);
VAR18:=FILTER(COUNT(CROSS(VAR8,30),5)>=1 AND VAR6>REF(VAR6,1) AND VAR15>REF(VAR15,1) AND VAR11>REF(VAR11,1) AND VAR10>REF(VAR10,1) AND VAR9>REF(VAR9,1),10);
VAR19:=COUNT(CROSS(VAR7,0),3)>=1 AND VAR15>REF(VAR15,1) AND VAR6>REF(VAR6,1) AND (CLOSE/REF(CLOSE,1)-1)*100>5 AND REF(CLOSE,1)<VAR14;
VAR20:=MAX(MAX(MA(CLOSE,3),MA(CLOSE,7)),MA(CLOSE,17))>=MA(CLOSE,7) AND MAX(MAX(MA(CLOSE,3),MA(CLOSE,7)),MA(CLOSE,17))/MIN(MIN(MA(CLOSE,3),MA(CLOSE,7)),MA(CLOSE,17))<=1.15 AND EVERY(MA(CLOSE,17)>=REF(MA(CLOSE,17),1),3);
VAR21:=EVERY(EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)>=REF(EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),1),2);
VAR22:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
B:(VAR19 AND VAR20)*10 AND VAR22<=5 AND VAR5;