用戶回復:
DIFF : EMA(CLOSE,S) - EMA(CLOSE,P); DEA : EMA(DIFF,M); MACD1 : 2*(DIFF-DEA),colorstick; a1:=ref(macd1,1)<0 and macd1>0; a2:=ref(macd1,2)<0 and ref(macd1,1)>0 and macd1>0; a3:=ref(macd1,3)<0 and ref(macd1,2)>0 and ref(macd1,1)>0 and macd1>0; aa:a1 or a2 or a3;