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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
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
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
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
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน