VAR1:=EMA(CLOSE,24);
LD:=EMA(VAR1*0.8,5);
TJ2:=COUNT(O=C AND (REF(C,1)-C)/REF(C,1)>0.098,13);
TJ1:=(REF(LD,1)>REF(C,1) AND C>LD AND C>REF(C,1)*1.02 AND TJ2<1) ;
XG:FILTER(TJ1,3);
VAR1:=EMA(CLOSE,24);
LD:=EMA(VAR1*0.8,5);
TJ2:=COUNT(O=C AND (REF(C,1)-C)/REF(C,1)>0.098,13);
TJ1:=(REF(LD,1)>REF(C,1) AND C>LD AND C>REF(C,1)*1.02 AND TJ2<1) ;
XG:FILTER(TJ1,3);