PROTECTED SOURCE SCRIPT
מעודכן Key Levels LAB

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
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
הערות שחרור
Description This is a major update to the Key Levels LAB, a professional Price Action & Liquidity mapping tool. It automatically identifies critical institutional reference points (PDH/L, PWH/L, Quarterly Levels) and manages their visual state using a proprietary "Ghost Protocol".What's New in This Version?
Terminus Extension Engine: Instead of just fixed bars, lines can now extend to specific time targets (e.g., Next Midnight, NY Close, +4 Hours). This keeps charts cleaner.
Vertical Staggering (Anti-Overlap): A smart algorithm that vertically shifts text labels when price levels are clustered too close together, ensuring readability.
True Opens: Added specific session opening levels: NY Midnight (00:00), NY Open (08:30), and Stocks Open (09:30).
Enhanced Dashboard: New dark/light themes and simplified status icons for active vs. mitigated levels.
Underlying Concepts & Methodology
Liquidity State Management: The script tracks the "life" of a level. When price touches a High or Low, the "Ghost Protocol" triggers, changing the level's style to indicate it has been mitigated (liquidity swept).
Quarterly Cycle: It tracks the rolling 4-quarter history (Q1 to Q4), essential for macro institutional analysis.
Visual Geometry: The logic prioritizes chart cleanliness by cutting off lines after mitigation (optional) or fading them out.
How to Use
Fresh Levels (Solid/Colored): These are active magnets for price.
Ghost Levels (Gray/Dotted): These levels have been tested. Proceed with caution as their structural integrity is weakened.
Terminus: Set the extension to "Next Midnight" to see how levels relate to the current daily session boundaries.
[English Translation of User Interface]
To comply with House Rules regarding non-English UI, here is the translation of the updated settings menu:
1. Visual dos Rótulos (Visuals)
Mostrar Nomes = Show Names
Mostrar Preços = Show Prices
Fonte = Font Size
2. Posicionamento & Extensão (Geometry)
Tipo de Extensão = Extension Type (Fixed Bars vs. Time Target)
Alvo Temporal (Terminus) = Time Target (Next Midnight, +1h, NY Close, etc.)
Distância = Distance (Bars)
3. Escalonamento Vertical (Vertical Staggering)
Ativar Escada = Enable Staggering (Anti-Overlap)
Distância entre Degraus = Step Distance
4. Dashboard
Exibir Tabela = Show Table
Posição = Position
Tema Visual = Visual Theme (Dark/Light)
5. Ghost Protocol (Mitigation)
Ativar Mitigação = Enable Mitigation
Mitigar Históricos (Qs)? = Mitigate Quarterly Levels?
Estilo = Style (Ghost vs. Cut Line)
Cor Ghost = Ghost Color
6. Níveis (Levels)
Diário/Semanal/Mensal/Anual = Daily/Weekly/Monthly/Yearly (PDH/L to PYH/L)
Mid (50%) = Midpoint
Histórico Trimestral (Q1-Q4) = Quarterly History
7. True Opens (Session Opens)
Midnight Open = 00:00 NY Open
NY Open = 08:30 NY
Stocks Open = 09:30 NY
Prev Day Close = Previous Day Close
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט מוגן
סקריפט זה פורסם כמקור סגור. עם זאת, תוכל להשתמש בו בחופשיות וללא כל מגבלות – למד עוד כאן
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.