OPEN-SOURCE SCRIPT
🟡 GOLD 4H HUD v8.9 — Loose ICT OB + Strong/Weak + FVG/HVN/LVN

GOLD 4H HUD v8.9 is a clean, structured Smart Money Concepts (SMC)–based analysis tool designed exclusively for XAUUSD on the 4-hour timeframe.
It focuses on the three most important elements for institutional orderflow analysis:
✔ Loose ICT Order Blocks (Demand/Supply)
✔ Fair Value Gaps (FVG)
✔ Volume Profile Zones (HVN/LVN/POC)
The script builds a professional-style HUD that displays the key institutional regions and structural levels that matter most for gold traders.
📌 Key Features
1 — Market Structure Engine (HH/HL & BOS)
The indicator detects:
Minor swing Highs and Lows
Last confirmed HH / HL levels
Break of Structure (BOS) for directional bias
EMA-200 trend filter (UP / DOWN / NEUTRAL)
This gives traders a clean structural read without clutter or noise.
2 — Loose FVG Engine (Tolerance-Based ICT Gaps)
A soft-threshold FVG engine detects “loose” Fair Value Gaps using a 0.1% price tolerance.
This method ensures:
Fewer missed imbalances
Cleaner OB/FVG alignment
Higher accuracy on 4H gold displacement legs
FVGs automatically shift to the right side of the chart for clean visualization.
3 — Order Block Engine (Demand/Supply + Strong/Weak Classification)
A simplified ICT-style OB engine scans the past few candles whenever BOS is detected.
It identifies:
Demand OB during bullish BOS
Supply OB during bearish BOS
Strong OB if fully nested inside an active FVG
Weak OB otherwise
OB boxes include:
Clear color coding (strong vs. weak)
Price range labels inside each box
Automatic right-shift for visual clarity
4 — Volume Profile Engine (POC / HVN / LVN / VAH / VAL)
Based on a rolling window (default 120 bars), the script builds a lightweight volume distribution.
It displays:
POC (Point of Control)
HVN (High Volume Node)
LVN (Low Volume Node)
Value Area High / Low
HVN/LVN zones are shown as right-shifted colored boxes with price labels.
These zones help identify:
Institutional accumulation
Low-liquidity rejection points
Areas where price tends to react strongly
5 — Support / Resistance Mapping
The script automatically generates:
OB-based support/resistance
Swing-high/swing-low levels
HVN/LVN structural levels
These are displayed in the HUD for fast reference.
6 — Professional HUD Panel
A compact, easy-to-read HUD summarizes:
Trend direction
Latest HH/HL
OB ranges (Strong/Weak)
HVN/LVN price zones
POC
Multi-layer support & resistance
This turns the script into a fully functional analysis dashboard.
📌 What This Indicator Is NOT
To avoid misunderstanding:
It does not take entries or generate buy/sell signals
It does not auto-detect CHOCH, MSS, SMT, or sweeps
It is not a trading bot
This tool is designed as an institutional-style map and analysis HUD, not a strategy.
📌 Best Use Case
This indicator is ideal for traders who want to:
Read institutional structure on XAUUSD
Identify clean Demand/Supply zones
Visualize FVG/OB/HVN interactions
Track high-value liquidity levels
Build directional bias on 4H before dropping to execution timeframes
⚠ Important Note
This tool is designed exclusively for the 4H timeframe.
Using it on lower timeframes will display a warning.
It focuses on the three most important elements for institutional orderflow analysis:
✔ Loose ICT Order Blocks (Demand/Supply)
✔ Fair Value Gaps (FVG)
✔ Volume Profile Zones (HVN/LVN/POC)
The script builds a professional-style HUD that displays the key institutional regions and structural levels that matter most for gold traders.
📌 Key Features
1 — Market Structure Engine (HH/HL & BOS)
The indicator detects:
Minor swing Highs and Lows
Last confirmed HH / HL levels
Break of Structure (BOS) for directional bias
EMA-200 trend filter (UP / DOWN / NEUTRAL)
This gives traders a clean structural read without clutter or noise.
2 — Loose FVG Engine (Tolerance-Based ICT Gaps)
A soft-threshold FVG engine detects “loose” Fair Value Gaps using a 0.1% price tolerance.
This method ensures:
Fewer missed imbalances
Cleaner OB/FVG alignment
Higher accuracy on 4H gold displacement legs
FVGs automatically shift to the right side of the chart for clean visualization.
3 — Order Block Engine (Demand/Supply + Strong/Weak Classification)
A simplified ICT-style OB engine scans the past few candles whenever BOS is detected.
It identifies:
Demand OB during bullish BOS
Supply OB during bearish BOS
Strong OB if fully nested inside an active FVG
Weak OB otherwise
OB boxes include:
Clear color coding (strong vs. weak)
Price range labels inside each box
Automatic right-shift for visual clarity
4 — Volume Profile Engine (POC / HVN / LVN / VAH / VAL)
Based on a rolling window (default 120 bars), the script builds a lightweight volume distribution.
It displays:
POC (Point of Control)
HVN (High Volume Node)
LVN (Low Volume Node)
Value Area High / Low
HVN/LVN zones are shown as right-shifted colored boxes with price labels.
These zones help identify:
Institutional accumulation
Low-liquidity rejection points
Areas where price tends to react strongly
5 — Support / Resistance Mapping
The script automatically generates:
OB-based support/resistance
Swing-high/swing-low levels
HVN/LVN structural levels
These are displayed in the HUD for fast reference.
6 — Professional HUD Panel
A compact, easy-to-read HUD summarizes:
Trend direction
Latest HH/HL
OB ranges (Strong/Weak)
HVN/LVN price zones
POC
Multi-layer support & resistance
This turns the script into a fully functional analysis dashboard.
📌 What This Indicator Is NOT
To avoid misunderstanding:
It does not take entries or generate buy/sell signals
It does not auto-detect CHOCH, MSS, SMT, or sweeps
It is not a trading bot
This tool is designed as an institutional-style map and analysis HUD, not a strategy.
📌 Best Use Case
This indicator is ideal for traders who want to:
Read institutional structure on XAUUSD
Identify clean Demand/Supply zones
Visualize FVG/OB/HVN interactions
Track high-value liquidity levels
Build directional bias on 4H before dropping to execution timeframes
⚠ Important Note
This tool is designed exclusively for the 4H timeframe.
Using it on lower timeframes will display a warning.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.