PROTECTED SOURCE SCRIPT

Multi-Layer Density Zones (Trend, Horizontal, Parabolic)

32
**Title:** Multi-Layer Density Zones (Trend, Horizontal, Parabolic)

**Summary:**
This advanced indicator visualizes market structure by identifying "Price Density Zones" across three different geometries simultaneously. Unlike standard Support/Resistance indicators, it calculates where price action has historically clustered relative to a baseline, using statistical distribution (Quantile) logic.

**Key Features:**

* **3 Distinct Layers:**
1. **Trend Layer (Oblique):** Automatically detects trend channels using Linear Regression or classic Start-End points. Ideal for identifying dynamic support/resistance in trending markets.
2. **Horizontal Layer:** Scans for classic static price levels where price has spent the most time.
3. **Parabolic Layer (Matrix-Based):** Uses advanced **Matrix Mathematics** to solve Polynomial Regression (up to degree 4). It fits curves ("U" or "S" shapes) to price action, capturing non-linear market cycles.


* **Quantile vs. Linear Mode:**
* *Quantile (Density Focused):* Zones are spaced based on data density. Areas with high price activity become narrower and more defined.
* *Linear:* Creates equally spaced parallel channels.


* **Interactive History:** You can select specific starting dates directly from the chart to analyze specific market phases.
* **Dynamic Visualization:** Uses gradient shading (`linefill`) to highlight zones; denser areas can be made more visible while sparse areas remain transparent.

**How to Use:**
Use the **Parabolic Layer** to catch market reversals where linear trends fail. Use the **Trend Layer** for channel trading and the **Horizontal Layer** for key breakout levels.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.