VAR1:=EMA(CLOSE,21);
VAR2:=EMA(CLOSE,30);
VAR3:=EMA(CLOSE,35);
VAR4:=EMA(CLOSE,40);
VAR5:=EMA(CLOSE,45);
VAR6:=EMA(CLOSE,90);
VAR7:=EMA(CLOSE,98);
VAR8:=EMA(CLOSE,106);
VAR9:=EMA(CLOSE,114);
VAR10:=EMA(CLOSE,140);
VAR11:=EMA(CLOSE,148);
VAR12:=EMA(CLOSE,156);
VAR13:=EMA(CLOSE,164);
VAR14:=MAX(MAX(MAX(VAR2,VAR3),VAR4),VAR5);
VAR15:=MAX(VAR1,VAR14);
VAR16:=MIN(MIN(MIN(VAR2,VAR3),VAR4),VAR5);
VAR17:=MAX(MAX(MAX(VAR6,VAR7),VAR7),VAR9);
VAR18:=MIN(MIN(MIN(VAR6,VAR7),VAR8),VAR9);
VAR19:=MAX(MAX(MAX(VAR10,VAR11),VAR12),VAR13);
VAR20:=MIN(MIN(MIN(VAR10,VAR11),VAR12),VAR13);
VAR21:=MAX(MAX(VAR14,VAR17),VAR19);
VAR22:=MIN(MIN(VAR16,VAR18),VAR20);
VAR23:=VAR21/VAR22;
VAR24:=VAR20/REF(VAR20,100);
VAR25:=(CLOSE/REF(CLOSE,1)-1)*100;
VAR26:=FORCAST(EMA(CLOSE,9),7);
VAR27:=FORCAST(EMA(CLOSE,17),7);
VAR28:=FORCAST(EMA(CLOSE,25),7);
VAR29:=MAX(MAX(VAR26,VAR27),VAR28);
VAR30:=MIN(MIN(VAR26,VAR27),VAR28);
VAR31:=OPEN<=VAR30 AND CLOSE>=VAR29;
XG:REF(VAR31,1)=1 AND VAR25>涨幅 AND VAR23<1.21;