DIFF0:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
DEA0:=EMA(DIFF0,9);
MACD0:=2*(DIFF0-DEA0);
JQ:=macd0>REF(MACD0,1)*1.5 AND MACD0>15;
X:=MA(C,3);
AA:=(X-REF(X,1))/REF(X,1)*100;
XG:CROSS(AA,0) AND JQ;
九毛八公式解读
DIFF0赋值:(收盘价的12日指数移动平均-收盘价的26日指数移动平均)*100 DEA0赋值:DIFF0的9日指数移动平均 MACD0赋值:2*(DIFF0-DEA0) JQ赋值:MACD0>1日前的MACD0*1.5 AND MACD0>15 X赋值:收盘价的3日简单移动平均 AA赋值:(X-1日前的X)/1日前的X*100 输出XG:AA上穿0 AND JQ