OPEN-SOURCE SCRIPT

ADX MTF mura vision

35
Overview
ADX MTF — mura vision measures trend strength and visualizes a higher-timeframe (HTF) ADX on any chart. The current-TF ADX is drawn as a line; the HTF ADX is rendered as “step” segments to reflect closed HTF bars without repainting. Optional soft fills highlight the 20–25 (trend forming) and 40–50 (strong trend) zones.

How it works
  • ADX (current TF): Classic Wilder formulation using DI components and RMA smoothing.
  • HTF ADX: Requested via request.security(..., lookahead_off, gaps_off).
  • When a new HTF bar opens, the previous value is frozen as a horizontal segment.
  • The current HTF bar is shown as a live moving segment.
  • This staircase look is expected on lower timeframes.

Auto timeframe mapping
If “Auto” is selected, the HTF is derived from the chart TF:
<30m → 60m, 30–<240m → 240m, 240m–<1D → 1D, 1D → 1W, 1W/2W → 1M, ≥1M → same.

Inputs
  • DI Length and ADX Smoothing — core ADX parameters.
  • Higher Time Frame — Auto or a fixed TF.
  • Line colors/widths for current ADX and HTF ADX.
  • Fill zone 20–25 and Fill zone 40–50 — optional light background fills.
  • Number of HTF ADX Bars — limits stored HTF segments to control chart load.

Reading the indicator
  • ADX < 20: typically range-bound conditions; trend setups require extra caution.
  • 20–25: trend emergence; breakouts and continuation structures gain validity.
  • 40–50: strong trend; favor continuation and manage with trailing stops.
  • >60 and turning down: possible trend exhaustion or transition toward range.

Note: ADX measures strength, not direction. Combine with your directional filter (e.g., price vs. MA, +DI/−DI, structure/levels).

Non-repainting behavior
  • HTF values use lookahead_off; closed HTF bars are never revised.
  • The only moving piece is the live segment for the current HTF bar.

Best practices
  • Use HTF ADX as a regime filter; time entries with the current-TF ADX rising through your threshold.
  • Pair with ATR-based stops and a MA/structure filter for direction.
  • Consider higher thresholds on highly volatile altcoins.

Performance notes
The script draws line segments for HTF bars. If your chart becomes heavy, reduce “Number of HTF ADX Bars.”

Disclaimer
This script is for educational purposes only and does not constitute financial advice. Trading involves risk.

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.