改进的macd选股指标源码(MACD看透主力指标源码)
本文目录一览:
求MACD选股指标编程
{第一个}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:REF(MACD,2)REF(MACD,1) AND REF(MACD,1)0 AND MACDREF(MACD,1) AND MACD0;
{第二个}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG:REF(MACD,2)REF(MACD,1) AND REF(MACD,1)0 AND MACDREF(MACD,1) AND MACD0;
{第三个}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
XG: REF(MACD,2)REF(MACD,1) AND REF(MACD,1)0 AND MACDREF(MACD,1);
测试通过,
希望能够帮助你!
编写一个通达信选股公式,MACD周线金叉
选股公式如下,选股周期选择周线,
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
XG:BARSLAST(CROSS(DIF,DEA))0 AND DIFDEA;
帮忙编一个有关利用MACD选股指标
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
选股:count(macdref(macd,1),7)=5 and count(macd0,7)=7 and macdref(macd,1) and ref(macd,1)=0.3;
求macd指标diff等于dea的条件选股源码?
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
SELECT:DIFF =DEA