MACD选股公式详解
MACD指标,想必大家都听说过,它是MA指标的延伸,位于技术图表最下方的幅图中。MACD由0轴、快慢线(12、26日均线)、红绿柱,三个部分构成,其优点是可以一眼看出当前市况(趋势、盘整)。重点来说一下MACD的选股公式。
MACD选股公式
(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<0AND COUNT(JCCOUNT=2,21)=1;
(2)二次翻红:
{二次翻红}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);[img]/666.gif[/img]
[img]/static/image/common/sigline.gif[/img]
[b][size=5][color=Red][url=/qvH5][color=DarkRed]内幕消息!实力机构操盘[/color][/url][/color][/size][/b][b][size=5][color=Blue][url=/ovH5]绝对给力!100%赚钱![/url][/color][/size][/b]
[size=3][color=Red][url=www.658899.com][color=Black]输入:585867.c o m[/color][/url][/color][/size][b][size=5][color=Blue][url=/nvH5][color=Blue]点击进入t.cn/aFChcr[/color][/url][/color][/size][/b]
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
FH1:=REF(MACD,1)
FH2:=MACD>=0AND COUNT(MACD>REF(MACD,1),1)=1;
FH3:=FH1AND FH2AND EMA(C,13)>REF(EMA(C,13),1);
FH4:=FH1AND FH2AND ABS(DIFF-DEA)/C)<0.018;
FH5:=FH1AND FH2AND MACD<0.10;
FH3OR FH4OR FH5;
(3)DIF下破0轴:
{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)>0AND DIFF<0;
(4)0轴附近金叉(特别是0轴之上):
{0轴附近金叉(特别是0轴之上)}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9),LINETHICK1;
CROSS(DIF,DEA)AND DEA>-0.05;