DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA); XX:=REF(MACD,1) REF(MACD,2) AND MACD =0 AND MACD REF(MACD,1); XG:ABS(C-MA(C,43))/MA(C,43) 0.01 AND XX;