DIFF := EMA(CLOSE,9) - EMA(CLOSE,26);
DEA := EMA(DIFF,12); MACD := 2*(DIFF-DEA); {紅柱減值:IF(MACD<REF(MACD,1) AND REF(MACD,1)>0 AND REF(MACD,2)<REF(MACD,1),0.2,0);} 紅柱再長(zhǎng):50*(IF(MACD>REF(MACD,1) AND REF(MACD,1)>0 AND REF(MACD,2)>REF(MACD,1),0.2,0)); {綠柱增值:=IF(MACD>REF(MACD,1) AND REF(MACD,1)<0 AND REF(MACD,2)>REF(MACD,1),0.2,0);}; |
|
來(lái)自: 太原股民 > 《指標(biāo)源碼》