AJ:= cross (MACD. MACD DIF。 DEA);
A:=AS or aj;
TS:= bars last(A);
A 1:=AJ and MACD. DIF<0 and REF(REF(A, TS)= 1 and REF(AS, TS) and REF(MACD. DIF,TS)>=0, 1);
TS2:= bars last(a 1);
FILTER(REF(A 1, TS2)= 1 and AJ and a1<; 1 and MACD. DIF<0, 100);