PROTECTED SOURCE SCRIPT

Key Levels LAB

92
Description This is a professional Price Action & Liquidity tool designed to map critical institutional reference points across multiple timeframes (Daily, Weekly, Monthly, Yearly, and Quarterly).

Unlike standard Support & Resistance indicators that just plot lines, this script features a proprietary "Ghost Protocol" (Liquidity Mitigation Engine).

Underlying Concepts & Methodology The script uses a custom State Management System to track the lifecycle of each key level:

Level Identification: It detects the Highs and Lows of previous sessions (PDH/PDL, PWH/PWL, etc.) and stores them in persistent variables.

Mitigation Logic (The "Ghost" Effect): The script continuously monitors price action against these stored levels. When price crosses/touches a level (Liquidity Sweep), the script changes the level's visual state (color/transparency) to indicate it has been "Mitigated" or "Liquidated". This helps traders distinguish between fresh liquidity zones and used ones.

Rolling Quarterly Tracking: It includes a unique algorithm to track the highs and lows of the last 4 rolling quarters, essential for macro analysis.

Anti-Overlap Engine: A dynamic labeling system shifts text labels on the X-axis to prevent visual clutter when multiple levels cluster together.

Key Features

Multi-Timeframe Levels: Automatically plots Previous Day/Week/Month/Year Highs and Lows.

Equilibrium Points: Optional 50% (Mid) levels for Weekly and Monthly ranges.

Smart Visualization: Levels fade out or change style after being tested.

Quarterly History: Tracks the institutional quarterly cycle (Q1 to Q4).

How to Use

Fresh Levels (Solid/Bright): Act as magnets for price. Expect a reaction or a sweep.

Mitigated Levels (Ghost/Faded): Indicates liquidity has already been taken. Less likely to provide a strong reaction.

[English Translation of User Interface]

To comply with House Rules regarding non-English UI, here is the translation of the script's settings menu:

1. Configurações Gerais (General Settings)

Rótulos = Show Labels

Preços = Show Prices

Tamanho = Text Size

2. Posicionamento (Positioning)

Base = Base Distance (Bars)

Escalonar = Stagger Labels (Anti-Overlap)

Passo = Step Size

3. Ghost Protocol (Mitigation)

Ativar Efeito Fantasma = Enable Ghost Effect (Mitigation)

Transparência % = Transparency %

4. Níveis (Levels Configuration)

Diário = Daily (PDH/PDL)

Semanal = Weekly (PWH/PWL)

Mensal = Monthly (PMH/PML)

Anual = Yearly (PYH/PYL)

Histórico Trimestral = Quarterly History

Mid (50%) = Midpoint (50% Equilibrium)

Estilo = Style

Espessura = Width

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.