HH/HL/LH/LL Swing Map

Overview
The HH/HL/LH/LL Swing Map is a Pine Script v6 indicator for TradingView that classifies market structure swings in real time. It identifies and labels Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) using verified pivot logic, ensuring accuracy without repainting. Custom non-repainting comparisons support reliable structure mapping. Designed for price action traders, it provides a clear, systematic view of evolving swing structure directly on the chart.
How It Works
The indicator uses ta.pivothigh and ta.pivotlow functions with configurable left/right bar settings to verify swing points—delaying labels until full verification for no repaints. Each verified pivot is compared to the previous swing of the same type: If a new high is above the prior high, it is marked as HH; otherwise, LH. If a new low is above the prior low, it is marked as HL; otherwise, LL. Labels and optional triangle markers are plotted on the exact bar where the swing confirms, with customizable offsets in ticks for consistent placement. Users can also enable connection lines between consecutive highs or lows, providing a simple zigzag visualization of structure shifts.
Key Features
• Non-Repainting Logic: Uses verified pivots (bar_index - rightBars) for accurate HH/HL/LH/LL classification.
• Customizable Labels: Adjustable colors, offsets, and visibility for clean chart integration.
• Optional Connection Lines: Connects successive highs and lows to highlight market structure flow.
• Trend Clarity: Quickly distinguishes bullish (HH/HL) and bearish (LH/LL) conditions.
• Alerts Built-In: Alert conditions trigger when new HH, HL, LH, or LL points are verified.
• Lightweight Design: Refined for fast rendering without cluttering the chart.
What It Displays
The indicator plots visual labels and markers for each verified structural pivot (HH, HL, LH, LL). It can also draw connecting lines between pivots to form a simplified swing map of price action. These elements help traders spot shifts in trend direction, continuation, and reversal zones.
Originality
This is an original Pine v6 implementation. It applies verified pivot logic, label/line management, and alert conditions.
Common Ways People Use It
• Price action traders mapping bullish or bearish structure (HH/HL vs. LH/LL).
• Swing traders validating entry/exit signals with structural verification.
• Technical analysts combining market structure with support/resistance or supply/demand zones.
• Day traders monitoring micro-structure shifts for intraday scalping strategies.
Configuration Notes
Users can adjust left/right bar counts for swing verification, label and triangle visibility, line drawing options, and color schemes. Offsets allow labels to remain readable across symbols and timeframes. Alerts may be set for specific structure changes (e.g., “New Higher High Verified”).
Legal Disclaimer
These indicators are for informational and educational purposes only—not investment, financial, or trading advice. Past performance is not indicative of future results; trading involves high risk of loss. Provided "as is" with no warranties. Consult a qualified professional before decisions. By using, you assume all risk and agree to this disclaimer.
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com TradingScriptSolutions.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.
Instruções do autor
Aviso legal
Script sob convite
Somente usuários aprovados pelo autor podem acessar este script. Você precisará solicitar e obter permissão para usá-lo. Normalmente, essa permissão é concedida após o pagamento. Para obter mais detalhes, siga as instruções do autor abaixo ou entre em contato diretamente com TradingScriptSolutions.
O TradingView NÃO recomenda pagar ou usar um script ao não ser que você confie totalmente no seu autor e compreende como isso funciona. Você pode também encontrar alternativas gratuitas e de código aberto em nossa comunidade de scripts.