restruct macd feature