This script displays the ADX (Average Directional Index) with a dynamic color that reflects the dominant DMI (Directional Movement Index) at each moment. If DI+ is greater than DI-, the ADX line will turn green, indicating a stronger upward trend. Conversely, if DI- is greater than DI+, the line will turn red, indicating a stronger downward trend. The ADX period and the reference line are both fully customizable, allowing for flexible trend strength analysis.