DIFF: EMA(CLOSE,12) - EMA(CLOSE,26);DEA: EMA(DIFF,9);GJ:=MAX(C,O);L4:=LLV(GJ,4);JL:=(HHV(DIFF,55)-LLV(DIFF,55))/5;GT:=DEA>REF(DEA,1) AND REF(DEA,1)<REF(DEA,2);A1:=BARSLAST(REF(GT,1));底背离:=REF(L4,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND GT;DRAWLINE(A1=0,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;DRAWLINE(底背离,DEA,底背离,REF(DEA,A1),0),colorred,LINETHICK2;H4:=HHV(GJ,4);GT2:=DEA<REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);A2:=BARSLAST(REF(GT2,1));顶背离:= REF(H4,A2+1)<H4 AND DIFF<REF(DIFF,A2+1) AND GT2;DRAWLINE(A2=0 ,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;DRAWLINE(顶背离,DEA,顶背离,REF(DEA,A2),0),colorgreen,LINETHICK2;A12:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离2:=REF(CLOSE,A12+1)>CLOSE AND DIFF>REF(DIFF,A12+1) AND CROSS(DIFF,DEA);STICKLINE(底背离2,0,0.03,6,0),COLOR00FF00;底背:DRAWLINE(A1=0,DEA,底背离2,DEA,0),colorred,LINETHICK2;A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离2:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);顶背:DRAWLINE(A2=0,DEA,顶背离2,DEA,0),colorgreen,LINETHICK2;VAR1:=(H+L)/2;AO:=SMA(VAR1,5,1)-SMA(VAR1,34,1),LINETHICK0;AC:SMA((AO-SMA(AO,5,1)),5,1),COLOR6699CC,DOTLINE;STICKLINE(AC>=REF(AC,1),0,AC,6,1),COLOR000080,LINETHICK1;STICKLINE(AC<=REF(AC,1),0,AC,6,1),colorgray;AC,colorgray,LINETHICK2;B:=ZIG(3,15/5)*100,colorwhite;G:=MA(B,2),coloryellow;D:=CROSS(B,G)*1000,colorred;W:=CROSS(G,B)*1000,colorblue;STICKLINE(MACD>0,0.000001,0.000003,15,0),colorred,,LINETHICK2;STICKLINE(MACD<0,0.000001,0.000003,15,0),colorblue,LINETHICK2;