N:=7;
M:=120;
VAR1:=MA((2*CLOSE+HIGH+LOW)/4,5);
VAR3:=VAR1*(200-N)/100;
VAR4:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
VAR5:=DMA(CLOSE,VAR4);
VAR7:=(1-M/100)*VAR5;
VAR8:=(HIGH+LOW+CLOSE)/3;
VAR9:=(VAR8-MA(VAR8,10))/(0.015*AVEDEV(VAR8,10));
VAR10:=CLOSE>REF(CLOSE,1);
VAR11:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR12:=SMA(VAR11,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=3*VAR12-2*VAR13;
VAR15:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
VAR16:=HIGH-REF(HIGH,1);
VAR17:=REF(LOW,1)-LOW;
VAR18:=EXPMEMA(IF(VAR16>0 AND VAR16>VAR17,VAR16,0),14);
VAR19:=EXPMEMA(IF(VAR17>0 AND VAR17>VAR16,VAR17,0),14);
VAR20:=VAR18*100/VAR15;
VAR21:=VAR19*100/VAR15;
VAR22:=EXPMEMA(ABS(VAR21-VAR20)/(VAR21+VAR20)*100,6);
VAR24:=VAR21>VAR20;
VAR25:=CLOSE>REF(OPEN,1);
VAR26:=(OPEN+HIGH+LOW+CLOSE)/4;
VAR27:=IF(BETWEEN(CLOSE,VAR26,HIGH) OR CLOSE=OPEN,VOL,0);
VAR28:=IF(BETWEEN(CLOSE,VAR26,LOW),VOL,0);
VAR29:=IF(VAR27 AND VAR28,0,VOL/3);
VAR30:=10*(VAR27-(VAR28+VAR29))/IF(CAPITAL<1,SUM(VOL,13),CAPITAL);
VAR35:=VAR30>=0;
VAR36:=VAR22>=60;
XG:CROSS(CLOSE,VAR7) OR CLOSE>VAR7 OR CROSS(CLOSE,VAR3) AND CROSS(VAR9,(-100)) AND VAR10 AND VAR14>0 AND VAR24 AND VAR25 AND VAR35 AND VAR36;