DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
A1:=DIFF>-1 AND DEA>-1 AND DIFF<1 AND DEA<1;
AA:=REF(COUNT(A1,50),3)=50 OR REF(COUNT(A1,50),2)=50 OR REF(COUNT(A1,50),1)=50;
BB:=ABS(DIFF/DEA)<0.01;
AA AND BB;
投股票 网 www .tou18.cn
[源码翻译]通达信软件动态翻译的结果
DIFF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA赋值:DIFF的9日指数移动平均
A1赋值:DIFF>-1 AND DEA>-1 AND DIFF<1 AND DEA<1
AA赋值:3日前的统计50日中满足A1的天数=50 OR 2日前的统计50日中满足A1的天数=50 OR 1日前的统计50日中满足A1的天数=50