SQX:=(C-MA(CLOSE,13))*100;
: Z9 s- A) E" k. T" C! FDIFF:EMA(MA(SQX,7),1),COLORWHITE;
0 Z1 U* F5 y$ @( g2 p/ \DEA:EMA(DIFF,7),COLORYELLOW;
; x# V+ A2 b" q9 |6 H( L$ l }MACDDIFF-DEA)*2,COLORSTICK;( { Y( h5 r& K# s) f
PARTLINE(15,CROSS(DIFF,DEA) AND DIFFCLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA),40,0),COLORRED,LINETHICK0;
( V8 l9 K4 A$ C9 o Y" M% m势: DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORGREEN;{,COLORRED;}
- P1 J& O+ N6 Z0 a3 ^1 v( z% IA2:=BARSLAST(REF(CROSS(DEA,DIFF),1));6 ~0 j$ K3 x3 N/ Y4 ^
顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);, w* {. ^" M6 I: }+ q1 }; W
PARTLINE(66,REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF)),COLORF08000,LINETHICK4,CROSSDOT;
4 U }; A$ U! ^1 ?4 @6 S" Q顶背离_:IF(REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF),66,0),COLORF08000,LINETHICK0;
7 p1 f, d3 |8 Q8 S& C2 k$ i2 m压: DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORFFBB99;
8 E2 q, e" X8 b0 ]' b5 sA3:=CROSS(DIFF,DEA) AND DEA |