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);} 红柱再长: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);}; |
|