DIFF : EMA(CLOSE,5) - EMA(CLOSE,34),COLORRED,LINETHICK2;
DEA: EMA(DIFF,5),COLORWHITE;
O线:0,COLORWHITE;
MACD : 2*(DIFF-DEA),COLORSTICK;
STICKLINE(MACD REF(MACD,1)AND MACD 0,0,MACD,1,0),COLORLIGRAY;
STICKLINE(MACD REF(MACD,1)AND MACD 0,0,MACD,1,0),COLORWHITE;
DRAWICON(CROSS(DIFF,DEA) AND DIFF 0 ,DEA-0.01,1);
DRAWICON(CROSS(DIFF,DEA) AND DIFF =0,DEA-0.01,1);
DRAWICON(CROSS(DEA,DIFF) AND DIFF =0 ,DEA-0.01,2);
鹰击:EMA(DIFF,50),COLORLIBLUE,LINETHICK2;
IF(DIFF =REF(DIFF,1),DIFF,DRAWNULL),COLORFF8000,LINETHICK2;
IF(DEA =REF(DEA,1),DEA,DRAWNULL),COLORGREEN,LINETHICK2;
IF(鹰击 =REF(鹰击,1),鹰击,DRAWNULL),COLORFF8000,LINETHICK2;