This is a moving average script where the color of the moving average is based on MACD.
Pink MA = Negative and falling MACD
Red MA = Negative and rising MACD
Aqua MA = Positive and rising MACD
Blue MA = Positive and falling MACD
Additionally this marks pivot highs and lows on the MACD as well as divergence points with those pivots. Black triangles will mark new highs or lows, a blue circle indicates bullish divergence formed, a red circle indicates bearish divergence formed.