DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE,LINETHICK1; DEA:=EMA(DIFF,9),COLORYELLOW,LINETHICK2; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,13)=1;
投 股票网 www .tou18.cn
[源码翻译]通达信软件动态翻译的结果
DIFF赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均,画白色,线宽为1
DEA赋值:DIFF的9日指数移动平均,画黄色,线宽为2
JCCOUNT赋值:统计上次DEA>=0距今天数日中满足DIFF上穿DEA的天数
输出二次金叉:DIFF上穿DEA AND DEA<0 AND 统计13日中满足JCCOUNT=2的天数=1