大道至简MACD
2016-5-16 16:01:22点击:
MACD指标说明
MACD指数平滑异同移动平均线为两条长、短的平滑平均线。
其买卖原则为:
1.DIFF、DEA均为正,DIFF向上突破DEA,买入信号参考。
2.DIFF、DEA均为负,DIFF向下跌破DEA,卖出信号参考。
3.DEA线与K线发生背离,行情可能出现反转信号。
4.分析MACD柱状线,由红变绿(正变负),卖出信号参考;由绿变红,买入信号参考。
DIFF : EMA(CLOSE,short) - EMA(CLOSE,Long);
DEA : EMA(DIFF,m);
MACD : 2*(DIFF-DEA),nodraw;
配合选股主升浪MACD必须大于零: 0,nodraw;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,6,0),color0000ff;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,6,0),color00bb00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,6,0),colorff00ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,6,0),color00ff00;
低吸:MACD<0 AND MACD>=REF(MACD,1) AND REF(MACD,2)>REF(MACD,1) AND O>=REF(C,1),nodraw;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND O>REF(C,1) AND REF(C,1)>REF(O,1) AND REF(C,1)>=C AND REF(C,1)*0.91>REF(C,2),MACD*0.5,MACD,6,0),colorcyan;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND O>REF(C,1) AND REF(C,1)>REF(O,1) AND REF(C,1)*1.03<REF(H,1) AND C<O,MACD*0.5,MACD,6,0),colorcyan;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND O<REF(C,1) AND REF(C,1)>REF(O,1) AND C<O,MACD*0.5,MACD,6,0),colorcyan;
STICKLINE(MACD>0 AND MACD>=REF(MACD,1) AND O<REF(C,1) AND REF(C,1)>REF(O,1) AND H>REF(H,1) AND C<O,MACD*0.5,MACD,6,0),colorcyan;
买进:MACD>0 AND MACD>=REF(MACD,1) AND REF(MACD,2)>REF(MACD,1),nodraw;
DRAWICON (买进 ,MACD*-1,1);