一、MACD底背离可靠买点
1、底背离产生之后的第一个金叉为最佳买点(macd面积背离)
2、前提条件:第一个macd涨幅动能要充足,这样成功率高
DIFF:EMACLOSE,12)-EMACLOSE,26); DEA:EMADIFF,9); MACD:2*DIFF-DEA), COLORSTICK,LINETHICK2; 低位金叉:=CROSSDIFF,DEA) AND DIFF<-0.1; STICKLINE低位金叉,0,0.08,6,0),COLORYELLOW; JCCOUNT:=COUNTCROSSDIFF,DEA),BARSLASTDEA>=0)); 二次金叉:=CROSSDIFF,DEA) AND DEA<0 AND COUNTJCCOUNT=2,21)=1; STICKLINE二次金叉,0,0.06,6,0),COLORFF00FF; DRAWICON二次金叉,DEA*0.9,1) ; DRAWTEXT二次金叉,0.25,' 二次金叉'),COLORYELLOW; A1:=BARSLASTREFCROSSDIFF,DEA),1)); 底背离:=REFCLOSE,A1+1)>CLOSE AND DIFF>REFDIFF,A1+1) AND CROSSDIFF,DEA); STICKLINE底背离,0,0.03,6,0),COLOR00FF00; 底背:DRAWLINEA1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4; DRAWTEXT底背离,0.12,' 底背离'),COLORFF00FF; A2:=BARSLASTREFCROSSDEA,DIFF),1)); 顶背离:=REFCLOSE,A2+1)<CLOSE AND REFDIFF,A2+1)>DIFF AND CROSSDEA,DIFF);
2、MACD标准背驰选股公式:
DIFF:=EMACLOSE,12)-EMACLOSE,26); DEA:=EMADIFF,9); MACD:=2*DIFF-DEA); A1:=BARSLASTREFCROSSDIFF,DEA),1)); 底背离:REFCLOSE,A1+1)>CLOSE AND DIFF>REFDIFF,A1+1) AND CROSSDIFF,DEA);
3、MACD标准背驰选股公式
DIF:=EMACLOSE,12)-EMACLOSE,26); DEA:=EMADIF,9); MACD0:=DIF-DEA)*2; MJ:=MACD0; S05:=SUMMJ,0); QST:=BARSLASTMJ<0 AND REFMJ,1)>0)+1; QXT:=BARSLASTMJ>0 AND REFMJ,1)<0)+1; S5:=IFMJ>0,S05-REFS05,BARSLASTMJ<0)),S05-REFS05,BARSLASTMJ>0)))/10; ST:=IFMJ>0,REFQST,QXT)+QXT,REFQXT,QST)+QST); RS5:=REFS5,ST); BC:IFMJ>0 AND S5<RS5,0,IFMJ<0 AND S5>RS5 AND DEA<0,1,0));