Could not find the color swapping function combined with the standard MACD short/long EMA on tradingview, hence this indicator. Code based attached link.