DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DD1:=1+BarsLast(Cross(DIFF,DEA) AND DIFF 0 AND DEA
{www.9m8.cn 九毛八公式指标网 股票软件下载网_通达信股票指标公式}
DD2:=1+BarsLast(Cross(DEA,DIFF) AND DIFF 0 AND DEA
C1:=DD1
C2:=DD2
C3:=Cross(Count(MACD Ref(MACD,1) AND MACD 0,DD2),0.8);
C1 AND C2 AND C3;