请教高手编写一个MACD条件选股公式,大智慧用的

2024年12月03日 04:50
有3个网友回答
网友(1):

DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
XG:CROSS(REF(MACD,1),0) AND MACD>REF(MACD,1);

(已测试通过)

网友(2):

DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=(DIFF-DEA)*2;
XG:=REF(MACD,2)<0 AND REF(MACD,1)>0 AND MACD>REF(MACD,1);

网友(3):

DIFF := EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA := EMA(DIFF,M);
CROSS(DIFF,DEA);