PROTECTED SOURCE SCRIPT

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

34
**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.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.