MACD金叉公式
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 现在这个公式只能选出当天收盘后二次金叉的股票,以前出现的不能选出,请老师给改成只要10天之内出现过的都能选出,谢谢。 原公式: DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); 低位金叉:=CROSS(DIFF,DEA) AND DIFF-0.1; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(
-
文章来源:股海网作者:股海网发布时间:2015-06-19浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
现在这个公式只能选出当天收盘后二次金叉的股票,以前出现的不能选出,请老师给改成只要10天之内出现过的都能选出,谢谢。
原公式:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,13)=1;
原公式:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,13)=1;
解答如下:
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
COUNT(低位金叉,10)>=1;
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
COUNT(低位金叉,10)>=1;
上一篇:量比指标拐头向上公式
下一篇:60个交易日内地量选股