DIFFV:=EMA(DCLOSE,9)-EMA(DCLOSE,27);
DEAV:=EMA(DIFFV,5);
A1V:=CROSS(DIFFV,DEAV);
DB2:=REF(CLOSE,A1V+1)>CLOSE AND DIFFV>REF(DIFFV,A1V+1) AND CROSS(DIFFV,DEAV);
DEA0:=EMA(DIFFV*100,9);
MACD0:=2*(DIFFV*100-DEA0);
HM:=(MACD0>REF(MACD0,1)*2.5 AND MACD0>15);
DB2 AND HM;
投 股票网 www.to u18.cn
[源码翻译]通达信软件动态翻译的结果
DIFFV赋值:不定周期收盘价的9日指数移动平均-不定周期收盘价的27日指数移动平均
DEAV赋值:DIFFV的5日指数移动平均
A1V赋值:DIFFV上穿DEAV
DB2赋值:A1V+1日前的收盘价>收盘价 AND DIFFV>A1V+1日前的DIFFV AND DIFFV上穿DEAV