OPEN-SOURCE SCRIPT
Institutional Structure [Clean Pro]

Institutional Structure [Clean Pro] — Script Explanation
This script is designed to map institutional market behavior using high-timeframe structure, not retail noise.
It focuses on where smart money acts, not on frequent signals.
🔹 1. High-Timeframe Support & Resistance (HTF S/R)
The script identifies major structural highs and lows using a higher lookback period.
Purpose:
Defines where institutions previously distributed or accumulated
Acts as natural decision zones
Filters out low-quality intraday levels
Why it matters:
Institutions trade from key HTF levels, not random support/resistance.
🔹 2. Equilibrium (50% Mean Price)
The equilibrium line represents the fair price between HTF high and low.
How it’s used:
Below equilibrium → discount zone (buy interest)
Above equilibrium → premium zone (sell interest)
Professional insight:
Smart money prefers buying discounts and selling premiums, not chasing price.
🔹 3. Market Structure Shift (MSS)
Instead of frequent BOS labels, the script detects true directional shifts.
Bullish MSS:
Price closes above previous HTF high
Bearish MSS:
Price closes below previous HTF low
Why MSS over BOS:
MSS confirms control change
Reduces false signals
Aligns with institutional execution logic
🔹 4. Liquidity Sweep Detection (Wick-Based)
The script identifies stop-hunt behavior using wick rejection logic.
Buy-side liquidity:
Wick above HTF high, but close back below
Sell-side liquidity:
Wick below HTF low, but close back above
Meaning:
Stops were triggered, but price failed to accept → smart money absorption
🔹 5. Fair Value Gap (FVG) – Refined Imbalance
Fair Value Gaps highlight inefficient price movement.
Bullish FVG:
Price leaves an upside imbalance
Bearish FVG:
Price leaves a downside imbalance
How pros use it:
As reaction zones, not entry signals
Best combined with liquidity + MSS
🔍 How Everything Works Together
The script is context-based, not signal-based:
1️⃣ HTF structure defines the battlefield
2️⃣ Liquidity is taken (stop hunts)
3️⃣ MSS confirms direction
4️⃣ FVG offers precision
5️⃣ Equilibrium filters bias
This creates high-probability trade environments, not overtrading.
📌 Best Practices (Professional Use)
Timeframes: 1H / 4H / Daily
Avoid lower TF noise
Trade only after liquidity is taken
Use FVG as confirmation, not trigger
Respect equilibrium bias
🎯 Summary
✔ Clean institutional logic
✔ No clutter, no spam
✔ HTF-driven decisions
✔ Liquidity-first mindset
✔ Designed for BTC, Gold & FX
🧠 Trade where institutions trade — not where indicators flash.
This script is designed to map institutional market behavior using high-timeframe structure, not retail noise.
It focuses on where smart money acts, not on frequent signals.
🔹 1. High-Timeframe Support & Resistance (HTF S/R)
The script identifies major structural highs and lows using a higher lookback period.
Purpose:
Defines where institutions previously distributed or accumulated
Acts as natural decision zones
Filters out low-quality intraday levels
Why it matters:
Institutions trade from key HTF levels, not random support/resistance.
🔹 2. Equilibrium (50% Mean Price)
The equilibrium line represents the fair price between HTF high and low.
How it’s used:
Below equilibrium → discount zone (buy interest)
Above equilibrium → premium zone (sell interest)
Professional insight:
Smart money prefers buying discounts and selling premiums, not chasing price.
🔹 3. Market Structure Shift (MSS)
Instead of frequent BOS labels, the script detects true directional shifts.
Bullish MSS:
Price closes above previous HTF high
Bearish MSS:
Price closes below previous HTF low
Why MSS over BOS:
MSS confirms control change
Reduces false signals
Aligns with institutional execution logic
🔹 4. Liquidity Sweep Detection (Wick-Based)
The script identifies stop-hunt behavior using wick rejection logic.
Buy-side liquidity:
Wick above HTF high, but close back below
Sell-side liquidity:
Wick below HTF low, but close back above
Meaning:
Stops were triggered, but price failed to accept → smart money absorption
🔹 5. Fair Value Gap (FVG) – Refined Imbalance
Fair Value Gaps highlight inefficient price movement.
Bullish FVG:
Price leaves an upside imbalance
Bearish FVG:
Price leaves a downside imbalance
How pros use it:
As reaction zones, not entry signals
Best combined with liquidity + MSS
🔍 How Everything Works Together
The script is context-based, not signal-based:
1️⃣ HTF structure defines the battlefield
2️⃣ Liquidity is taken (stop hunts)
3️⃣ MSS confirms direction
4️⃣ FVG offers precision
5️⃣ Equilibrium filters bias
This creates high-probability trade environments, not overtrading.
📌 Best Practices (Professional Use)
Timeframes: 1H / 4H / Daily
Avoid lower TF noise
Trade only after liquidity is taken
Use FVG as confirmation, not trigger
Respect equilibrium bias
🎯 Summary
✔ Clean institutional logic
✔ No clutter, no spam
✔ HTF-driven decisions
✔ Liquidity-first mindset
✔ Designed for BTC, Gold & FX
🧠 Trade where institutions trade — not where indicators flash.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
Expert Gold Analyst | XAU/USD
Mastery Unlock trading success with premium strategies!
Exclusive signals & live trades.& pro education
Daily updates for all VIP members Join our active Telegram traders hub: t.me/+z7y8oqqYs9ZhNjBk
Mastery Unlock trading success with premium strategies!
Exclusive signals & live trades.& pro education
Daily updates for all VIP members Join our active Telegram traders hub: t.me/+z7y8oqqYs9ZhNjBk
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
Expert Gold Analyst | XAU/USD
Mastery Unlock trading success with premium strategies!
Exclusive signals & live trades.& pro education
Daily updates for all VIP members Join our active Telegram traders hub: t.me/+z7y8oqqYs9ZhNjBk
Mastery Unlock trading success with premium strategies!
Exclusive signals & live trades.& pro education
Daily updates for all VIP members Join our active Telegram traders hub: t.me/+z7y8oqqYs9ZhNjBk
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน