VAR1:=EMA(HHV(HIGH,1),8);
VAR2:=EMA(CLOSE,8)<REF(EMA(CLOSE,8),1) AND CLOSE<EMA(CLOSE,8);
VAR3:=IF(VAR1<REF(VAR1,1) OR VAR2,1,0);
VAR4:=SMA(MAX(CLOSE-REF(CLOSE,1),0),2,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),2,1)*100;
VAR5:=VAR4<45 AND REF(VAR4,1)>45 AND ("MACD.DIF">0 OR "MACD.DIF"<0);
VAR6:=VAR4<20 AND REF(VAR4,1)>20;
VAR7:=(COUNT(VAR3=1,4)=3 AND VAR3=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.089)*10>=10 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.089 AND (REF(VAR6,1) OR REF(VAR5,1)));
VAR8:=MA(C,5);
VAR9:=MA(C,34);
VAR11:=(C-VAR8)/VAR8*100;
VAR12:=(C-VAR9)/VAR9*100;
MR:=COUNT(CROSS(VAR11,0),3)>=1 AND VAR12>REF(VAR12,1) AND VAR8>REF(VAR8,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA(C,30);
追风买入:FILTER(MR,10) AND VAR7;