编写要求:
MACD在0轴之上,macd在0轴上1-15天金叉,OBV开大口的选股公式。
www.gszx.com.cn网解答:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
XG:CROSS(DIF,DEA)AND DEA>0 AND OBV>MAOBV AND OBV>REF(OBV,1)AND REF(OBV,1)>REF(OBV,2);