OPEN-SOURCE SCRIPT
ADX with Trend/Range Zone Bands

ADX with Trend/Range Zone Bands
This is an enhanced version of the classic Average Directional Index (ADX) indicator, designed to help traders instantly identify whether the market is **trending** or **ranging** — without any ambiguity.
**🔍 What's New**
- **Color-coded ADX line** — turns teal in trending markets, orange in ranging markets, and gray in transitional zones
- **Fixed zone bands** — two always-visible shaded regions define the range and trend areas at a glance
- **Dynamic background highlight** — the chart background changes color when ADX enters a confirmed zone
- **Fully customizable** — adjust the lower band (range threshold), upper band (trend confirmation), and zone colors to fit your trading style
**📊 How to Read It**
| ADX Value | Zone | Interpretation |
|---|---|---|
| Below Lower Band (default 20) | 🟠 Orange | Ranging market — avoid trend-following entries |
| Between bands (20–40) | ⬜ Gray | Transitional — proceed with caution |
| Above Upper Band (default 40) | 🟢 Teal | Strong trend — favor momentum strategies |
**💡 Best Used For**
- Futures & crypto derivatives traders who need quick market condition reads
- Filtering signals from trend-following systems (MA crossovers, breakouts)
- Avoiding false breakouts during low-ADX consolidation phases
*Works on all timeframes and asset classes.*
---
ADX 趋势/震荡区间可视化指标
本指标在经典 ADX 的基础上进行增强,通过**直观的色带与变色曲线**,帮助交易者在第一时间判断当前市场处于**趋势行情**还是**震荡行情**,无需反复猜测。
**🔍 新增功能**
- **ADX 曲线动态变色** —— 趋势行情显示蓝绿色,震荡行情显示橙色,过渡区显示灰色
- **固定区间色带** —— 两个常驻阴影区域,随时标注震荡区与趋势区的边界,一目了然
- **动态背景高亮** —— 当 ADX 进入确认区间时,图表背景自动切换颜色,强化视觉提示
- **参数完全可调** —— 震荡上限、趋势确认线、色带颜色均可自定义,适配不同交易风格
**📊 如何读图**
| ADX 数值 | 区间 | 行情判断 |
|---|---|---|
| 低于震荡上限(默认 20) | 🟠 橙色区 | 震荡市 —— 避免追趋势单,适合区间策略 |
| 介于两线之间(20–40) | ⬜ 灰色过渡 | 趋势形成中 —— 轻仓观望,等待确认 |
| 高于趋势确认线(默认 40) | 🟢 蓝绿区 | 强趋势市 —— 顺势持仓,适当放宽止损 |
**💡 适用场景**
- 加密货币合约、期货交易者快速判断市场状态
- 过滤均线交叉、突破等趋势信号,避免震荡期频繁被套
- 结合其他指标使用,在强趋势区间内提高入场胜率
*适用于所有时间周期与交易品种。*
This is an enhanced version of the classic Average Directional Index (ADX) indicator, designed to help traders instantly identify whether the market is **trending** or **ranging** — without any ambiguity.
**🔍 What's New**
- **Color-coded ADX line** — turns teal in trending markets, orange in ranging markets, and gray in transitional zones
- **Fixed zone bands** — two always-visible shaded regions define the range and trend areas at a glance
- **Dynamic background highlight** — the chart background changes color when ADX enters a confirmed zone
- **Fully customizable** — adjust the lower band (range threshold), upper band (trend confirmation), and zone colors to fit your trading style
**📊 How to Read It**
| ADX Value | Zone | Interpretation |
|---|---|---|
| Below Lower Band (default 20) | 🟠 Orange | Ranging market — avoid trend-following entries |
| Between bands (20–40) | ⬜ Gray | Transitional — proceed with caution |
| Above Upper Band (default 40) | 🟢 Teal | Strong trend — favor momentum strategies |
**💡 Best Used For**
- Futures & crypto derivatives traders who need quick market condition reads
- Filtering signals from trend-following systems (MA crossovers, breakouts)
- Avoiding false breakouts during low-ADX consolidation phases
*Works on all timeframes and asset classes.*
---
ADX 趋势/震荡区间可视化指标
本指标在经典 ADX 的基础上进行增强,通过**直观的色带与变色曲线**,帮助交易者在第一时间判断当前市场处于**趋势行情**还是**震荡行情**,无需反复猜测。
**🔍 新增功能**
- **ADX 曲线动态变色** —— 趋势行情显示蓝绿色,震荡行情显示橙色,过渡区显示灰色
- **固定区间色带** —— 两个常驻阴影区域,随时标注震荡区与趋势区的边界,一目了然
- **动态背景高亮** —— 当 ADX 进入确认区间时,图表背景自动切换颜色,强化视觉提示
- **参数完全可调** —— 震荡上限、趋势确认线、色带颜色均可自定义,适配不同交易风格
**📊 如何读图**
| ADX 数值 | 区间 | 行情判断 |
|---|---|---|
| 低于震荡上限(默认 20) | 🟠 橙色区 | 震荡市 —— 避免追趋势单,适合区间策略 |
| 介于两线之间(20–40) | ⬜ 灰色过渡 | 趋势形成中 —— 轻仓观望,等待确认 |
| 高于趋势确认线(默认 40) | 🟢 蓝绿区 | 强趋势市 —— 顺势持仓,适当放宽止损 |
**💡 适用场景**
- 加密货币合约、期货交易者快速判断市场状态
- 过滤均线交叉、突破等趋势信号,避免震荡期频繁被套
- 结合其他指标使用,在强趋势区间内提高入场胜率
*适用于所有时间周期与交易品种。*
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.