MACD选股公式:二次金叉,二次翻红,DIF下破0轴及0轴附近金叉

[复制链接]
查看38 | 回复0 | 2022-7-24 06:50:14 | 显示全部楼层 |阅读模式

分别是:MACD选股公式---二次金叉,二次翻红,DIF下破0轴及0轴附近金叉。
 使用他们,再结合这价格,形态,,还怕没有好股,可挑吗?你懂的!

 (1)二次金叉:

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIFF,9);
 MACD:=2*(DIFF-DEA);
 JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

 

 

(2)二次翻红:

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIFF,9);
 MACD:=2*(DIFF-DEA);
 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((DIFF-DEA)/C)<0.018;
 FH5:=FH1 AND FH2 AND MACD<0.10;
 FH3 OR FH4 OR FH5;

 

 

(3)DIF下破0轴:

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

 DEA:=EMA(DIFF,9);

 MACD:=2*(DIFF-DEA);

均线向上:=EMA(C,144)>=REF(EMA(C,144),1) AND  EMA(C,233)>=REF(EMA(C,233),1);

破0轴:均线向上 AND REF(DIFF,1)>0 AND DIFF<0;

 

 

(4)0轴附近金叉(特别是0轴之上):

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
 DEA:=EMA(DIF,9),LINETHICK1;
 CROSS(DIF,DEA) AND DEA>-0.05;

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则