Couple things.
First, please be sure to use a brief but descriptive title when creating a new post. This will ensure other viewers searching for a similar solution will be able to quickly find it through the search tools.
Second, be careful about using the trend direction of any of the ZigZag indicators. This group of indicators loop through the chart, changing the trend direction as new candles are added to the right side of the chart. This is called ‘repainting’. That means what you see in the historical data is not exactly what was present when those historical candles were the current active candle on the chart.
The solution is extremely simple. I wish you had posted code showing your attempts. This would enable me to provide a deeper level of teaching on how to apply this method.
It requires a signal line of code. And all I did was to copy the if statement within the “ZZ%”.AssignValueColor() line. Screenshot also included showing how it looks on the chart.
AssignPriceColor(if !isConf then "ZZ%".color("Undefined") else if isUp then "ZZ%".color("Up Trend") else "ZZ%".color("Down Trend"));