N:=20;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
V1:=C>REF(C,1)*1.04 AND C>0;
DIF>0 AND ABS(MACD)<0.01 AND V>MA(V,N) AND C>=REF(C,BARSLAST(V1)) ;
[股票基础知识]通达信MACD零轴上金叉选股指标公式
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。
N:=20;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
V1:=C>REF(C,1)*1.04 AND C>0;
DIF>0 AND ABS(MACD)<0.01 AND V>MA(V,N) AND C>=REF(C,BARSLAST(V1)) ;