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.kanguba. com
[源码翻译]通达信公式动态翻译显示
DIFFV赋值:不定周期收盘价的9日指数移动平均-不定周期收盘价的27日指数移动平均
DEAV赋值:DIFFV的5日指数移动平均
A1V赋值:DIFFV上穿DEAV
DB2赋值:A1V+1日前的收盘价>收盘价 AND DIFFV>A1V+1日前的DIFFV AND DIFFV上穿DEAV