DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
XG:CROSS(DIFF,DEA) AND DEA>-1.0 AND DEA<0.5 AND CLOSE>REF(CLOSE,1) AND CLOSE>=MA(C,60)
投股 票网 www.tou18 .cn
[源码翻译]通达信软件动态翻译的结果
DIFF赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均
DEA赋值:DIFF的9日指数移动平均
MACD赋值:2*(DIFF-DEA)
输出XG:DIFF上穿DEA AND DEA>-1.0 AND DEA<0.5 AND 收盘价>1日前的收盘价 AND 收盘价>=收盘价的60日简单移动平均