OPEN-SOURCE SCRIPT

Market State Matrix [LuxAlgo]

7 444
The Market State Matrix indicator is a high-density radial dashboard designed to visualize the entire market condition as a layered, 360-degree "radar." Unlike linear indicators, the Matrix organizes data into 5 concentric rings and 12 multi-scale slices, providing an instant snapshot of market confluence, conflict, and cyclical phases.

🔶 USAGE

The indicator operates in a dedicated pane, providing a centralized view of market health across five dimensions and twelve lookback periods.

🔹 The 5 Radial Dimensions (Inside to Outside)

  • Ring 1: Trend Regime (Teal/Red) - Visualizes the primary EMA-based direction.
  • Ring 2: Momentum Intensity (Cyan/Purple) - A heatmap based on RSI distance from the 50-level.
  • Ring 3: Volatility Glow (Gold) - Brightens as ATR expands relative to its historical average.
  • Ring 4: Volume Pressure (White) - Highlights areas of high relative participation and interest.
  • Ring 5: Price Structure (Lime/Orange) - Tracks Higher Highs/Lows vs. Lower Highs/Lows across various scales.


🔹 Interpretation

  • Full Alignment: Look for solid "columns" of color from the core to the outer ring. This represents maximum conviction across all market dimensions.
  • Internal Conflict: Mixed colors within a slice indicate internal disagreement—for example, a bullish trend (Ring 1) with bearish momentum (Ring 2) suggests potential exhaustion or a mean-reversion setup.
  • Volatility Breaks: Watch the Gold ring (Ring 3) for expansion. High volatility paired with high volume (Ring 4) often precedes a significant trend shift.
  • Regime Core: The center circle acts as your primary anchor, glowing solid Bullish or Bearish based on the fastest timeframe's regime.


🔶 DETAILS

The Matrix utilizes a Multi-Scale Engine divided into 12 radial slices, each representing a progressively longer lookback period (ranging from 8 to 220 bars). This allows users to see how different time-clusters are reacting simultaneously. "Sensitive Slices" respond to micro-shifts and short-term volatility, while "Stable Slices" reflect the long-term macro regime.

The tool also features a **Dominant Phase Highlighter**: A glowing radial arc and focus overlay highlight the current active slice of price action. This identifies where the market is positioned in its current cycle (Expansion, Exhaustion, Contraction, or Accumulation).

🔶 SETTINGS

🔹 Visual Settings

  • Horizontal Offset: Adjusts the X-axis position of the wheel on the chart.
  • Core Radius: Sets the size of the inner-most circle.
  • Ring Width: Determines the thickness of each of the 5 concentric rings.
  • Ring Gap: Sets the thin separation distance between segments for visual clarity.
  • Show Dashboard Legend: Toggles the visibility of the "Matrix Layers" table in the top-right corner.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน