DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
DEA:=EMA(DIFF,5);
MACD:=2*(DIFF-DEA);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
XG:CROSS(X2,X1) AND X1<-0.25 AND (REF(C,20)-C)/C>0.30;
九毛八公式解读
DIFF赋值:收盘价的3日指数移动平均-收盘价的8日指数移动平均 DEA赋值:DIFF的5日指数移动平均 MACD赋值:2*(DIFF-DEA) X1赋值:DIFF的5日指数移动平均*5 X2赋值:((收盘价的3日指数移动平均-收盘价的8日指数移动平均))*5 输出XG:X2上穿X1 AND X1<-0.25 AND (20日前的收盘价-收盘价)/收盘价>0.30