modify macd strategy to signal structrue