DIFF:EMA(DCLOSE,12)-EMA(CLOSE,26),COLORBLUE,LINETHICK1.5;
3 d3 ~' O- |4 P' I, F+ ^; O2 \DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK1.5;/ d0 \8 i, Z0 K( k$ r
MACDDIFF-DEA)*2,COLORSTICK;. |0 i( w+ L1 t2 r9 S
低位金:=CROSS(DIFF,DEA) AND DIFF=0));
) y0 |- v9 Y7 ?. A' B. w二次金:=CROSS(DIFF,DEA) AND DEACLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
& F T* T) e, c5 C2 t; Y! _' hSTICKLINE(底背离,0,0.05,8,0),,COLORFF00FF;
- j" P* a3 v# c( Y$ V% S' w) mDRAWLINE(A1=0,DEA,底背离,DEA,0),COLORFF00FF,LINETHICK2;2 U+ b G! B# @' W" h
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));. F1 z& h5 ^, m& x! ~
顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);
- Z- I# H3 p: m: F: m0 NDRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;
) k4 g Q) w* M: m7 @强:IF(DIFF>=DEA,DIFF,DRAWNULL),COLORRED,LINETHICK2; |