CD:=EMA(CLOSE,7);
VAR1:=EMA(CLOSE,21);
VAR2:=EMA(VAR1,7);
VAR3:=EMA(VAR2,27);
VAR4:=EMA(VAR1,100);
VAR5:=EMA(VAR4,100);
VAR6:=MA(CLOSE,5);
VAR7:=(((((CD > VAR1) AND (VAR1 > VAR2)) AND (VAR2 > VAR3)) AND (VAR3 > VAR4)) AND (VAR4 > VAR5));
VAR8:=(((((VAR1 > REF(VAR1,1)) AND (VAR2 > REF(VAR2,1))) AND (VAR3 > REF(VAR3,1))) AND (VAR4 > REF(VAR4,1))) AND (VAR5 > REF(VAR5,1)));
回补:FILTER((((VAR8 AND VAR7) AND (COUNT((CD < REF(CD,1)),5) > 2)) AND (CD > REF(CD,1))),3);