今天涨幅小于昨天,但MACD红柱比昨天长,通达信选股公式

2025-04-02 14:41:48
推荐回答(2个)
回答1:

MACD柱:=MACD.MACD(12,26,9);
W1:=今涨<昨涨;
W2:=今涨>0;
W3:=MACD柱>REF(MACD柱,1);
W4:=REF(MACD柱,1)>0;
W1 AND W2 AND W3 AND W4;
MACD的参数12,26,9可以自己更改。

回答2:

c/ref(c,1)>1 and ref(c,1)/ref(c,2)>1 and (c/ref(c,1))<(ref(c,1)/ref(c,2)) and "macd.macd">0 and "macd.macd">ref("macd.macd",1);