PROTECTED SOURCE SCRIPT
Structure & FVG Bias Analyzer — WS

🧠 Overview
The Structure & FVG Bias Analyzer — WS helps traders visualize market structure shifts, Fair Value Gaps (FVGs), and trend bias using EMA filtering.
It combines swing-based structural analysis (HH/HL/LH/LL) with smart-money FVG detection, creating a clean contextual view of where the market is expanding or consolidating.
Ideal for Futures, Crypto, and Smart Money traders who need bias clarity before executing entries.
📊 Structure & Bias Logic
🟢 Bullish Context: price breaking above previous highs + EMA200 confirmation.
🔴 Bearish Context: price breaking below previous lows + EMA200 confirmation.
🟡 Neutral/Inside: price consolidating between last swing points.
🟠 EMA200 Line: long-term trend filter (optional).
🧩 Fair Value Gaps (FVGs)
Detects imbalances left by strong moves, often used by institutional trading models.
🟩 FVG↑ → Bullish gap below the candle.
🟥 FVG↓ → Bearish gap above the candle.
These areas frequently act as liquidity magnets or retest zones for continuation trades.
💡 How to Use
1️⃣ Identify structural bias
Green background → bullish market structure.
Red background → bearish structure.
No tint → neutral / range phase.
2️⃣ Locate FVG zones
Circles mark potential imbalances for reaction or continuation setups.
3️⃣ Confirm with EMA200
Only trade in the direction of EMA alignment.
4️⃣ Combine with volatility tools
For example, use this with your Squeeze + Short/Long (Futures) — WS indicator to time entries during volatility expansion once the structure bias is confirmed.
⚙️ Recommended Settings
Component Default Description
Swing Len 3 Pivot sensitivity (swing size)
EMA Len 200 Directional bias filter
FVG Lookback 20 Search range for fair value gaps
🧭 Trading Idea
Use FVGs as retracement zones within confirmed structural bias.
Wait for price to retest an FVG in the direction of bias (Green/Red background).
Combine with volume or volatility expansion tools for high-probability setups.
🧾 Credits
Created with ❤️ by WS Trading Tools
© 2025 GuidoT. Built in Pine Script v6.
Part of the WS Smart Structure Suite for precision trend and liquidity analysis.
The Structure & FVG Bias Analyzer — WS helps traders visualize market structure shifts, Fair Value Gaps (FVGs), and trend bias using EMA filtering.
It combines swing-based structural analysis (HH/HL/LH/LL) with smart-money FVG detection, creating a clean contextual view of where the market is expanding or consolidating.
Ideal for Futures, Crypto, and Smart Money traders who need bias clarity before executing entries.
📊 Structure & Bias Logic
🟢 Bullish Context: price breaking above previous highs + EMA200 confirmation.
🔴 Bearish Context: price breaking below previous lows + EMA200 confirmation.
🟡 Neutral/Inside: price consolidating between last swing points.
🟠 EMA200 Line: long-term trend filter (optional).
🧩 Fair Value Gaps (FVGs)
Detects imbalances left by strong moves, often used by institutional trading models.
🟩 FVG↑ → Bullish gap below the candle.
🟥 FVG↓ → Bearish gap above the candle.
These areas frequently act as liquidity magnets or retest zones for continuation trades.
💡 How to Use
1️⃣ Identify structural bias
Green background → bullish market structure.
Red background → bearish structure.
No tint → neutral / range phase.
2️⃣ Locate FVG zones
Circles mark potential imbalances for reaction or continuation setups.
3️⃣ Confirm with EMA200
Only trade in the direction of EMA alignment.
4️⃣ Combine with volatility tools
For example, use this with your Squeeze + Short/Long (Futures) — WS indicator to time entries during volatility expansion once the structure bias is confirmed.
⚙️ Recommended Settings
Component Default Description
Swing Len 3 Pivot sensitivity (swing size)
EMA Len 200 Directional bias filter
FVG Lookback 20 Search range for fair value gaps
🧭 Trading Idea
Use FVGs as retracement zones within confirmed structural bias.
Wait for price to retest an FVG in the direction of bias (Green/Red background).
Combine with volume or volatility expansion tools for high-probability setups.
🧾 Credits
Created with ❤️ by WS Trading Tools
© 2025 GuidoT. Built in Pine Script v6.
Part of the WS Smart Structure Suite for precision trend and liquidity analysis.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.