{红柱选股}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
红柱首次放长:=MACD>0 AND REF(MACD,1)<0;
XG:红柱首次放长 AND C>MA(C,60);
通达信指标修改成选股MACD相关
{粉柱选股}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
绿柱缩短:=MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);
XG:绿柱缩短 AND C>MA(C,60);
股票公式专家团为你解答,希望能帮到你,祝投资顺利。