SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
EE:macd-REF(MACD,1)>0.05 AND
COUNT(C/REF(C,1)>1.09,16)<2 AND
C=HHV(H,60) AND
C/REF(C,1)>1.07 AND
NOT(H=L) AND
COUNT(C>O,6)<=4 AND
C/REF(C,9)<1.2;
九毛八公式解读
SHORT赋值:12 LONG赋值:26 MID赋值:9 DIF赋值:收盘价的SHORT日指数移动平均-收盘价的LONG日指数移动平均 DEA赋值:DIF的MID日指数移动平均 MACD赋值:(DIF-DEA)*2 输出EE:MACD-1日前的MACD>0.05 ANDCOUNT(收盘价/1日前的收盘价>1.09,16)<2 ANDC=60日内最高价的最高值 ANDC/1日前的收盘价>1.07 ANDNOT(最高价=最低价) ANDCOUNT(收阳线,6)<=4 ANDC/9日前的收盘价<1.2