VAR1:=AMOUNT/VOL/100;
VAR2:=REF(CLOSE,1);
VAR3:=IF(REF(CLOSE,1)*1.1-CLOSE<0.01,1,0);
VAR4:=MA(CLOSE,13);
VAR5:=MA(CLOSE,21);
VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR7:=REF(CLOSE,1);
VAR8:=SMA(MAX(CLOSE-VAR7,0),2,1)/SMA(ABS(CLOSE-VAR7),2,1)*100;
VAR9:=SMA(MAX(CLOSE-VAR7,0),14,1)/SMA(ABS(CLOSE-VAR7),14,1)*100;
VAR10:=45;
VAR11:=50;
VAR12:=80;
VAR13:=20;
VAR14:=5;
VAR15:=VAR8<VAR11 AND REF(VAR8,1)>VAR11;
VAR16:=VAR8<VAR10 AND REF(VAR8,1)>VAR10;
VAR17:=VAR8<VAR13 AND REF(VAR8,1)>VAR13;
VAR18:=COUNT(VAR3,13)>=1;
VAR19:=IF(DATE<1220730 AND DATE>900101,1,0);
VAR20:=SMA(LOW,4,3);
VAR21:=IF(VAR20 AND REF(VAR16,1) AND VAR18 OR (VAR20 AND REF(VAR17,1) AND VAR18),1,0) AND CLOSE/REF(CLOSE,1)>1.07 AND MACD.MACD>0;
VAR22:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR23:=VAR21*VAR19;
BUYS:VAR21*VAR19 AND LOW<VAR22;