OPEN-SOURCE SCRIPT
Improved ADX – Responsive & Visual (manual ADX)

just an ADX but more visual....
This indicator is a custom implementation of the Average Directional Index (ADX), designed to provide a responsive and visual representation of trend strength along with the DI+ and DI– lines. It uses manual calculations for the ADX and directional movement components for greater control over smoothing and responsiveness.
Key Features:
ADX Calculation:
Computes directional movement (upMove / downMove) manually.
Calculates True Range and smoothed directional movements using Wilder’s moving average (RMA).
Computes the ADX using the smoothed DX and applies additional smoothing (adx_fast) for responsiveness.
Directional Indicators (DI+ / DI–):
DI+ and DI– lines are calculated independently.
Lines are plotted on the same scale as the indicator.
Colors:
DI+ is green when above DI–, otherwise semi-transparent green.
DI– is red when above DI+, otherwise semi-transparent red.
ADX Coloring and Trend Fill:
ADX line color changes dynamically:
Green when above the trend strength threshold.
Yellow when near the threshold (0.75 × threshold).
Red when below the threshold.
Optional fill highlights strong trends between ADX and the threshold line:
Green fill for ADX above the threshold.
Red fill for ADX below the threshold.
Cross Markers:
Triangle markers are plotted on the indicator scale when ADX crosses the threshold:
Upward green triangle for ADX crossing above the threshold (strengthening trend).
Downward red triangle for ADX crossing below the threshold (weakening trend).
Live Values Label:
Displays the current ADX, DI+, and DI– values at the top of the indicator pane.
Automatically updates on the last bar.
Inputs:
len: ADX length (default 14)
smooth: Smoothing factor for adx_fast (default 5)
show_fill: Highlight strong trend area (true/false)
highlight_level: Trend strength threshold (default 25)
show_di: Show DI+ / DI– (true/false)
show_adx: Show ADX line (true/false)
Usage:
Use the ADX to gauge trend strength.
DI+ above DI– indicates bullish pressure; DI– above DI+ indicates bearish pressure.
ADX color and fill provide visual cues for trend strength and potential entry signals.
Cross markers alert when trend strength is increasing or decreasing relative to the threshold.
This indicator is a custom implementation of the Average Directional Index (ADX), designed to provide a responsive and visual representation of trend strength along with the DI+ and DI– lines. It uses manual calculations for the ADX and directional movement components for greater control over smoothing and responsiveness.
Key Features:
ADX Calculation:
Computes directional movement (upMove / downMove) manually.
Calculates True Range and smoothed directional movements using Wilder’s moving average (RMA).
Computes the ADX using the smoothed DX and applies additional smoothing (adx_fast) for responsiveness.
Directional Indicators (DI+ / DI–):
DI+ and DI– lines are calculated independently.
Lines are plotted on the same scale as the indicator.
Colors:
DI+ is green when above DI–, otherwise semi-transparent green.
DI– is red when above DI+, otherwise semi-transparent red.
ADX Coloring and Trend Fill:
ADX line color changes dynamically:
Green when above the trend strength threshold.
Yellow when near the threshold (0.75 × threshold).
Red when below the threshold.
Optional fill highlights strong trends between ADX and the threshold line:
Green fill for ADX above the threshold.
Red fill for ADX below the threshold.
Cross Markers:
Triangle markers are plotted on the indicator scale when ADX crosses the threshold:
Upward green triangle for ADX crossing above the threshold (strengthening trend).
Downward red triangle for ADX crossing below the threshold (weakening trend).
Live Values Label:
Displays the current ADX, DI+, and DI– values at the top of the indicator pane.
Automatically updates on the last bar.
Inputs:
len: ADX length (default 14)
smooth: Smoothing factor for adx_fast (default 5)
show_fill: Highlight strong trend area (true/false)
highlight_level: Trend strength threshold (default 25)
show_di: Show DI+ / DI– (true/false)
show_adx: Show ADX line (true/false)
Usage:
Use the ADX to gauge trend strength.
DI+ above DI– indicates bullish pressure; DI– above DI+ indicates bearish pressure.
ADX color and fill provide visual cues for trend strength and potential entry signals.
Cross markers alert when trend strength is increasing or decreasing relative to the threshold.
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.