{海浪MACD 建仓拉升出货过程及逃顶抄底关键点位都易把握吧
DIFF:(EMA(CLOSE,3) - EMA(CLOSE,13)),COLORBLUE,LINETHICK3;
DEA:EMA(DIFF,9),COLORBLUE,LINETHICK2;
MACD:0.9*(DIFF-DEA),LINESTICK,COLOR443434,LINETHICK7;
IF(DIFF<0,DIFF,0),COLORF00FF0 ,LINETHICK2;
IF(DIFF<0,DIFF,0),LINESTICK,COLORF00FF0 ,LINETHICK1;
IF(DIFF<0,0,DIFF),POINTDOT,COLORWHITE,LINETHICK8;
IF(DIFF<0,0,DIFF),COLORWHITE,LINETHICK2;
IF(DIFF<0,0,DIFF),LINESTICK,COLORWHITE,LINETHICK1;
IF(DIFF<DEA,DIFF,DEA),COLORBLUE,LINETHICK2;
IF(DIFF<DEA,DIFF,DEA),LINESTICK,COLORBLUE,LINETHICK1;
IF(DIFF>DEA,DEA,DEA),COLORYELLOW,LINETHICK1;
IF((DIFF>DEA,DEA,DEA)>REF((DIFF>DEA,DEA,DEA),1),(DIFF>DEA,DEA,DEA),DRAWNULL),COLORCYAN,LINETHICK5;
IF(DIFF>DEA,DEA,DEA),LINESTICK,COLORCYAN,LINETHICK1;
VAR5:=ZIG(3,5);
ENTERLONG:REF(VAR5,2)>REF(VAR5,1) AND VAR5>REF(VAR5,1),LINETHICK1,COLOR443434;
EXITLONG:REF(VAR5,2) <REF(VAR5,1) AND VAR5<REF(VAR5,1),LINETHICK1,COLOR443434;