MACD选股技巧:
1、20日均线有下跌变为走平或者向上抬头,5日均线、10均线、20日均线刚好多头排列,macd指标处于0轴之上或者形成金叉以及拐头向上,则可以大胆买入。
2、股价在均线上方运行,macd由空头趋势转向多头,红柱还是慢慢增加;红烛的稳定的上涨表明股票上涨强度大。
3、DIFF和DEA经过一段时间横向粘合后向上开口发散,为买入信号。此形态是MACD最经典的实战技法,一旦形成,通常都会有一段很好的涨幅,而且粘合时间愈长,后市爆发力度愈强。
4、股价上涨开始缓慢,macd开始拐头且红柱开始减短,股价开始步入调整趋势,应该出局或者减仓。
下面给大家分享一下MACD指标的选股技巧:
上次笔者给股友们分享一个短线MACD指标,有股友问到笔者 ,咨询有没有把MACD与KDJ结合在一个幅图中使用的指标,今天就把MACD与KDJ指标完美地结合在一起的金叉共振指标公式分享给大家,笔者先为大家展示这两大指标双剑合璧后的使用效果,之后为需要金叉共振指标的股友附上源代码。
两大指标结合K线图使用,是不是有一种裸K线就可以玩转股市的感觉,这种软件自带的指标,更适合喜欢追求大道至简的股友,简简单单的K线图,完美地结合MACD指标与KDJ指标,看图效果一目了然。下面阁主为需要本指标的股友附上源代码。
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DEA,2);
IF(DIF<DEA,DIF,DRAWNULL),COLORGREEN;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
顶背离:=(DD AND EE AND DEA< HHV(DEA,180))*DEA;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
{顶背:=REF(CLOSE,A2+1)<CLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF);}
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORRED,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,9,3),COLORYELLOW;
D:SMA(K,9,3),COLORWHITE;
J:3*K-2*D,COLORMAGENTA;
IF(J<D,J,DRAWNULL),COLORFFEE44;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIF,A1+1)<DIF AND CROSS(DIF,DEA);
A22:=BARSLAST(REF(CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3)),1));
B2:=REF(C,A22+1)>C AND REF(“KDJ.K”(9,3,3),A22+1)<“KDJ.K”(9,3,3) AND CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3));
A3:=BARSLAST(REF(CROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF(“RSI.RSI1″(6,12,24),A3+1)<“RSI.RSI1″(6,12,24) AND CROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24));
DRAWTEXT(B1,DEA-0.20,▲MACD底背),COLORWHITE;
DRAWTEXT(B2,D-0.20,●KDJ底背),COLORFF00FF;
{DJ:=CROSS(J,D) AND D<20;
DRAWTEXT(DJ,J-0.3,低金叉),COLORCYAN;
MDJ:=CROSS(DIF,DEA) AND DEA<0;
DRAWTEXT(MDJ,DEA-0.3,低金叉),COLORGREEN;
DRAWTEXT(CROSS(DEA,DIF),DIF+0.3,死叉),COLORYELLOW;
DRAWTEXT(CROSS(D,J),J+0.3,死叉),COLORRED;}
A:=CROSS(DIF,DEA) AND CROSS(K,D) AND CROSS(J,D);
DRAWICON(A,LOW*0.98,1);
B4:CROSS(DIF,DEA) AND CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3));
DRAWTEXT(B4,L-0.20,★金叉共振),COLOR0099FF;
DRAWICON(CROSS(K,D),D,1);
DRAWICON(CROSS(D,K),D,2);
BA:=DEA>REF(DEA,1);
BB:=SUM(BA,5)>=4;
BC:=C<O;
BD:=SUM(BC,5)>=2;
BXG:FILTER(BB AND BD AND J>REF(J,1) AND REF(J,1)<REF(J,2),3);
STICKLINE(BXG,HHV(J,60),HHV(J,60)-20,1,0),COLORRED;
SS:=EMA(C,11);
LL:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,5))/4;
{短:EMA(LL,2),COLORGREEN,LINETHICK2;}
{长:EMA(SS,2),COLORMAGENTA,LINETHICK2;}
AA:=(C-LLV(C,10))/(HHV(C,10)-LLV(C,10));
(CROSS(AA,0.05)-1);