macd updates, tested parallel optimization works