DIFF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
鹤谐大发:(CROSS(DIFF,DEA) AND DIFF<-0.1) OR (CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1);
看股吧公 式 w ww.kanguba.com
[源码翻译]通达信公式动态翻译显示
DIFF赋值:不定周期收盘价的12日指数移动平均-不定周期收盘价的26日指数移动平均
DEA赋值:DIFF的9日指数移动平均
MACD赋值:(DIFF-DEA)*2
JCCOUNT赋值:统计上次DEA>=0距今天数日中满足DIFF上穿DEA的天数
输出鹤谐大发:(DIFF上穿DEA AND DIFF<-0.1) OR (DIFF上穿DEA AND DEA<0 AND 统计21日中满足JCCOUNT=2的天数=1)