Sultan Gold Levels (SMC, Sessions & Structure)This indicator is a comprehensive "Smart Money Concepts" (SMC) and Market Structure suite designed to declutter charts by combining multiple technical analysis tools into a single, cohesive overlay.
Instead of using separate indicators for Sessions, Market Structure, and Fibonacci levels, this script integrates them to help traders identify "Confluence" areas—specifically where structural levels align with session opens or psychological price points.
█ HOW IT WORKS & CALCULATIONS
1. Market Structure (BOS / CHoCH):
The script utilizes a Pivot High/Low algorithm (user-defined length, default 5) to identify structural points (HH, LL, LH, HL).
- Break of Structure (BOS): Triggered when price closes beyond a previous pivot. The script includes a "Real vs. Fake" validation filter.
- Validation Logic: A "Real" BOS requires the candle body to close past the level with specific volume and displacement thresholds (ATR based). Wicks piercing a level are marked as "Fake" or weak breaks.
2. Order Blocks (OB) & FVG:
- Order Blocks are identified by analyzing the last opposing candle before a significant move that breaks structure. The script filters these based on a volume/ATR strength multiplier to ensure only significant institutional candles are highlighted.
- Mitigation: The script automatically removes Order Blocks once price has revisited (mitigated) them, keeping the chart clean.
3. Session Ranges:
The script tracks and plots the Highs and Lows of major trading sessions (Asian, London, New York).
- Logic: It uses `time()` functions to capture the highest and lowest points during specific UTC hours. These levels often act as liquidity pools for the subsequent session.
4. Fibonacci & Liquidity:
- Auto-Fibonacci: Automatically anchors to the most recent significant swing high/low sequence to project retracement levels (specifically the 50% and 61.8% "Golden Pocket").
- Liquidity: Detects "Equal Highs" (EQH) and "Equal Lows" (EQL) by comparing adjacent pivot points within a percentage threshold (0.15% default), highlighting areas where stop-losses may reside.
█ FEATURES
- Multi-Timeframe Dashboard: Displays trend bias (D1, H4, H1) and current session status.
- Previous Day/Week/Month Levels: Auto-plots PDH/PDL, PWH/PWL as static support/resistance lines.
- Psychological Levels: Auto-plots round numbers (e.g., xx00, xx50).
- Customizable Alerts: Alerts for BOS, OB formation, and level touches.
█ SETTINGS
- Structure Length: Adjusts the sensitivity of the pivot detection.
- Session Times: Fully customizable time inputs for Asia/London/NY.
- Styling: Toggle specific elements (like Sessions or FVGs) on/off to suit your trading style.
█ CREDITS
This script utilizes standard Smart Money Concept theories widely discussed in the technical analysis community. The pivot detection logic is based on standard high/low comparisons common in Pine Script open-source libraries.
Penunjuk Pine Script®






















