A1:=MA(CLOSE,5);
A2:=MA(CLOSE,10);
A3:=MA(CLOSE,20);
A4:=MA(CLOSE,60);
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
C3:=REF(C,1);
ZD:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
(ZD AND VOL>REF(V,1)*2.1
AND C>REF(C,1)AND CLOSE>A1 AND CLOSE>A2 AND CLOSE>A3 AND
CLOSE>A4 AND macd>=REF(MACD,1)*2.1) ;
九毛八公式解读
A1赋值:收盘价的5日简单移动平均 A2赋值:收盘价的10日简单移动平均 A3赋值:收盘价的20日简单移动平均 A4赋值:收盘价的60日简单移动平均 DIFF赋值:收盘价的12日指数移动平均 - 收盘价的26日指数移动平均 DEA赋值:DIFF的9日指数移动平均 MACD赋值:2*(DIFF-DEA) C3赋值:1日前的收盘价 ZD赋值:如果(收盘价-C3)*100/C3>=(10-0.01*100/C3),返回1,否则返回0 (ZD AND 成交量(手)>1日前的成交量(手)*2.1 AND 收盘价>1日前的收盘价AND 收盘价>A1 AND 收盘价>A2 AND 收盘价>A3 AND 收盘价>A4 AND MACD>=1日前的MACD*2.1)