手机端
当前位置:爱约股 > 公式技巧 > 同花顺macd指标0轴上粘合DIFF与DEA差小于0.1选股公式

同花顺macd指标0轴上粘合DIFF与DEA差小于0.1选股公式

 网友求助:

请老师帮忙写一个同花顺:macd指标0轴上粘合大于5天,DIFF与DEA差小于0.1的选股公式,谢谢

 

解答如下:

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
XG:COUNT(DEA>0 AND DIFF>0 AND MAX(DIFF,DEA)/MIN(DIFF,DEA)<1.15,5)=5;
===============
{下面这个按照你的要求写的}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
XG:COUNT(DEA>0 AND DIFF>0 AND (DIFF-DEA)<0.1,5)=5;

分享至:

相关推荐