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.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.