VAR1:=(CLOSE-EMA(CLOSE,5))/EMA(CLOSE,5)*100;
VAR2:=(CLOSE-EMA(CLOSE,10))/EMA(CLOSE,10)*100;
VAR3:=(CLOSE-EMA(CLOSE,20))/EMA(CLOSE,20)*100;
VAR4:=(CLOSE-EMA(CLOSE,60))/EMA(CLOSE,60)*100;
VAR5:=(CLOSE-EMA(CLOSE,120))/EMA(CLOSE,120)*100;
VAR6:=VAR1>4 AND VAR2>6 AND VAR3>8 AND VAR4>10 AND VAR5>12;
VAR7:=AMOUNT/REF(AMOUNT,BARSLAST(CROSS(AMOUNT,REF(HHV(AMOUNT,30),1))));
VAR8:=REF(VAR7,1)>1 AND REF(VAR7,2)>1 AND REF(VAR7,3)>1;
VAR9:=CLOSE/REF(CLOSE,1)>1.01 OR CLOSE/OPEN>1.04;
VAR10:=EMA(CLOSE,5)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,20) AND EMA(CLOSE,5)>EMA(CLOSE,20);
VAR11:=VAR8 AND LOW<EMA(CLOSE,10) AND REF(EXIST(VAR6,5),1) AND VAR9 AND VAR10;
VAR12:=EXIST(AMOUNT/REF(AMOUNT,1)>1.1,3) OR CLOSE>EMA(CLOSE,10);
龙头回踩:FILTER(VAR11 AND VAR12,2);{};