OPEN-SOURCE SCRIPT
已更新 ADX Gradient [Gabremoku]

ADX Gradient is a directional strength indicator built on Wilder's classic ADX, enhanced with a smooth multi-stage color gradient that makes it immediately clear how strong the current trend is — no thresholds to memorize, just read the color.
How it works
The ADX line changes color dynamically based on its current value, following a logical progression from neutral to extreme:
🔘 < 15 — Gray: no trend, range-bound market
🟢 15–25 — Green gradient: trend forming / confirmed
🔵 25–45 — Blue gradient: trend developing
🟠 45–55 — Orange: strong trend
🔴 55+ — Red / bright red: extreme trend strength
Features
Wilder ADX with customizable length and smoothing period
Smooth gradient coloring across 7 strength zones
Optional DI+ / DI− lines for directional context
Colored dashed reference bands at levels 20, 30, 50 and 60
Colored fill bands between levels for quick visual reading
Built-in alert conditions on ADX crossing 20, 30, and 50
How to use
Use this indicator alongside your existing strategy to gauge trend quality. A rising ADX in green/blue suggests a healthy trend worth following. Orange and red zones signal a potentially exhausted or overextended move — use with caution. When ADX is gray and falling, prefer range or mean-reversion setups.
Settings
ADX Length: lookback period for True Range and DM smoothing (default: 14)
ADX Smoothing: RMA smoothing period for the final ADX line (default: 14)
Show DI+ / DI−: toggle directional indicator lines on/off
Published by Gabremoku
How it works
The ADX line changes color dynamically based on its current value, following a logical progression from neutral to extreme:
🔘 < 15 — Gray: no trend, range-bound market
🟢 15–25 — Green gradient: trend forming / confirmed
🔵 25–45 — Blue gradient: trend developing
🟠 45–55 — Orange: strong trend
🔴 55+ — Red / bright red: extreme trend strength
Features
Wilder ADX with customizable length and smoothing period
Smooth gradient coloring across 7 strength zones
Optional DI+ / DI− lines for directional context
Colored dashed reference bands at levels 20, 30, 50 and 60
Colored fill bands between levels for quick visual reading
Built-in alert conditions on ADX crossing 20, 30, and 50
How to use
Use this indicator alongside your existing strategy to gauge trend quality. A rising ADX in green/blue suggests a healthy trend worth following. Orange and red zones signal a potentially exhausted or overextended move — use with caution. When ADX is gray and falling, prefer range or mean-reversion setups.
Settings
ADX Length: lookback period for True Range and DM smoothing (default: 14)
ADX Smoothing: RMA smoothing period for the final ADX line (default: 14)
Show DI+ / DI−: toggle directional indicator lines on/off
Published by Gabremoku
版本注释
ADX Gradient Regime [Gabremoku] — Update ReportReworked the indicator into a more complete trend regime tool instead of a simple ADX gradient.
Added explicit regime classification: Range, Forming, Confirmed, Strong, and Extreme.
Added DI dominance logic to separate bullish pressure, bearish pressure, and neutral conditions.
Added ADX slope evaluation to distinguish rising, falling, and flat strength.
Added a configurable dashboard with selectable position for immediate reading on chart.
Added last-value labels for ADX, DI+ and DI-.
Improved alert structure for ADX threshold crosses and DI cross events.
Refactored the code to improve stability and readability, while keeping the original visual identity.
版本注释
Update Notes — Two quality-of-life improvements in this update, both based on feedback from the community.
Dashboard resize control
Several of you asked for the ability to control the dashboard text size — especially when using this indicator on smaller panels or alongside multiple oscillators. The dashboard now supports three text size options: Tiny, Small, and Normal, selectable directly from the Dashboard settings group. The position can also be changed as before.
Last value label overlap fix
When ADX, DI+, and DI- values were close to each other, the last-value labels on the right side of the chart could overlap and become unreadable. The label placement logic now enforces a minimum gap between the three labels, spreading them vertically to keep all three readable at all times. The minimum gap is also configurable from the Style settings, so you can tune it to match your chart layout.
Both changes are panel-configurable and do not affect the core calculation logic.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。