MACD上次金叉DIFF<0,这次金叉DIFF>0选股公式
-
相关简介:编写要求: www.guhai.com.cn 股海网解答: 网友求助: 平时的MACD代码是 DIFF : EMA(CLOSE,12) - EMA(CLOSE,26); DEA : EMA(DIFF,9); MACD : 2*(DIFF-DEA); 还请高手帮我编写这样一个MACD组合选股公式,上次金叉DIFF0,这次金叉DIFF0,在第二次金叉那天选出来 如图: 解答如下: DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA := EMA(DIFF,9)
-
文章来源:股海网作者:股海网发布时间:2015-08-04浏览次数:
编写要求:
www.guhai.com.cn股海网解答:
网友求助:
平时的MACD代码是
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA);
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA);
还请高手帮我编写这样一个MACD组合选股公式,上次金叉DIFF<0,这次金叉DIFF>0,在第二次金叉那天选出来
如图:
解答如下:
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
zg:CROSS(diff,dea) AND dea>0 AND BARSLAST(CROSS(diff,dea) AND dea<0);
DEA := EMA(DIFF,9);
zg:CROSS(diff,dea) AND dea>0 AND BARSLAST(CROSS(diff,dea) AND dea<0);
上一篇:用KDJ指标写一个选股公式
下一篇:买入分笔最大量指标