紅色表示MACD在0軸以上的上攻趨勢形成, 黃色表示MACD在0軸以上開始回落, 紫色表示MACD在0軸以下底部啟動, 綠色表示MACD在0軸以下下跌趨勢. DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2; DEA:=EMA(DIF,6),LINETHICK2; MACD:(DIF-DEA)*2,COLORSTICK; DRAWBAND(DIF,RGB(255,255,0),DEA,RGB(0,255,0)); STICKLINE(MACD>REF(MACD,1),MACD,REF(MACD,1),2,0),COLOR000080; STICKLINE(MACD>REF(MACD,1),MACD,REF(MACD,1),0.1,0),COLOR0000FF; STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),2,0),COLOR8C008C; STICKLINE(MACD>REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLORFF00FF; STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),2,0),COLOR009D9D; STICKLINE(MACD<REF(MACD,1) AND MACD>0,MACD,REF(MACD,1),0.1,0),COLOR00FFFF; STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),2,0),COLOR008000; STICKLINE(MACD<REF(MACD,1) AND MACD<0,MACD,REF(MACD,1),0.1,0),COLOR00FF00; |
|