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可以自己更改。
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);