MACD金叉的選股公式大全

以下公式適合通達信股票軟件。選出股票後能否買入依然還要綜合參考大趨勢和其它指標。金叉並非萬能,有時剛剛進入金叉或準金叉狀態,也可能是上一波反彈的結束,下一波下跌的開始。隻有當金叉周期的前後周期均為上漲趨勢,金叉的威力才最大。 業績的持續增長才是技術指標的前提和保證。

1、0軸上方第一次金叉選股公式:

DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26);

DEA := EMA(DIFF,9);

MACD := 2*(DIFF-DEA);

xg: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);

{選股設JC=10即可}

3、0軸下方一次金叉的選股公式:

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA:=EMA(DIFF,9); 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);

{選股設JC=10即可} DEA:=EMA(DIFF,9);

MACD:=2*(DIFF-DEA);

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);

6、縮量橫盤突破選股:

WH01:=(HHV(C,10)-LLV(C,10))/LLV(C,10)*100<=10;

WH02:=SUM(VOL,10)/CAPITAL*100<45; WH03:=REF(WH01,1);

WH04:=HHVBARS(HIGH,55)>20 OR C=HHV(H,55);

WH05:=WH02 AND WH03 AND WH04 AND C>REF(HHV(H,10),1);

WH05 AND REF(NOT(WH05),1);

7、均線、KDJ、MACD金叉的預警選股公式 完全符合以下條件:

1、5日線上穿10日線 2、MACD金叉 3、KDJ金叉(KDJ數值由9、3、3調整為8、2、2) 4、成交量指標金叉

通達信預警選股公式

A1:=CROSS(MA(C,5),MA(C,10));

A2:=CROSS(MACD.DIF,MACD.DEA);

A3:=CROSS(KDJ.K(8,2,2),KDJ.D(8,2,2));

A4:=CROSS(MA(V,5),MA(V,10));

XG:A1 AND A2 AND A3 AND 4;

三金叉選股完整源碼,絕無未來函數 均線、成交量、MACD同時金叉

MA1:=MA(CLOSE,5);

MA2:=MA(CLOSE,10);

AA:=CROSS(MA1,MA2);

AAA:=COUNT(AA,3)>=1;

T1:=MA(VOL,5);

T2:=MA(VOL,10);

BB:=CROSS(T1,T2);

BBB:=COUNT(BB,3)>=1;

DIF:=EMA(CLOSE,12) – EMA(CLOSE,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

CC:=CROSS(DIF,DEA);

CCC:=COUNT(CC,3)>=1;

三金:=AAA AND BBB AND CCC;

三金叉:FILTER(三金,3),COLORFF00FF;

使用說明:該選股公式適合超級短線,快進快出具有一定的風險因素,此時的股價往往處於拉高拔升階段。要求使用者特別關註股價所處的位置,如果過於高位防止莊傢誘多。低位可大膽搏殺,短期回檔被套也有回旋餘地。

8、四線粘合

N1:=5;N2:=10;N3:=20;M:=1;

MA1:=MA(C,N1);

MA2:=MA(C,N2);

MA3:=MA(C,N3);

A3:=V>REF(V,1)*1.5 AND V>MA(V,5);

MAX(MA1,MAX(MA2,MA3))/MIN(MA1,MIN(MA2,MA3))<1+0.01*M AND C>O AND V> REF(V,1) AND FINANCE(7)<=300000000 AND A3 AND CAPITAL<=300000000;

9、均線粘合

M:=1;

M5:=MA(CLOSE,5);

M10:=MA(CLOSE,10);

M20:=MA(CLOSE,20);

K1:=MAX(MAX(M5,M10),MAX(M10,M20));

K2:=MIN(MIN(M5,M10),MIN(M10,M20));

A:=MAX(M5,MAX(M10,M20))/MIN(M5,MIN(M10,M20))<1+0.01*M;

A1:=(K1/K2-1)<0.005; A2:=(K1/K2-1)<0.005;

A3:=V>REF(V,1)*1.5 AND V>MA(V,5);

XG:A AND A1 AND A2 AND A3 ;

10、多線粘合

V0:=EMA(C,5);

V1:=EMA(C,10);

V2:=EMA(C,15);

V3:=EMA(C,30);

V4:=EMA(C,60);

M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975;

M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980;

M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985;

Leave a Comment

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *