SQX:=(C-MA(CLOSE,13))*100;7 g% k1 P; F0 I7 c1 v' K! e
DIFF:EMA(MA(SQX,7),1),COLORWHITE;; d# N4 j: |" X/ m# c/ U
DEA:EMA(DIFF,7),COLORYELLOW;, W( _: U3 t0 I `7 f
MACDDIFF-DEA)*2,COLORSTICK;
8 M8 D7 A( D# k7 S8 w3 I# SPARTLINE(15,CROSS(DIFF,DEA) AND DIFFCLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,0),COLORRED,LINETHICK0;$ s S# c2 C# E; l; a
势: DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORGREEN;{,COLORRED;}5 J: F, O/ D1 U6 o0 ^6 v) h* t
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
7 D) r) V' D5 B+ p5 P% ^顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);+ p" p* f. W& b" z0 i! [' [& r1 x! r
PARTLINE(66,REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF)),COLORF08000,LINETHICK4,CROSSDOT;
8 K) n7 Z& [% t2 U6 y8 ~顶背离_:IF(REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF),66,0),COLORF08000,LINETHICK0;4 y) j/ G3 ]+ @1 A8 a* \' q. }
压: DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFFBB99;8 h( e) i% q7 @# t
A3:=CROSS(DIFF,DEA) AND DEA |