OPEN-SOURCE SCRIPT
Bullish Market Structure HH HL

This indicator identifies bullish market structure by automatically marking Higher Highs (HH) and Higher Lows (HL) on the price chart using pivot-based logic.
It helps traders visually understand trend direction, structure strength, and key swing points without clutter or repainting.
🔧 How the Indicator Works
1️⃣ Pivot Lookback Input
The indicator uses a user-defined pivot lookback length
This value controls how many candles are required to confirm a swing high or swing low
2️⃣ Pivot High & Pivot Low Detection
Pivot High marks a confirmed swing high
Pivot Low marks a confirmed swing low
Pivots are confirmed only after price action completes, making the indicator non-repainting
📈 Market Structure Labels
🟢 Higher High (HH)
Displayed at confirmed swing highs
Indicates bullish momentum and trend continuation
Shown with a downward-pointing green label
🟢 Higher Low (HL)
Displayed at confirmed swing lows
Represents strong demand and trend support
Shown with an upward-pointing green label
✅ Key Features
Non-repainting pivot logic
Clean and minimal visual design
Works on all markets and timeframes
Beginner-friendly and professional-grade
📌 Trading Use Case
Identify bullish trends using HH–HL sequences
Confirm healthy pullbacks in an uptrend
Combine with support/resistance, trendlines, or higher-timeframe bias
⚠️ Disclaimer
This indicator is a market structure visualization tool, not a complete trading system.
Always use proper risk management and additional confirmation.
It helps traders visually understand trend direction, structure strength, and key swing points without clutter or repainting.
🔧 How the Indicator Works
1️⃣ Pivot Lookback Input
The indicator uses a user-defined pivot lookback length
This value controls how many candles are required to confirm a swing high or swing low
2️⃣ Pivot High & Pivot Low Detection
Pivot High marks a confirmed swing high
Pivot Low marks a confirmed swing low
Pivots are confirmed only after price action completes, making the indicator non-repainting
📈 Market Structure Labels
🟢 Higher High (HH)
Displayed at confirmed swing highs
Indicates bullish momentum and trend continuation
Shown with a downward-pointing green label
🟢 Higher Low (HL)
Displayed at confirmed swing lows
Represents strong demand and trend support
Shown with an upward-pointing green label
✅ Key Features
Non-repainting pivot logic
Clean and minimal visual design
Works on all markets and timeframes
Beginner-friendly and professional-grade
📌 Trading Use Case
Identify bullish trends using HH–HL sequences
Confirm healthy pullbacks in an uptrend
Combine with support/resistance, trendlines, or higher-timeframe bias
⚠️ Disclaimer
This indicator is a market structure visualization tool, not a complete trading system.
Always use proper risk management and additional confirmation.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Market Analyst | XAUUSD (Gold)
Technical analysis, price-action breakdowns, and strategic market perspectives.
For additional setups and exclusive updates, join via the Telegram link.
t.me/+rTz0JNwLuSwyMzY0
Technical analysis, price-action breakdowns, and strategic market perspectives.
For additional setups and exclusive updates, join via the Telegram link.
t.me/+rTz0JNwLuSwyMzY0
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Market Analyst | XAUUSD (Gold)
Technical analysis, price-action breakdowns, and strategic market perspectives.
For additional setups and exclusive updates, join via the Telegram link.
t.me/+rTz0JNwLuSwyMzY0
Technical analysis, price-action breakdowns, and strategic market perspectives.
For additional setups and exclusive updates, join via the Telegram link.
t.me/+rTz0JNwLuSwyMzY0
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.