SHORT:=12; LONG:=26; MID:=9; DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:=EMA(DIFF,MID); A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); 底背离:REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);