九毛八公式指标
公式模块:
input:s(10), p(22), m(9);
DIFF:= EMA(CLOSE,s) - EMA(CLOSE,p);
DEA:=EMA(DIFF,m);
macd:=2*(DIFF-DEA);
crOSS(macd,ref(macd,1) )and ref(macd,1)<0;
这个公式在同花顺上测试不了 DIFF:= EMA(CLOSE,10) - EMA(CLOSE,22);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
CROSS(MACD,REF(MACD,1) ) AND REF(MACD,1)<0;