OPEN-SOURCE SCRIPT
已更新 ADXVMA Multi-TF Overlay & Alerts [HYPR-run]

DESCRIPTION:
ADXVMA across three lookback periods on one chart. A moving average that
uses the ADX (Average Directional Index) as its smoothing factor; fast in
trends, flat in chop. Price crossing above or below a selected ADXVMA
fires a webhook-ready alert for automated execution.
Based on Linnsoft's ADXvma implementation, combining Chande's Variable
Moving Average (VIDYA) with Wilder's ADX as the volatility measure. When
ADX is high (strong trend), the MA tracks price closely. When ADX is low
(choppy), the MA barely moves. This makes it naturally adaptive without
manual adjustment.
DISCOVERING EDGE
Adaptive MAs are popular (KAMA, VIDYA, DEMA), but most still treat
every directional change as a trend signal, producing false signals. This indicator adds a fuzzy factor dead zone that creates a third state, "fuzzy flat" that must exceed a noise threshold
before registering a directional change. We found the fuzzy flat signal to be a powerful signal for confirming consolidation within a trend on shorter look back periods and with the longer period for identifying ranging distribution/accumulation regimes.
Fuzzy ADXVMA vs ADXVMA
The fuzzy dead zone forces a consolidation state (yellow
flat) where a pivot or trend change would present otherwise. When the MA finally turns green or
red, it exceeds the noise floor and considered a more reliable directional
commitment, not a minor fluctuation.
- Flat duration before the cross determines signal quality; XO after
15+ bars flat = base resolved (high conviction), XO after 3 bars
flat = noise (low conviction).
- 7-tier regime gradient (D Trend at score 5 down to Potential Chop
at 0) shows the trend proving itself bar by bar across multiple
lookbacks.
- Two alert systems with multi-layer filtering (not vanilla crossovers).
Regime-confirmed fires only at early pivots. Volatility-confirmed
fires only when bar participation validates the MA shift.
FEATURES
- Three lookbacks: short, long, weekly
- Fuzzy flat detection (dead zone prevents false trend changes in chop)
- Optional ATR volatility scaling (shorter period in high-vol regimes)
- Dashboard with 7-tier regime gradient and event badge
- Two alert systems with multi-layer filtering (not vanilla crossovers)
- Regime-confirmed: price vs ADXVMA, only at early pivots (score 1-2)
- Volatility-confirmed: ADXVMA momentum shift + ATR bar expansion
- Select which lookback triggers regime-confirmed alerts
- Color-coded: green (up), red (down), yellow (flat)
- Dashboard dark/light theme toggle for any chart background
HOW IT WORKS
ADX measures trend strength on a 0-1 scale and feeds it directly into
the MA smoothing factor. High ADX = MA tracks price. Low ADX = MA holds
still. The fuzzy factor adds a dead zone so tiny movements register as
flat instead of false trend changes. Three simultaneous lookbacks give
you short-term, medium-term, and weekly context without switching charts.
DASHBOARD
Regime state at a glance. The header row shows a badge that flags
conflicting events; the second row shows the current regime label with
a 7-tier color gradient; the third row shows direction pivot events.

