炒股一定要學(xué)萬無一失的買入法,這樣才能減小風(fēng)險,將自己的利益最大化。接下來給大家分享一些實用的MACD選股公式,學(xué)懂會用能達到萬無一失。 MACD形態(tài)選股一: 佛手向上 {佛手向上}源碼: DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA := EMA(DIFF,9); MACD := 2*(DIFF-DEA); vv:=CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) and MA(CLOSE,10)>MA(CLOSE,30) and DIFF>DEA AND MACD>REF(MACD,1) and DIFF>0 AND DEA>0 and MA(VOL,5)>MA(VOL,34) and MA(CLOSE,30)>=REF(MA(CLOSE,30),1); xg選股:if(vv,1,0); 設(shè)計思路:
附加一個完整的MACD佛手向上公式源碼: DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26); DIF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORRED; DEA:EMA(DIF,9),COLORYELLOW; MACD:2*(DIF-DEA),COLORSTICK; FH1:=REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4); FH2:=MACD>=0 AND COUNT(MACD>REF(MACD,1),1)=1; FH3:=FH1 AND FH2 AND EMA(C,13)>REF(EMA(C,13),1); FH4:=FH1 AND FH2 AND ABS((DIF-DEA)/C)<0.018; FH5:=FH1 AND FH2 AND MACD<0.10; VV:=CLOSE>OPEN AND MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,30) AND DIFF>DEA AND MACD>REF(MACD,1) AND DIFF>0 AND DEA>0 AND MA(VOL,5)>MA(VOL,34) AND MA(CLOSE,30)>=REF(MA(CLOSE,30),1); 佛手:IF(VV,1,0),NODRAW; DRAWICON(佛手,0.06,11); 二次翻紅:(FH3 OR FH4 OR FH5),COLORRED,NODRAW; 低買:CROSS(DIF,DEA) AND DIF<0,COLORFF00FF,NODRAW; 加油:CROSS(DIF,DEA) AND DIF>0,COLORYELLOW,NODRAW; DRAWICON(二次翻紅,-0.05,1); DRAWTEXT(二次翻紅,-0.15,*↖翻紅*),COLORRED; DRAWTEXT(CROSS(DIF,DEA) AND DIF<0,DEA-0.02,*↖低買*),COLORFF00FF; DRAWTEXT(CROSS(DIF,DEA) AND DIF>0,DEA-0.05,*↖加油*),COLORYELLOW; XG:二次翻紅 OR 低買 OR 加油,NODRAW; YLZC:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100); 阻價:=IF(CLOSE=INDEXC,YLZC+INDEXC-INDEXL,YLZC+(CLOSE-LOW)); 支價:=IF(CLOSE=INDEXC,INDEXL+INDEXC-YLZC,LOW+(CLOSE-YLZC)); 今壓:REF(阻價,1),LINETHICK0,COLORAA11BB,NODRAW; 今撐:REF(支價,1),LINETHICK0,COLOR009900,NODRAW; 明壓:阻價,LINETHICK0,NODRAW; 明撐:支價,LINETHICK0,NODRAW; MACD形態(tài)選股二:小鴨出水 {小鴨出水]選股---一波剛剛開動!}源碼: DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA := EMA(DIFF,9);{參數(shù)自己可隨意調(diào)整設(shè)置} MA(C,30)>=REF(MA(C,30),1) AND DIFF<0 AND DEA<0 AND CROSS(DIFF,DEA) AND MA(C,5)>MA(C,10) AND MA(V,5)>MA(V,34); 選股思路:
買入方法:小鴨出水信號出現(xiàn)之后,股票的30日均線走平或者上揚,5日均線金叉10日均線,5日均量線大于34天均量線,是買入點。 選出個股后,可以根據(jù)以下條件進行精選: (1)MACD二次金叉與上一次死叉所間隔的時間越長越好。時間太短容易形成假金叉信號,間隔時間較長效果較好。 (2)MACD與股價形成底明顯背離則后期 止損方法: 任何選股方法都有一定的成功概率,所以在運用任何一種選股方案進行選股時,一定要明白它的止損方法?!靶▲喅鏊钡闹箵p方法就是當(dāng)收盤價有效跌破選出當(dāng)天的最低價時就要止損出局。 最后,貢獻幾個60分鐘macd金叉選股公式, 1、0軸上方第一次金叉選股公式: DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA := EMA(DIFF,9);MACD := 2*(DIFF-DEA);select:cross(diff,dea) and dea>-1.0 and dea<0.5 and CLOSE>ref(CLOSE,1) and CLOSE>=ma(c,60); 或: DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); XG:DIF>0 AND DEA>0 AND CROSS(DIF,DEA); 2、0軸上方二次金叉的選股公式: JC:IF(SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0)-HHV(IF(IF(CROSS(MACD.DEA,0),1,0),SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0),0),0)=2 AND SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0)>REF(SUM(IF(MACD>0 AND CROSS(MACD.DIF,MACD.DEA),1,0),0),1),10,0); 3、0軸下方一次金叉的選股公式: DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9),COLORFFFF00; MACD:=(DIFF-DEA)*2; 低位金叉:CROSS(DIFF,DEA) AND DIFF<-0.1; 4、0軸下方二次金叉且第二次金叉高于第一次金叉: DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); AA:=BARSLAST(REF(CROSS(DIF,DEA),1)); 二次金叉:CROSS(DIF,DEA) AND DIF>REF(DIF,AA+1) AND AA<20 AND DIF<0; 5、0軸下方二次金叉選股公式: DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {選股設(shè)JC=10即可} DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA),COLORSTICK; A:=IF(CROSS(0,DEA),1,0); A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0); SS:=IF(A,SUM(A1,0),0); SSB:=HHV(SS,0); SSS:=SUM(A1,0); JC:IF(SSS-SSB=2 AND SSS>REF(SSS,1),10,0); 金叉并非萬能,有時剛剛進入金叉或準(zhǔn)金叉狀態(tài),也可能是上一波反彈的結(jié)束,下一波下跌的開始。只有當(dāng)金叉周期的前后周期均為上漲趨勢,金叉的威力才最大。業(yè)績的持續(xù)增長才是技術(shù)指標(biāo)的前提和保證。 |
|