OPEN-SOURCE SCRIPT
ADX and DI – Clean Trend Indicator

ADX and DI – Clean Trend Indicator helps traders identify trending conditions and the strength of a trend using the classic Average Directional Index (ADX) along with the +DI and -DI directional movement lines.
ADX (orange line) shows overall trend strength.
+DI (green line) and -DI (red line) reveal bullish or bearish pressure.
When ADX is above the threshold (default 25), the background turns green to highlight strong trending conditions — a great time to apply trend-following strategies.
This script offers:
A visually clean layout
Configurable ADX length and strength threshold
Automatic background highlighting when strong trends are detected
Use this tool to confirm market momentum, avoid sideways chop, and enhance your entry timing for breakout or pullback setups.
ADX (orange line) shows overall trend strength.
+DI (green line) and -DI (red line) reveal bullish or bearish pressure.
When ADX is above the threshold (default 25), the background turns green to highlight strong trending conditions — a great time to apply trend-following strategies.
This script offers:
A visually clean layout
Configurable ADX length and strength threshold
Automatic background highlighting when strong trends are detected
Use this tool to confirm market momentum, avoid sideways chop, and enhance your entry timing for breakout or pullback setups.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.