ALERTS
Two independent alert systems, both multi-layer filtered. Regime-confirmed:
the regime pivot is the signal; price crossing the selected ADXVMA is just
the trigger. Only fires at early pivots (score 1-2), ignoring mid-trend
crosses entirely. Volatility-confirmed: the ATR bar expansion is the
signal; the ADXVMA momentum shift is the trigger. Only fires when the bar
shows real participation (high/low extends beyond open +/- ATR), ignoring
low-range bars. Both fire JSON payloads; works with any webhook receiver.
CREDITS
ADXVMA: Linnsoft
ADX: J. Welles Wilder (1978)
VIDYA: Tushar S. Chande, TASC March 1992
ADXVMA across three lookback periods on one chart. A moving average that
uses the ADX (Average Directional Index) as its smoothing factor; fast in
trends, flat in chop. Price crossing above or below a selected ADXVMA
fires a webhook-ready alert for automated execution.
Based on Linnsoft's ADXvma implementation, combining Chande's Variable
Moving Average (VIDYA) with Wilder's ADX as the volatility measure. When
ADX is high (strong trend), the MA tracks price closely. When ADX is low
(choppy), the MA barely moves. This makes it naturally adaptive without
manual adjustment.
DISCOVERING EDGE
Adaptive MAs are popular (KAMA, VIDYA, DEMA), but most still treat
every directional change as a trend signal, producing false signals. This indicator adds a fuzzy factor dead zone that creates a third state, "fuzzy flat" that must exceed a noise threshold
before registering a directional change. We found the fuzzy flat signal to be a powerful signal for confirming consolidation within a trend on shorter look back periods and with the longer period for identifying ranging distribution/accumulation regimes.
Fuzzy ADXVMA vs ADXVMA
The fuzzy dead zone forces a consolidation state (yellow
flat) where a pivot or trend change would present otherwise. When the MA finally turns green or
red, it exceeds the noise floor and considered a more reliable directional
commitment, not a minor fluctuation.
- Flat duration before the cross determines signal quality; XO after
15+ bars flat = base resolved (high conviction), XO after 3 bars
flat = noise (low conviction).
- 7-tier regime gradient (D Trend at score 5 down to Potential Chop
at 0) shows the trend proving itself bar by bar across multiple
lookbacks.
- Two alert systems with multi-layer filtering (not vanilla crossovers).
Regime-confirmed fires only at early pivots. Volatility-confirmed
fires only when bar participation validates the MA shift.
FEATURES
- Three lookbacks: short, long, weekly
- Fuzzy flat detection (dead zone prevents false trend changes in chop)
- Optional ATR volatility scaling (shorter period in high-vol regimes)
- Dashboard with 7-tier regime gradient and event badge
- Two alert systems with multi-layer filtering (not vanilla crossovers)
- Regime-confirmed: price vs ADXVMA, only at early pivots (score 1-2)
- Volatility-confirmed: ADXVMA momentum shift + ATR bar expansion
- Select which lookback triggers regime-confirmed alerts
- Color-coded: green (up), red (down), yellow (flat)
- Dashboard dark/light theme toggle for any chart background
HOW IT WORKS
ADX measures trend strength on a 0-1 scale and feeds it directly into
the MA smoothing factor. High ADX = MA tracks price. Low ADX = MA holds
still. The fuzzy factor adds a dead zone so tiny movements register as
flat instead of false trend changes. Three simultaneous lookbacks give
you short-term, medium-term, and weekly context without switching charts.
DASHBOARD
Regime state at a glance. The header row shows a badge that flags
conflicting events; the second row shows the current regime label with
a 7-tier color gradient; the third row shows direction pivot events.
ALERTS
Two independent alert systems, both multi-layer filtered. Regime-confirmed:
the regime pivot is the signal; price crossing the selected ADXVMA is just
the trigger. Only fires at early pivots (score 1-2), ignoring mid-trend
crosses entirely. Volatility-confirmed: the ATR bar expansion is the
signal; the ADXVMA momentum shift is the trigger. Only fires when the bar
shows real participation (high/low extends beyond open +/- ATR), ignoring
low-range bars. Both fire JSON payloads; works with any webhook receiver.
CREDITS
ADXVMA: Linnsoft
ADX: J. Welles Wilder (1978)
VIDYA: Tushar S. Chande, TASC March 1992
版本注释
HOW TO USEAdd to chart and configure lookback periods. Short (default 13) is your primary trend line on the current chart timeframe. Long (default 45) gives higher timeframe context without switching charts; 45 on Daily approximates 7 on Weekly. Weekly is pulled via request.security for the true weekly ADXVMA. The short line displays by default; long and weekly are hidden but available in the style settings. Read the dashboard regime color for the current state, the badge for event conflicts, and the event row for direction pivots. Green = uptrend, red = downtrend, yellow = flat. When the regime just pivoted (score 1-2), watch for a price cross of the selected ADXVMA; that's the regime-confirmed alert trigger.
VOLATILITY ADJUSTMENT
When enabled, ATR scales the ADXVMA period down in high-volatility regimes. The formula is: adjPeriod = period * (1 - ATR/price). High ATR relative to price = shorter effective period = MA tracks price more closely. Low ATR = period stays near default. The ATR lookback (default 50) controls sensitivity.
FUZZY FACTOR
Controls how sensitive flat detection is. The ADXVMA can produce tiny movements that are effectively flat but register as trend changes. The fuzzy factor creates a dead zone: if the MA moves less than this percentage, it is treated as flat (yellow). Lower values = more sensitive, higher = more forgiving.
ALERT DETAILS
Regime-confirmed: the regime pivot is the signal, not the crossover. Price crossing the selected ADXVMA is the trigger, but only fires when the regime score is 1 (Pivot Confirmed) or 2 (Pivoting). Mid-trend crosses (score 3-5) are ignored entirely. Alerts fire at the pivot where directional change is fresh, not after the move has run. Markers: green/red arrows (brighter colors). Volatility-confirmed: the ADXVMA accelerating past its own value from 2-3 bars ago is the trigger, but only fires when the bar shows real participation (high extends beyond open + 1.3x ATR(5) for longs, low extends beyond open - 1.5x ATR(5) for shorts). Low-range bars are ignored. Markers: dark green/dark red arrows (dimmer colors). Both fire JSON payloads on bar close.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Execute alerts and strategies via webhooks + in-app quick tap trading, auto-sizing and trade automation on your phone - all on Hyperliquid | hypr.run
Trade. Automate. Live your life.
Trade. Automate. Live your life.
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
Execute alerts and strategies via webhooks + in-app quick tap trading, auto-sizing and trade automation on your phone - all on Hyperliquid | hypr.run
Trade. Automate. Live your life.
Trade. Automate. Live your life.
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。