ICT Liquidity & OTE Engine - Real TimeICT Liquidity & OTE Engine - Real Time
This indicator is a comprehensive toolkit designed for traders utilizing Inner Circle Trader (ICT) concepts. It automates the identification of key structural liquidity pools (Buy Side & Sell Side Liquidity) and calculates real-time Optimal Trade Entry (OTE) levels, allowing you to react instantly to market structure shifts and liquidity sweeps.
Core Features
1. Dynamic Liquidity Pools (BSL / SSL) The script uses pivot high and low logic to identify significant swing points where stop losses and breakout orders typically reside.
BSL (Buy Side Liquidity): Green lines extending from Pivot Highs. These represent areas where short sellers have stops (buy stops).
SSL (Sell Side Liquidity): Red lines extending from Pivot Lows. These represent areas where long traders have stops (sell stops).
2. Real-Time "Sweep" Detection Unlike static support/resistance indicators, this script reacts to live price action.
Visual Feedback: When price "sweeps" or purges a liquidity level (breaks a BSL or SSL line), the line style automatically changes from solid to dotted and becomes semi-transparent.
Why this matters: This provides immediate visual confirmation that a "Stop Hunt" has occurred, often a precursor to a Smart Money reversal.
3. Optimal Trade Entry (OTE) 70.5% The indicator continuously tracks the highest high and lowest low over a definable lookback period (default 40 bars) to establish the current dealing range.
It plots the 70.5% Fibonacci retracement level, which is the classic ICT "Sweet Spot" for entries during a retracement.
This removes the need to manually draw and redraw Fib tools every time the range expands.
4. Bullish Fair Value Gap (FVG) Markers The script highlights specific bars that exhibit bullish displacement gaps, aiding in the identification of strong buying pressure or potential entries after a liquidity sweep.
How It Works
Pivots: It calculates pivots based on your user-defined Lookback input (default 20). A higher number finds longer-term swings; a lower number finds short-term scalping levels.
Liquidity Logic: Once a pivot is confirmed, a line is projected forward. If the current live High or Low breaches this line, the script detects the liquidity run and alters the line's appearance.
OTE Logic: (Highest High - Lowest Low) * 0.705. This dynamic calculation ensures the OTE level moves with the market structure in real-time.
How to Use
Identify the Sweep: Wait for price to run a SSL (Red Line) or BSL (Green Line). Watch for the line to turn dotted, indicating the liquidity has been taken.
Wait for Displacement: Look for a reaction away from the sweep (e.g., a sharp move up after taking SSL).
Find the Entry: Look for price to retrace to the plotted OTE 70.5% Line, ideally aligning with a marked FVG square, to position yourself in alignment with Smart Money.
Settings
Pivot Lookback: Adjusts the sensitivity of the liquidity lines (Default: 20).
Show BSL/SSL Lines: Toggles the liquidity pools on/off.
Show OTE Levels: Toggles the real-time Fibonacci level.
OTE Line Color: Customize the visual style of your entry level.
Ict
Swing Zig Zag - Market Structure Indicator by Panda TradingOverview
The Swing Zig Zag indicator is a powerful tool for identifying market structure changes, Break of Structure (BOS), and Change of Character (CHoCH) patterns. It automatically detects and visualizes key price action levels, helping traders identify potential trend reversals and continuation patterns.
Key Features
📊 Market Structure Detection
- Break of Structure (BOS): Identifies when price breaks significant swing highs/lows, indicating trend continuation
- Change of Character (CHoCH): Detects trend reversals when price breaks counter-trend levels
- Visual ZigZag Lines: Connects CHoCH points to clearly visualize market structure flow
🎨 Customizable Display
- **Adjustable Pivot Length**: Control sensitivity of swing point detection (default: 5)
- **Two Detection Modes**:
- Extreme Points: Uses absolute highs and lows
- Adjusted Points: Dynamically adjusts levels for better accuracy
- **Line Limit Control**: Display up to 500 structure lines to keep charts clean
- **Color-Coded Levels**: Distinct colors for bullish/bearish BOS and CHoCH
⚡ Real-Time Alerts
- Built-in alert system for CHoCH detection
- Separate alerts for bullish and bearish changes
- Once-per-bar alert frequency to avoid spam
🔧 Customization Options
- ZigZag Lines: Toggle visibility, customize color, width, and style (Solid/Dashed/Dotted)
- Structure Lines: Show/hide market structure with adjustable display limit
- CHoCH Extension: Horizontal lines extend forward to highlight active levels
How to Use
1. Trend Following: Use BOS confirmations to enter in the direction of the trend
2. Reversal Trading: Watch for CHoCH signals indicating potential trend changes
3. Support/Resistance: CHoCH levels often act as key support and resistance zones
4. Market Structure: The zigzag pattern helps identify higher highs/lows and market phases
Settings
- Pivot Length: Controls sensitivity (lower = more signals, higher = stronger signals)
- Structure Limit: Number of historical structure lines to display (10-500)
- ZigZag Display: Toggle and customize the connecting lines between CHoCH points
- Mode Selection: Choose between Extreme Points or Adjusted Points for different trading styles
Best Practices
- Combine with other indicators for confirmation
- Use on higher timeframes for stronger signals
- Wait for candle close before acting on signals
- CHoCH levels can act as dynamic support/resistance
Technical Notes
- Maximum 5000 bars lookback
- Supports up to 500 lines and labels
- Optimized for performance on all timeframes
- Works on all markets: Forex, Crypto, Stocks, Indices
---
Perfect for: Price action traders, swing traders, and anyone looking to understand market structure and trend changes with clarity.
Smart Money Structure FilterEnglish Description
Overview
Smart Money Structure Analyzer is a professional trading tool that implements Smart Money Concepts (SMC) to identify key market structure shifts, Break of Structure (BOS), and Change of Character (CHoCH) patterns. This indicator helps traders follow the "smart money" flow by detecting institutional order flow patterns on any timeframe.
Key Features
Swing Point Detection - Identifies significant highs and lows using fractal-based logic
Market Structure Analysis - Classifies market conditions as Uptrend, Downtrend, or Consolidation
Break of Structure (BOS) - Detects when price breaks key structural levels
Change of Character (CHoCH) - Identifies potential trend reversals
Mitigation Levels - Shows potential retracement targets after structure breaks
How It Works
The indicator analyzes price action through several layers:
Swing Detection Algorithm
Uses a configurable swing period (3-21 bars)
Identifies valid swing highs and lows that are confirmed by surrounding price action
Stores the last 20 swings for structure analysis
Structure Determination
Uptrend: Higher Highs (HH) + Higher Lows (HL)
Downtrend: Lower Lows (LL) + Lower Highs (LH)
Consolidation: Mixed structure or ranging market
Break of Structure (BOS) Logic
Bearish BOS: Price closes below the last confirmed Higher Low (HL)
Bullish BOS: Price closes above the last confirmed Lower High (LH)
Change of Character (CHoCH) Logic
Bearish CHoCH: After a bearish BOS, price forms a Lower Low (confirms trend reversal)
Bullish CHoCH: After a bullish BOS, price forms a Higher High (confirms trend reversal)
Mitigation Levels
Calculates potential retracement levels after BOS (typically ±0.2% from broken structure)
Visual Elements
Fractals: Swing points (optional display)
Structure Lines: Last Higher Low (blue) and Last Lower High (purple)
BOS Signals: Triangles marking structure breaks
CHoCH Signals: Circles confirming trend changes
Mitigation Levels: Dotted orange lines for potential retracements
Info Label: Real-time structure status and key levels
Alerts
The indicator provides alerts for:
Break of Structure (BOS) events
Change of Character (CHoCH) confirmations
Settings
Swing Period: Sensitivity of swing detection (default: 3)
Show Fractals: Toggle swing point markers
Show Structure Lines: Display key structure levels
Show Break of Structure: Display BOS signals
Show Change of Character: Display CHoCH signals
Show Mitigation Levels: Display retracement levels
Best Practices
Use on higher timeframes (1H+) for more reliable signals
Combine with volume analysis for confirmation
Wait for CHoCH confirmation before entering trades
Use mitigation levels as potential entry zones
Русское описание
Обзор
Smart Money Structure Analyzer - профессиональный торговый инструмент, реализующий концепции Smart Money (SMC) для определения ключевых сдвигов рыночной структуры, Break of Structure (BOS) и Change of Character (CHoCH). Индикатор помогает отслеживать поток "умных денег", выявляя паттерны институционального ордерного потока на любом таймфрейме.
Ключевые возможности
Определение свингов - Выявляет значимые максимумы и минимумы с помощью фрактальной логики
Анализ структуры рынка - Классифицирует состояние рынка: Восходящий тренд, Нисходящий тренд или Консолидация
Break of Structure (BOS) - Обнаружение пробития ключевых уровней структуры
Change of Character (CHoCH) - Определение потенциальных разворотов тренда
Уровни митигации - Показывает потенциальные цели отката после пробоя структуры
Принцип работы
Индикатор анализирует ценовое действие через несколько уровней:
Алгоритм определения свингов
Использует настраиваемый период свинга (3-21 свечи)
Определяет валидные максимумы и минимумы, подтвержденные окружающим движением цены
Сохраняет последние 20 свингов для анализа структуры
Определение структуры
Восходящий тренд: Higher Highs (HH) + Higher Lows (HL)
Нисходящий тренд: Lower Lows (LL) + Lower Highs (LH)
Консолидация: Смешанная структура или флет
Логика Break of Structure (BOS)
Медвежий BOS: Цена закрывается ниже последнего Higher Low (HL)
Бычий BOS: Цена закрывается выше последнего Lower High (LH)
Логика Change of Character (CHoCH)
Медвежий CHoCH: После медвежьего BOS формируется Lower Low (подтверждает разворот)
Бычий CHoCH: После бычьего BOS формируется Higher High (подтверждает разворот)
Уровни митигации
Расчет потенциальных уровней отката после BOS (обычно ±0.2% от сломанной структуры)
Визуальные элементы
Фракталы: Точки свингов (опционально)
Линии структуры: Последний Higher Low (синий) и последний Lower High (фиолетовый)
Сигналы BOS: Треугольники, отмечающие пробой структуры
Сигналы CHoCH: Круги, подтверждающие изменение тренда
Уровни митигации: Пунктирные оранжевые линии для потенциальных откатов
Инфо-метка: Статус структуры и ключевые уровни в реальном времени
Оповещения
Индикатор предоставляет алерты для:
Событий Break of Structure (BOS)
Подтверждений Change of Character (CHoCH)
Настройки
Период свинга: Чувствительность определения свингов (по умолчанию: 3)
Показывать фракталы: Включение/выключение маркеров свингов
Показывать линии структуры: Отображение ключевых уровней структуры
Показывать Break of Structure: Отображение сигналов BOS
Показывать Change of Character: Отображение сигналов CHoCH
Показывать уровни митигации: Отображение уровней отката
Рекомендации по использованию
Используйте на старших таймфреймах (1H+) для более надежных сигналов
Комбинируйте с анализом объема для подтверждения
Ждите подтверждения CHoCH перед входом в сделку
Используйте уровни митигации как потенциальные зоны входа
Технические особенности
Максимальное количество меток: 500
Работает на любых таймфреймах
Не перерисовывает прошлые сигналы
Эффективно использует ресурсы благодаря ограничению хранения свингов
Индикатор предназначен для трейдеров, работающих с Price Action и концепциями Smart Money, и помогает систематизировать анализ рыночной структуры в соответствии с подходами институциональных трейдеров.
TTC Open Lines v1This liquidity-based key level indicator displays previous highs and lows from the daily, weekly, monthly, quarterly, and yearly charts. These price levels serve as important reference points in the trading of any market or financial instrument.
They also represent high-probability reaction zones, making them ideal areas to look for trades using simple confirmation patterns.
Each level plays a crucial role in determining whether the market is likely to continue its current trend or reverse direction. I like to think of these levels as two magnets — they can either attract price or push it away.
You might wonder how two opposing behaviors can both be useful. The key is to remain directionally neutral and develop your own set of rules to identify when price is more likely to react by being drawn toward these areas or rejected from them.
I have my own rules for this, and you can develop a framework that fits your own trading style as well.
ICT Internal Levels [Amaan] 🔷 OVERVIEW
The ICT Internal Levels is a comprehensive institutional analysis suite designed to bridge the gap between subjective price action and objective algorithmic logic. This script automates the detection of core ICT pillars—Liquidity, Time, and Displacement—into a single, high-performance interface.
🧠 The Core Engine
Unlike standard support/resistance indicators, this script uses a dynamic state-tracking system to identify institutional interest zones. It manages historical levels using memory-efficient User-Defined Types (UDTs) and arrays, ensuring that only the most relevant "unswept" liquidity remains on your chart.
🛠 Key Features
• Auto IFVG Checklist: A real-time confluence engine that "grades" market conditions from C to A+ by cross-verifying Liquidity Sweeps, Midnight Open Bias, and HTF Delivery.
• SMT Divergence Engine: A dual-mode detector (Adjacent & Structural) that identifies cracks in correlation between correlated assets (e.g., NQ/ES) with built-in dynamic invalidation.
• Algorithmic Macros: Six fully customizable time-anchored sessions (New York local time) that highlight the specific "killzones" where institutional volatility is highest.
• Internal Liquidity Scanner: A multi-timeframe scanner for Equal Highs (EQH) and Equal Lows (EQL) that identifies the "Draw on Liquidity" across 1m to 15m charts.
• Institutional Bias Framework: Automatically anchors the Midnight Opening Price to determine Daily Equilibrium (Discount vs. Premium arrays).
📈 Why Use This Script?
This tool is built for the "Smarter Trader." It removes the guesswork from ICT concepts by providing:
1. Objectivity: Know exactly when a setup has enough confluence via the automated Checklist.
2. Clarity: Clear visual distinction between Major and Minor liquidity levels.
3. Risk Management: Automated "Breakeven" logic prompts you when the stop-run phase is likely complete.
📝 Technical Implementation
This version is optimized for speed and accuracy. It features zero repainting on the checklist and SMT components by utilizing closed-candle verification. The UI is fully customizable, allowing you to tailor the dashboard to your specific trading style.
🟢 Advanced BSL & SSL Liquidity Engine
The core of this script is a sophisticated tracking system for Buyside Liquidity (BSL) and Sellside Liquidity (SSL). In institutional trading (ICT), these aren't just highs and lows; they are "Liquidity Pools" where retail stop-losses (buy/sell stops) are clustered, acting as magnets for the market algorithm.
1. The Logic of "Parent Swings"
Unlike basic indicators that mark every fractal high/low, this script uses a Swing Strength filter. It only identifies levels after they have been confirmed by a specific number of bars on either side (lookback/lookforward). This ensures the levels represent significant structural points where true "Smart Money" liquidity resides.
2. Major vs. Minor Classification (The Volatility Filter)
The script includes an intelligent classification system based on the Major Level Threshold %:
• The Calculation: Once a pivot is formed, the script measures the displacement away from that level.
• The Depth: If price expands by more than \bm{X\%} (e.g., 0.5%) after forming a high, it is labeled a "Major BSL".
This tells the trader that this level protected a significant move, making the liquidity sitting above it even more valuable to the algorithm.
3. Proximity Logic: Relatively Equal Highs/Lows (REQH/REQL)
The script features an internal "Proximity Scan." It automatically evaluates the distance between active liquidity levels:
• Logic: If two BSL levels are within a defined price threshold (\bm{REQ\_THRESHOLD}), the script identifies them as Relatively Equal Highs.
• Trading Insight: In ICT concepts, equal highs/lows are "engineered liquidity." The market is much more likely to run through these levels aggressively because there is a double layer of stops resting there.
4. Automated Level Management & Mitigation
To prevent "chart clutter," the script uses Custom Types and Arrays to manage levels dynamically:
• Mitigation (The Purge): As soon as price trades through a level, it is considered "mitigated" or "purged."
• Traded-Through Memory: You can toggle a setting to keep these levels visible. If enabled, the script stops extending the line and reduces its opacity (e.g., to 25%), leaving a "ghost level" on the chart. These often act as S/R Flips or support/resistance zones in future sessions.
📝 Logic behind it
• Methodology: The script utilizes the method keyword in Pine Script v6 to create clean, object-oriented code for level deletion and updates.
• Performance: By using array.unshift() and array.remove(), the script maintains a FIFO (First-In-First-Out) queue. This ensures that even on high-volatility days, the script never exceeds the 500-line drawing limit, maintaining smooth chart performance.
• Coordinate Precision: Lines are pinned using bar_index , ensuring that the line starts at the exact wick peak, providing pixel-perfect accuracy for liquidity analysis.
🟢 Institutional Macro Sessions
In the ICT methodology, Time is the primary filter. Price levels only become significant when they are reached at specific times of the day. This script automates the detection of Algorithmic Macros—tight 20-to-30-minute windows where the "Interbank Price Delivery Algorithm" (IPDA) is programmed to execute specific volatility injections.
1. Algorithmic Directives
During these highlighted windows, the market is not moving randomly. The algorithm is usually "called" to perform one of three tasks:
• Liquidity Purge: A quick run to stop out retail traders at a previous High (BSL) or Low (SSL).
• Rebalancing: Returning to a Fair Value Gap (FVG) or "Imbalance" to seek equilibrium.
• Expansion: Moving rapidly from an internal range toward a higher-timeframe target.
2. The 6 Tracked Macros
Your script identifies the most vital institutional windows for the New York session:
• AM Macro 1 (08:50 – 09:10): Often used for "Setting the Stage" or manipulation before the Equities Open.
• AM Macro 2 (09:50 – 10:10): A high-probability execution window often coinciding with the "Silver Bullet" setup.
• AM Macro 3 (10:50 – 11:10): Frequently marks the "Trend Continuation" or the start of a midday reversal.
• Lunch Macro (11:50 – 12:10): Algorithmic rebalancing before the PM session.
• PM Macro (13:10 – 13:40): The kick-off for the afternoon trend and London Close volatility.
• Last Hour Macro (15:15 – 15:45): The final algorithmic rebalancing before the New York "MOC" (Market On Close) orders.
3. Behind the Logic: Timezone Synchronization
A major technical challenge in Pine Script is ensuring time-boxes align correctly regardless of the user's local clock
• The Solution: This script utilizes a Timezone Shift parameter combined with the timestamp() function.
• Logic: It anchors the calculation to the chart’s syminfo.timezone and then offsets it to match New York Local Time.
This ensures that even if you are trading from London, Tokyo, or Dubai, the "09:50 Macro" will always plot exactly when the New York algorithms become active.
🟢 Multi-Timeframe Liquidity Scanner (EQH/EQL)
One of the most powerful features of V2 is the Stable Deep Scan Logic. Unlike basic fractal indicators, this script doesn't just mark any two similar peaks; it performs a rigorous historical audit of the price action.
The "Unswept" Logic
The table is powered by a custom function, check_liquidity_deep(), which executes a two-stage verification:
1. Detection: It scans a lookback window (default 300 bars) to find price points that are mathematically equal.
2. Verification: Once a level is found, the script runs a secondary loop to ensure that no intervening candle has breached (swept) that level. If a higher high has occurred between the level formation and the current bar, the level is discarded as "invalid/purged."
Data Visualization
The scanner requests this deep-scan data via request.security() for the 1m, 2m, 3m, 4m, 5m, and 15m timeframes simultaneously.
• EQH (Green/Red): Indicates a "Ceiling" of liquidity waiting to be raided.
• EQL (Red/Green): Indicates a "Floor" of sell-side liquidity.
• Both: Alerts the trader to a "bracketed" market, often preceding a high-volatility expansion.
• Memory Management: By using var array structures for SMT lines and labels, the script avoids the "Maximum Objects" limit often hit by lower-quality scripts.
• Optimization: The check_liquidity_deep function is designed to only trigger its heaviest calculations on the barstate.islast, ensuring your chart remains fluid and responsive even with multiple timeframes active.
• Coordinate Precision: The script uses xloc.bar_time for Macro lines to ensure they remain pinned to the correct NYC time regardless of the user's local computer clock or daylight savings shifts.
🟢 The Auto IFVG Checklist
The Auto IFVG Checklist in this script is a real-time confluence engine. It doesn't just display labels; it executes complex multi-timeframe scans and state-checks to verify if an institutional setup is currently active.
1. 🛡️ Liq Sweep (Liquidity Sweep)
Code Logic: high > high and close < high (for Bearish) or low < low and close > low (for Bullish).
• How it works: Your code identifies "Wick Manipulations." It flags a sweep when price breaches a previous candle's extremity but fails to hold that level on the close.
• Persistence: It uses swept_p with a ta.barssince lookback of 5 bars, meaning the "fuel" from the sweep remains valid for 5 candles after it occurs.
2. ⚡ Momentum (Midnight Open Bias)Orderflow Code Logic: midnightOpen = na anchored at hour == 0 and minute == 0.
• How it works: The script establishes a "True Day Open."
• IOF Bullish: Price is currently below Midnight Open (accumulating in a discount).
• IOF Bearish: Price is currently above Midnight Open (distributing in a premium).
• The Checklist Role: The Momentum check confirms if you are trading on the correct side of the "Power of 3" (Accumulation/Manipulation/Distribution).
3. 🎯 Clear DOL (Draw on Liquidity)
Code Logic: iof_bullish ? close < ta.vwap : close > ta.vwap.
• How it works: It uses VWAP (Volume Weighted Average Price) as the standard for algorithmic equilibrium.
• The Objective: If the bias is bullish, the script looks for price to be below VWAP, indicating the "Draw" is toward a higher premium or internal liquidity pool. It ensures the trade has room to "breathe" before hitting equilibrium.
4. 🔄 HTF iFVG (Higher Timeframe Inversion FVG)
Code Logic: f_scan_tf(tf) using request.security.
• How it works: This is the most complex part of the indicator. It scans the 1m, 2m, 3m, 4m, and 5m timeframes for "Inversion."
• The "Inversion" Event: It checks if price has closed completely through a Fair Value Gap (inv_b or inv_s). In your script, if a gap on any of these five timeframes is inverted, it signals a high-probability "Change in State of Delivery."
5. 🚢 HTF Delivery (Higher Timeframe Narrative)
Code Logic: f_scan_tf scanning 15m, 30m, 1H, and 4H.
• How it works: The script checks if price is currently interacting with an institutional zone on much higher timeframes.
• Priority: It uses a hierarchical "if-else" chain. If a 4H zone is found, it overrides the 1H; if a 1H is found, it overrides the 15m. This ensures the Checklist always displays the most significant timeframe currently "delivering" price.
6. ⚖️ Breakeven (The Risk-Off Trigger)
Code Logic: beR = ta.barssince(swept) < 10.
• How it works: This is a time-based risk management filter.
• The Logic: If a Liquidity Sweep occurred within the last 10 bars and the trade is moving, the script flags "Breakeven." It alerts the trader that the "Stop Run" phase should be over, and it is time to move the stop loss to the entry to ensure a risk-free trade.
📊 The Mathematical Rating System
The final "RATING" cell in the table is the result of a weighted boolean check:
• A+: Requires all 5 confluences (Sweep, Momentum, iFVG, Delivery, and DOL).
• A: Requires Sweep, Momentum, iFVG, and DOL.
• B+: Only requires the intraday pillars (Sweep, Momentum, and iFVG).
• C: Only requires an iFVG presence.
🟢 SMT Divergence Engine
The SMT engine in this script acts as a "crack in correlation" detector. It monitors the relationship between current chart and a Comparison Symbol (e.g., NQ vs. ES) to identify institutional accumulation or distribution that isn't visible on a single chart.
1. Dual-Mode Detection
This feature implements two distinct types of SMT to capture both aggressive and structural shifts:
• Adjacent Wick SMT: This is "Micro-SMT." It compares the current candle's wick to the previous candle's wick. If the main symbol makes a Higher High but the correlated symbol does not, it flags an immediate divergence.
• Structural Pivot SMT: This is "Macro-SMT." It uses three different lookback lengths (Primary, Secondary, and Tertiary) to find divergences across major market swings.
2. Dynamic Invalidation Logic (The "Mended Crack")
A common issue with SMT indicators is that they stay on the chart forever. Your code solves this with a Reference Price Check:
• The Logic: When a divergence is found, the script stores the correlated symbol’s high/low in an array (adj_up_comp_refs).
• The Invalidation: If the correlated symbol eventually "catches up" and breaks that stored reference price, the "crack" is considered mended. The script then executes a while loop to purge the lines and labels from the chart automatically.
3. Advanced Memory Management (Array-Based)
This allows the script to track multiple concurrent SMTs. If three different divergences happen in a row, the script can display and manage all of them independently without hitting TradingView's drawing limits or "forgetting" old levels.
4. Triple-Length Pivot Analysis
By using three different pivot lengths (3, 5, and 8), the SMT engine filters "Market Noise":
• Tertiary (3): For scalpers looking for quick entries.
• Primary (5): For standard intraday trend changes.
• Secondary (8): For major structural shifts and daily bias reversals.
5. Algorithmic Correlation Mapping
The script uses fixnan(ta.pivothigh(...)) to ensure that the SMT lines are pinned exactly to the historical pivots, even if the comparison symbol has gaps in its data. This ensures that the "slope" of the SMT line is mathematically accurate, providing a clear visual of the divergence.
⚒️How to use ICT Internal Levels
Step 1: Establish the "Daily Anchor" (Midnight Open)
Before looking for trades, identify your bias using the Midnight Opening Price.
• Look at the Momentum section of your Checklist.
• If the script says "BULL" (price is below Midnight Open), you are in a Discount and should only look for Longs.
• If it says "BEAR" (price is above Midnight Open), you are in a Premium and should only look for Shorts.
Step 2: Identify the "Draw" (EQH/EQL & BSL/SSL)
Now, find out where the market is likely to go.
• The Scanner: Check the Multi-TF EQH/EQL Table. If you see "EQH" across multiple timeframes (1m, 5m, 15m), that is a high-probability Draw on Liquidity (DOL).
• The Levels: Look for the Major BSL/SSL lines. These are your "Targets." The market will likely seek these pools of money before reversing.
Step 3: Wait for the "Time Window" (Macros)
Don't trade in the "dead zones." Wait for price to enter a Macro Session (the highlighted vertical zones).
• Institutional volatility is most consistent during these windows (e.g., 09:50–10:10 AM).
• The Goal: You want to see price reach your "Draw" (from Step 2) during this time window.
Step 4: Confirm the "Crack" (SMT Divergence)
As price approaches a BSL or SSL level within a Macro window, look for an SMT label.
• If the asset you are trading (e.g., NQ) sweeps a high, but the comparison symbol (e.g., ES) does not, the SMT engine will plot a line.
• This confirms that "Smart Money" is actively distributing, and a reversal is imminent.
Step 5: The "Entry Signal" (HTF iFVG)
Wait for the Change in State of Delivery.
• Look for an iFVG (Inversion Fair Value Gap) to form on the 1m or 5m chart.
• When price closes through a gap, the HTF IFVG item on your Checklist will turn green. This is your "Green Light" to enter the market.
Step 6: Final Audit (The Checklist Grade)
Before clicking "Buy" or "Sell," look at the RATING in the bottom corner of the checklist.
• A+ / A: Execute with full confidence. All pillars (Time, Price, SMT, and HTF) are aligned.
• B+: High probability, but perhaps you are trading outside of a Macro or against the HTF Delivery. Use smaller risk.
• C: Avoid this setup; it is likely a trap or a low-probability scalp.
Step 7: Risk Management (Breakeven)
Once you are in the trade:
• Monitor the Breakeven status on the checklist.
• Once it switches to "YES" (usually after 10 bars or a significant move), move your Stop Loss to your entry price. You now have a "Risk-Free" trade.
⚠️ Risk Disclaimer
The ICT Internal Levels V2 is an educational tool for market analysis and does not provide financial advice or guaranteed "buy/sell" signals. Trading involves significant risk, and you may lose some or all of your invested capital.
No Guarantees: Past performance does not guarantee future results. While this script uses advanced logic to identify confluences, all market analysis involves probability, not certainty.
User Responsibility: The author is not liable for any financial losses resulting from the use of this indicator. You are solely responsible for your trading decisions and should always use proper risk management. Use this script to supplement your own manual analysis—never rely on an indicator alone for execution.
Custom Dividers [louis]Custom Dividers is a streamlined utility designed for Multi-Timeframe Analysis (MTF). It allows you to visualize higher timeframe structures directly on lower timeframe charts by drawing infinite vertical lines at the open of new periods.
Unlike standard grid lines and other divider indicators, this has custom inputs, giving you complete control over non-standard timeframes (e.g., 90-minute cycles, 6-hour blocks, or 2-day periods).
🔑 Key Features
- 4 Independent Timeframe Slots: Configure up to four different vertical dividers simultaneously.
- Custom Minute Inputs (TF 1 & TF 2): Instead of restricting you to a dropdown, the first two slots allow you to input any integer for minutes.
Example: Set 90 for 90-minute cycle dividers.
Example: Set 360 for 6-hour dividers.
- Standard Timeframe Selectors (TF 3 & TF 4): Traditional dropdowns for standard periods like Daily (D), Weekly (W), or Monthly (M).
- Visual Customization:
Lines: Uses line.new() drawing logic to ensure dividers stretch infinitely from top to bottom, regardless of price scale.
Styles: Select from Solid, Dashed, or Dotted directly in the inputs.
Width & Color: Fully customizable to blend into your chart theme.
⚙️ How to Configure
Go to the Settings (Inputs Tab):
TF 1 & TF 2: Enter the specific number of minutes (e.g., 60 = 1 Hour, 240 = 4 Hours). Toggle the checkbox to Show/Hide.
TF 3 & TF 4: Select the timeframe period from the dropdown. Toggle the checkbox to Show/Hide.
Style: Choose your line style, color, and width.
Note: Since this indicator uses geometric drawings (line.new) to achieve full-height vertical lines, all visual settings (Color, Width, Style) are located in the Inputs Tab, not the Style tab.
Binary Options Signals Provider M1-H4 [TradingFinder]🔵 Introduction
Binary Options trading is highly sensitive to timing, precision, and short-term price reactions. Unlike other trading styles, entries in binary markets must be executed at exact moments when price behavior, momentum, and liquidity conditions align within a very limited time window.
This Screener is designed to generate Binary Options trading signals based on pure price action analysis, market structure, and liquidity behavior rather than lagging indicators. The signals are not random alerts; they are produced only when price reacts at critical decision points defined by supply and demand zones.
The core logic focuses on how price behaves when it reaches areas of concentrated orders, where liquidity absorption or injection typically leads to fast directional moves. These reactions are evaluated through candlestick structure, momentum shifts, and false breakout behavior, which are essential for short-duration binary setups.
By combining order blocks, Fair Value Gaps, imbalances, and breaker structures with strict candlestick confirmation, this indicator identifies high-probability Long and Short Binary Options signals suitable for short-term expirations across multiple timeframes.
Rather than predicting the market, the indicator reacts to real-time order flow and liquidity interaction, making it a structured and disciplined tool for traders who rely on precise execution in Binary Options environments.
Long Signal :
Short Signal :
🔵 How to Use
The first step is to identify valid structural zones such as order blocks, Fair Value Gaps, imbalances, or breaker structures. These zones represent areas where order flow has previously shown a strong directional response and where future reactions are likely to occur.
Once a zone is identified, the indicator continuously monitors price behavior as it approaches and interacts with that area. A signal is generated only when price reaches a valid zone, liquidity behavior becomes evident, and a confirming candlestick structure forms in alignment with the expected direction.
This approach ensures that Binary Options signals are issued only during moments of active market participation, where short-term directional moves have the highest probability of success.
🟣 Long Signal
A Long Binary Options signal is generated when price reaches a validated demand zone, such as a bullish order block, an unfilled bullish Fair Value Gap, a lower-structure imbalance, or a bullish breaker.
As price enters the demand area, the indicator evaluates whether sell-side liquidity is being absorbed. This is reflected through changes in candlestick structure and momentum behavior.
Confirmation occurs when bullish price action patterns form, including structures such as :
Pin Bars with long lower wicks
Bullish Engulfing patterns
Rejection candles
False breakouts of local lows
Short-term momentum continuation after liquidity sweep
When these conditions align within or near the demand zone, the indicator issues a Long signal, indicating a high-probability bullish reaction suitable for Binary Options execution with short expirations.
🟣 Short Signal
A Short Binary Options signal is generated when price reaches a validated supply zone, such as a bearish order block, a bearish Fair Value Gap, an upper-structure imbalance, or a bearish breaker.
In these areas, price often collects buy-side liquidity above nearby highs before reversing. The indicator monitors this behavior and waits for clear bearish confirmation through candlestick structure and momentum shift.
Bearish confirmation patterns include :
Pin Bars with long upper wicks
Bearish Engulfing patterns
Rejection candles
Indecision followed by strong bearish displacement
False breakouts of local highs
Once price confirms rejection or liquidity exhaustion within or near the supply zone, the indicator generates a Short signal, highlighting a short-term bearish opportunity optimized for Binary Options trading.
🔵 Settings
Last Candle in Signal Direction: When On, a signal is issued only if the last candle moves in the direction required by the signal.
Signal in Nearly Zone : When enabled, the signal becomes valid even if the candle is near the zone rather than strictly inside it. When disabled, only signals formed inside the zone are allowed.
Table on Chart : This setting enables or disables the on chart screener table. When enabled, the table displays signal status, correlation information, and symbol data directly on the chart. When disabled, the chart remains clean with no table overlay.
Number of Symbols : This option controls how many symbol pairs are displayed in the screener table. Users can choose between four or six pairs depending on screen size and personal preference.
Table Size : This setting adjusts the visual scale of the screener table. Smaller sizes are suitable for minimal layouts, while larger sizes improve readability when monitoring multiple pairs simultaneously.
Table Mode : This setting offers two layout styles for the signal table.
Basic mode displays symbols in a single vertical column, using more vertical space and providing straightforward readability.
Extended mode arranges symbols in pairs side by side, optimizing screen space with a more compact and efficient layout.
Table Position : This option defines where the screener table is placed on the chart. The table can be positioned in any corner or central area to avoid overlapping with price action or other indicators.
🔵 Conclusion
Binary Options trading requires precise timing, disciplined execution, and a clear understanding of short-term market behavior. This indicator is built on the principle that high-quality binary signals emerge not from prediction, but from real-time price reactions at key liquidity zones. By combining supply and demand analysis with structural elements such as order blocks, Fair Value Gaps, imbalances, and breaker structures, the indicator filters out random price movements and focuses only on moments when the market is actively responding to order flow.
Signals are generated exclusively when price reaches a validated zone, liquidity behavior becomes evident, and a confirming candlestick forms at the correct location. This structured process helps reduce emotional or impulsive entries and maintains consistency in execution. Rather than acting as a standalone decision-maker, the indicator functions as a confirmation and timing tool, assisting traders in identifying high-probability Long and Short Binary Options setups across multiple timeframes while remaining aligned with the underlying mechanics of price and liquidity.
付費腳本
TradeX Guru: Trap Hunter "We don't chase price. We set traps."
Most retail traders get slaughtered in the first hour of the market (09:15 – 10:15) because they chase "Fake Breakouts." They see a green candle breaking the high and buy immediately—only to watch the price reverse instantly.
The TradeX Trap Hunter is an institutional-grade algorithm designed to identify these Liquidity Traps. It visualizes where "Smart Money" is hunting stop-losses and helps you trade with the institutions, not against them.
🧠 The Logic: Anatomy of a Trap
The algorithm does not use lagging indicators like MACD or RSI. It uses pure Price Action & Time. It scans the "Kill Zone" (Volatility Window) for a specific 3-step institutional pattern:
The Lure (Liquidity Grab): Price breaks the Morning High or Low. This lures in aggressive breakout traders and triggers the Stop Losses of early reversals. This creates a pool of "Liquidity."
The Trap (Rejection): Instead of continuing, the price fails to hold the level and closes back inside the range. This proves the breakout was fake.
The Kill (Momentum Shift): A momentum candle breaks the structure of the trap candle. This is the confirmation that the reversal is real.
🚦 Visual Signal System (Traffic Light Logic)
The indicator uses a color-coded system to guide your discipline.
⚪ WAIT (Grey Label):
Status: A Trap has been detected.
Action: DO NOTHING. The market is baiting you. Wait for confirmation.
🟣 BEARISH BIAS (Purple Candle):
Status: The "Floor" of the trap candle has been broken by a close.
Meaning: Sellers have trapped the buyers at the top. Momentum is Down.
🟠 BULLISH BIAS (Orange Candle):
Status: The "Ceiling" of the trap candle has been broken by a close.
Meaning: Buyers have trapped the sellers at the bottom. Momentum is Up.
🛡️ Auto-Pilot Risk Management
The moment a signal is confirmed (Purple/Orange), the algorithm automatically calculates and draws your trade parameters on the chart:
🔴 Red Line (Invalidation): Placed at the High/Low of the trap. If price crosses this, the setup is failed.
🟢 Green Line (Target): Placed at the opposing side of the session range. This is where the liquidity is waiting.
💻 The Institutional Dashboard
A premium "Heads-Up Display" keeps you focused on the current session status.
Market State: Alerts you if the "Kill Zone" (09:15-10:15) is OPEN or CLOSED.
Strategy Status: Tells you if the algo is "Scanning," "Pending Confirmation," or "Active."
Current Bias: Displays the real-time direction (Bullish/Bearish) only when confirmed.
⚙️ Customizable Hunter Settings
1. Session Settings
Volatility Window: Default is 0915-1015 (Best for Nifty/BankNifty).
Crypto/Forex Users: Change this to the London or New York Open time.
2. Strict Filters (The Teacher Mode)
✅ Require Candle Break (Default: ON): This is the "Safety Filter." The signal will NOT fire unless a candle explicitly closes past the trap's wick. This filters out weak reversals.
☑️ Require Volume Spike (Optional): If enabled, the algorithm will ignore traps that occur on low volume, ensuring only high-participation moves are signaled.
📋 Best Practices
Timeframe: Optimized for 5-minute charts. (Can be used on 3m or 15m).
Assets: Works best on High-Liquidity instruments like BankNifty, Nifty 50, and F&O Stocks.
Discipline: Never enter on the Grey Label. Always wait for the Candle Color Change.
Disclaimer: This tool is for educational market analysis only. It highlights price action concepts (Traps & Momentum) and does not guarantee future results. Trading involves significant risk.
Multi-Timeframe Order BlocksDesigned to identify and visualize key supply and demand zones based on order block theory across multiple timeframes. The indicator detects order blocks by analyzing sequential candle patterns and price movement thresholds to highlight potential reversal or continuation zones where institutional buying or selling activity may have occurred.
The indicator works by scanning for clusters of consecutive bullish or bearish candles followed by a significant price move, which signals the formation of an order block. It then plots these zones as colored boxes on the chart—green for demand (bullish order blocks) and red for supply (bearish order blocks). The zones can be based on candle bodies or wicks, depending on user preference, and the indicator supports multi-timeframe analysis by allowing optional higher timeframe inputs.
How It Works:
Sequential Candle Detection: The indicator looks for a specified number of consecutive bullish or bearish candles (configurable by the user) to identify potential order blocks.
Price Movement Threshold: It checks if the price movement after the order block formation exceeds a user-defined percentage threshold, ensuring only significant zones are marked.
Zone Plotting: Once an order block is confirmed, the indicator draws a supply or demand zone as a box on the chart, using either candle bodies or wicks for zone boundaries.
Multi-Timeframe Support: Users can optionally specify higher timeframes to incorporate broader market context, enhancing the reliability of the zones.
Zone Management: The indicator limits the number of zones displayed to avoid clutter, automatically removing the oldest zones when the maximum count is exceeded.
How to Interpret:
Demand Zones (Green Boxes): These represent areas where buying pressure was strong enough to create a bullish order block. Price often finds support here, making these zones potential entry points for long trades or areas to watch for price bounces.
Supply Zones (Red Boxes): These indicate areas of strong selling pressure forming bearish order blocks. Price may face resistance in these zones, which can be used as potential exit points for longs or entry points for shorts.
Multi-Timeframe Confirmation: Zones identified on higher timeframes tend to be stronger and more reliable. Use the optional higher timeframe inputs to align your trades with broader market trends.
Use with Other Indicators: Combine order block zones with volume, momentum, or trend indicators to improve trade confirmation and risk management.
Zone Breaks: A decisive break and close beyond a supply or demand zone may signal a shift in market sentiment and potential trend continuation or reversal.
Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial advice. Trading involves significant risk, and it is possible to lose more than your initial investment. Users should conduct their own research and consider their financial situation carefully before making any trading decisions. The developer and publisher of this indicator are not responsible for any trading losses or damages incurred. Always use proper risk management and consult with a licensed financial advisor if needed.
iFVG 911 Carrera Inversion FVG Market Structure ToolThe iFVG 911 Carrera is a charting and market-structure analysis tool designed to help visualize inversion Fair Value Gaps (iFVGs), price delivery context, and structural conditions during intraday trading.
This indicator analyzes price behavior to highlight:
Bullish and bearish inversion events
Inversion Fair Value Gap zones
Higher-timeframe Fair Value Gap delivery
Liquidity sweep context
Structural target zones
Optional SMT divergence visualization versus ES
Session-based filtering and visualization
When qualifying conditions align, the indicator displays:
Entry reference levels
Structural stop reference levels
Breakeven and target reference levels
A checklist-style grading panel showing which conditions are present
All calculations are based on historical price data and are intended for educational and analytical purposes only .
This script does not execute trades, provide financial advice, or guarantee results.
The indicator is designed to support:
Market structure study
Intraday session review
Visual backtesting
Process-driven trade planning
Users are responsible for their own trading decisions and risk management.
Feature Explanation (How it works)
Close-through iFVG flips (inversions):
The indicator identifies inversion events when price closes through a qualifying FVG level (“close-through flip”).
Optional 5m backup trigger:
If enabled, a 5-minute inversion can be used as a backup trigger when applicable.
Session filtering:
Trades/setups can be filtered to specific market sessions so users can focus on the times they actively trade.
HTF delivery context (PDA):
When enabled, the script checks higher timeframe FVG zones (15/60/240) to help confirm whether price is delivering from HTF PDA.
Targets + trade levels:
When a setup qualifies, the script plots Entry, BE, TP1 (and optional TP2), and SL as short segments (not extended infinitely) for cleaner charting.
Checklist grading:
Each setup receives a grade using the same checklist categories shown on the on-chart grid:
Liquidity Sweep, HTF PDA Delivery, Volume, iFVG, Clear Targets, SMT w/ ES.
The grade is displayed on-chart and in the checklist table.
Alerts (user-controlled):
Users can toggle alerts for: bullish/bearish inversion created, BE hit, TP1 hit, TP2 hit, SL hit. Alerts can also be gated by session settings.
⚠️ Risk Disclaimer
This indicator is provided for educational and analytical purposes only.
The iFVG 911 Carrera does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All information displayed by this script is based solely on historical price data and technical analysis concepts.
Trading financial markets involves significant risk and may result in losses. Past performance is not indicative of future results. Users are solely responsible for their own trading decisions, risk management, and compliance with applicable laws and regulations.
Use of this indicator is entirely at your own discretion and risk.
15 Zaman Kutusu ve 10 Zaman Acilisi15 Range Boxes & 10 Open Lines
This indicator is a comprehensive technical analysis tool designed to track specific time intervals (Sessions, Killzones) and critical opening prices on your chart.
Key Features:
15 Custom Range Boxes: Individual settings for color, time, and labels.
10 Open Price Lines: Track daily, weekly, or session opens.
Smart History Limit: "Son X Kutuyu Goster" feature preventing lag and flickering.
Pips Display: Automatically calculates and displays the range width in pips.
Minimalist Mode: Hides details when "Cok Kucuk" label size is selected.
Language: Fully Turkish menu settings.
Note: Inspired by Nephew Sam's concept, coded from scratch with performance optimizations and additional features.
DISCLAIMER This indicator is for educational purposes only. It does not constitute financial advice or trading signals. Use at your own risk.
Price Action ICT SMC - Crypto Lidya (Pro)ONE CHART. ONE FLOW.
Rule-based PA + ICT + SMC — not “signals,” a system.
This product isn’t built to stack more drawings on your chart. It’s built to clarify context and enforce the same decision flow across any market and timeframe.
First direction & location (Premium/Discount – PD), then structure (CHoCH/BOS), followed by liquidity (sweeps/pools), and finally execution zones (OB/BB/FVG/BPR).
All inside one framework, driven by one consistent logic.
What it actually solves:
- “What’s happening?” → answered with market structure.
- “What matters?” → filtered by liquidity and PD positioning.
- “Where’s the trade idea?” → defined as an area, via OB/BB + FVG/BPR confluence.
- “Why is my chart a mess?” → fixed with Limit to Nearest: it prioritizes and displays only the most relevant levels closest to price.
- “When do I act?” → handled through a structured alert flow (Confirm / Created / Retest / Touch events).
Bottom line: This isn’t a toy that sprays “signals” everywhere. It’s a professional, market-structure-first engine that builds a disciplined workflow: Structure + Liquidity + Confirmation → one decision flow.
Note: To try the full Pro feature set for free, use Price Action ICT SMC – Crypto Lidya (Lite), which is already published on TradingView.
Lite includes the same tools and logic as Pro, but it only works on DOGE, TSLA, and EURUSD charts - making it the best way to test the workflow before upgrading.
1.) PA • Performance is the module that controls speed and chart clarity from one place.
Analysis and drawings run within the selected number of bars, preventing unnecessary historical clutter.
- Smoother experience: Reduces load in multi-module workflows (OB/FVG/BPR/Structure, etc.).
- Cleaner chart: Highlights the current flow and cuts visual noise.
- Controlled scope: Only as much history and objects as you actually need.
📌 Before/After visual placeholders:
Before: Higher bar count → denser drawings/labels
After: Optimized bar count → cleaner, more readable flow
2.) ICT • Bias Dashboard is a top-down directional context panel built on market structure (not indicators).
It summarizes your selected timeframe stack in one table, so you can align direction at a glance without jumping between TFs.
- Structure-based bias: Shows ▲ UP / ▼ DOWN / N/A derived from swing structure (HH+HL vs LL+LH), not moving averages.
- TF Stack control: Configure up to 6 timeframe slots and set Swing Type per slot (Extreme/Major/Medium/Minor) to match your style.
- Reason column (optional): Turn on Show Bias Reason to display the logic behind each bias in plain text.
- Active TF row: Highlights the current chart timeframe context inside the dashboard for instant alignment.
- Visual-only panel: Designed as a clean decision aid (doesn’t change detections/alerts).
One glance bias dashboard → faster, cleaner top-down confirmation
3.) SMC • Labels & EQ Pools is a structure + liquidity labeling layer designed to keep your chart clean, readable, and actionable.
It prints HH/HL/LH/LL on confirmed pivots and marks EQH/EQL as liquidity pools—so you spot key targets and traps instantly.
- Structure labels: Fast HH/HL/LH/LL read for trend and shifts.
- EQ Pools: Flags equal highs/lows (EQH/EQL) as high-interest liquidity zones.
- Advanced controls: Balanced (auto tolerance via ATR%/Median Spread) or Manual (tick-precision) to fit any market/timeframe.
- Anti-clutter modes: Filter labels by BOS/CHoCH context to show only what matters.
This screenshot shows SMC • Labels & EQ Pools in action with the Advanced tolerance controls.
Confirmed pivots are labeled as HH/HL/LH/LL, while equal highs/lows are flagged as EQH/EQL liquidity pools for instant target recognition.
4.) SMC • Liquidity Sweep • Core & Sources is the liquidity-engine that tracks key pools and flags true sweep / stop-hunt events inside your PA + ICT + SMC workflow.
It supports 3 liquidity types in one feed: EQH/EQL, Swing High/Low (BSL/SSL), and Previous Day High/Low (PDH/PDL).
- 3-source liquidity feed: Toggle EQ pools, swing pools, and PDH/PDL to match your model.
- Sweep tolerance control: Build sweep bands from EQ Tolerance or ATR% for consistent hit/confirm logic.
- Clean LIQ visualization: Draw open liquidity as Lines or Zones (execution bands).
📌 Before/After visual placeholders:
Liquidity Level Display:
Before: Display = Lines → horizontal LIQ levels (minimal, fast read)
After: Display = Zones → LIQ execution bands (tolerance-based boxes)
Limit to Nearest (Liquidity Pools):
Before: OFF → more pools drawn (history-based), higher visual density, Status = Dual
After: ON → only the nearest pools around price (N/2 above + N/2 below), Status = Active
4.1) SMC • Liquidity Sweep • Setup is the confirmation layer that turns a liquidity sweep into a clear, rule-based LIQ SETUP label.
It evaluates the sweep against the LIQ main level (lvl) and its execution band (tol), then prints the setup on the next candle open after confirmation (within the selected Lookback).
Preset-driven workflow: Pick the confirmation strictness that fits your style.
- Quick: Wick hits the outer band, then closes back to the main level (lvl) (fastest, minimal rules).
- Textbook: Same reclaim close to lvl plus opposite candle color (cleaner confirmation).
- Strict: 2-candle confirm (Reclaim + Follow-Through) with stronger rejection rules (highest selectivity).
- All: Any preset can trigger; the label prints the preset name (priority: Strict > Textbook > Quick).
This chart shows SMC • Liquidity Sweep • Setup in action with the Textbook preset enabled.
The script tracks Swing BSL/SSL liquidity, detects the sweep, and prints LIQ SETUP labels only after confirmation—turning stop-hunts into clean, rule-based execution context (reclaim + follow-through).
5.) SMC • Market Structure is the structural backbone of the system. It defines the valid trend, the valid shift, and the valid break—so every Liquidity/OB/FVG/BPR event is interpreted in the correct context.
- BOS / CHoCH engine: Prints continuation (BOS) vs reversal (CHoCH) from confirmed swing structure.
- Structure Scope: Locks analysis to the exact structure layer you trade (macro → micro), preventing “wrong-layer” signals.
- Swing Type: Controls pivot strictness—Minor for responsiveness, Major/Extreme for higher-quality structure.
📌 Swing Type — Before/After visual placeholders:
Before: External Swing Type = Major + Structure Scope = External → Higher-order structure is tracked; BOS/CHoCH prints are selective and represent macro structural shifts.
After: External Swing Type = Major + Structure Scope = Internal → The macro swing anchor is preserved, while BOS/CHoCH is evaluated on the internal execution layer for earlier, more responsive confirmation.
6.) SMC • CHoCH is the structure-turning-point marker produced by the Swing Structure engine. It prints the first meaningful break against the current structure direction (Change of Character) and lets you control whether it’s shown and how the break is confirmed.
- Show CHoCH: Hides/shows only the visuals (the structure engine can still keep its state for the system flow).
- CHoCH Confirm Mode: Defines what counts as a valid break (Close / Wick / Body, plus combined rules for stricter or more responsive confirmation).
6.1) SMC • CHoCH • Style controls the on-chart presentation of CHoCH so the structure read stays clean and consistent.
- Line color / width / style
- Label size / alignment (left–center–right) / text
- Label background & text colors
6.2) SMC • CHoCH • Bar Colors optionally paints candles based on the direction of the last confirmed CHoCH—purely visual, not a logic filter.
- ON: Bars reflect the active CHoCH regime (Up/Down) using your chosen colors.
- OFF: Bars remain in the chart’s native colors.
Bar coloring is ON → candles adopt the last confirmed CHoCH direction color (Up/Down) for instant regime clarity.
7.) SMC • BOS prints Break of Structure when price confirms a continuation break in the active structural direction. It’s the textbook “trend-maintenance” break—used to validate continuation and anchor the next liquidity/zone logic.
- BOS logic: Continuation break only (not reversal).
- Confirm mode: Defines what qualifies as a valid break (based on your break confirmation setting).
- Workflow role: Provides the structural “green light” for continuation setups.
7.1) SMC • BOS • Style controls how BOS is presented on-chart to keep the structure read clean and consistent.
- Line style: Color / width / line type
- Label style: Size / text / alignment
- Label colors: Background + text colors
8.) SMC • FVG • Core detects and draws Fair Value Gaps (Imbalance) as textbook 3-candle inefficiencies, and keeps the focus on active (unmitigated) gaps.
- Show FVG: Enables FVG detection + plotting.
- Limit to Nearest: Shows only the nearest active FVGs around price for a clean chart.
- FVG History Count: Sets how many active FVG boxes stay visible (balanced above/below price).
8.1) SMC • FVG • Filters removes noise by enforcing a minimum FVG size threshold.
- Mode: Percent / ATR / Ticks / Absolute
- Minimum Value: Threshold value for the selected mode
- ATR Length: Used only when Mode = ATR
8.2) SMC • FVG • Style controls the visual standard of active FVG zones.
- Fill / Border: Active FVG box colors
- Box Text: Optional label inside the box
- Text Color: Label color
9.) SMC • BPR • Core detects and plots Balanced Price Ranges (BPR) by pairing opposing inefficiencies into a single, actionable zone.
It’s the textbook “balance area” used to map premium/discount reaction zones after displacement.
- BPR logic: Forms a BPR when bullish/bearish imbalances overlap into one balanced range.
- Active zone focus: Keeps the chart centered on relevant, tradable BPRs (not endless history).
- Workflow role: A clean execution zone for reactions, mitigations, and continuation entries—read together with structure + liquidity.
10.) SMC • Zones • OB/BB/SD Shared is the shared rule layer that standardizes how zones are built, filtered, and labeled across Order Blocks (OB), Breaker Blocks (BB), and optional Supply/Demand (S/D) tagging.
- Zone Refinement: Defines zone bounds from the source candle (Body / Wick) or adds a Mean Threshold line inside the zone for textbook mean-reference execution.
- Zone Quality Filter + Tightness: A preset quality gate (Balanced / High Quality / Strict) with a single 1–5 Tightness control to tighten/loosen all thresholds together; BB inherits from OB, so this setting upgrades both.
- Overlap Pruning: When same-side zones overlap beyond a minimum ratio, the engine keeps the stronger zone and removes the weaker to prevent stacking.
- Supply/Demand Tagging: Converts OBs into S/D with Off / Simple / Strength+Context; Strength+Context requires a minimum Strength % and can enforce FVG confluence and/or Liquidity-sweep context.
📌 Before/After visual placeholders:
Before: When the Zone Overlap Threshold is set high, OB + BB zones can stack within the same price band, increasing visual density.
After: When the Zone Overlap Threshold is set low (e.g., 0.2), overlapping OB + BB zones within the same price band are pruned into a cleaner, single-zone output per area. (The pruning logic keeps the stronger zone; if equal, it keeps the most recent.)
Before: With Zone Quality Filter (OB/BB) = No Filter, the engine plots all detected OB/BB candidates, so lower-grade zones can remain on-chart and increase visual density.
After: With Zone Quality Filter (OB/BB) = Balanced, the engine applies a quality gate and suppresses weaker candidates—keeping a cleaner set of zones focused on higher-grade structure.
11.) SMC • Zones • OB (Order Block) detects textbook bullish/bearish Order Blocks and plots them as actionable institutional zones, standardized by the shared refinement + quality rules.
- Bullish / Bearish OB: Built from confirmed structure breaks using the source candle (Body/Wick refinement).
- Mitigation tracking: Updates zone state as price revisits the block (retest/mitigation flow).
- Strength % (0–100): Calculated on a fixed Source → Break window with a weighted model (volume, impulse, body/wick quality, continuity), capped at 100.
- Nearest-first clarity: Limit-to-Nearest keeps OBs focused around current price.
- Alerts: Fully integrated with Any alert() flow: OB Created, OB Retest, and optional OB + FVG Confluence (when enabled, it takes priority over “OB Created” on the same bar).
- Strength % (0–100): Calculated on a fixed Source → Break window with a weighted model:
• 35% directional volume dominance
• 25% impulse (leg range normalized by volume-weighted average candle range)
• 20% source candle body quality (body/range)
• 10% wick quality
• 10% directional continuity (same-direction closes)
12.) SMC • Zones • BB (Breaker Block) marks textbook breaker zones formed when an Order Block is invalidated and flipped into a structured retest level. BBs follow the shared refinement + quality rules, so zone geometry stays consistent across OB/BB.
- Bullish / Bearish BB: Created on OB invalidation → breaker flip (continuation/retest framework).
- Retest / mitigation tracking: BB state updates as price interacts with the zone.
- Nearest-first clarity: Limit-to-Nearest keeps only the most relevant BBs around current price.
- Alerts: Integrated with Any alert() flow: BB Created and BB Retest (First Clean Touch).
- Strength % (0–100) — BB-specific: Starts by inheriting the originating OB Strength. On the invalidation break, it can add a Displacement Break bonus (body-dominant candle closing near the extreme). After creation, strength becomes dynamic: repeated retests apply stepwise decay (from the 2nd touch onward), while the first clean rejection can add a one-time bonus.
13.) PRO USER • SMC • IDM (Inducement) marks the textbook inducement (IDM) point—where price “baits” participation, then takes internal liquidity before the real move.
It highlights the internal liquidity level (the inducement) and flags the setup once that liquidity is taken and followed by a valid shift in structure/flow (per your confirmation settings).
- IDM level mapping: Defines inducement at the internal swing layer (the liquidity price typically raids first).
- Context-first signal: IDM is treated as a prerequisite filter—liquidity first, then structure/continuation logic.
- Execution clarity: Turns “random spikes” into a readable sequence: Induce → Take Liquidity → Shift → Execute.
- Alerts: Integrated into the Any alert() flow for IDM events (IDM mapped / taken / confirmed, depending on your enabled triggers).
Before: IDM (Inducement) is disabled — no inducement mapping is applied, so the chart keeps the standard zone/structure output as-is.
After: IDM (Inducement) is enabled (Internal • Wick Only • Link Window = 30 • Min Separation = 10) — internal inducement is tracked and the on-chart output becomes more selective, prioritizing zones that remain relevant under the IDM workflow.
14.) PRO USER • ICT • PD Range (Premium/Discount) maps the current dealing range and prints the Premium / Discount framework with EQ (midpoint).
It’s the textbook ICT filter that answers one question first: “Is price offering premium (sell-side) or discount (buy-side)?”
- PDH / PDL + EQ: Defines the range high/low and the equilibrium midpoint for clean PD context.
- Range source control: Choose the PD source (your selected timeframe/range basis) to keep PD aligned with your model.
- PD filter for zones: Zones can be evaluated by PD position (premium vs discount) so execution stays context-correct.
- Clean display: Optional shading/lines so PD context is visible without chart clutter.
Before: PD Range is disabled, so zones are displayed without Premium/Discount context and PDH/PDL/50% levels are not shown.
After: PD Range is enabled (Mode: OB+FVG, PD Source TF: 1D) and PDH/PDL/50% is displayed with Premium / Midpoint / Discount markers—so zones are read and validated by PD positioning.
15.) PRO USER • ICT • Displacement marks the textbook impulsive expansion that drives price away from balance and typically precedes imbalance (FVG) and structure confirmation. It standardizes “real displacement” by filtering candles through body/range strength and range-threshold rules.
- Displacement detection: Flags expansion candles where body dominance and range strength meet the selected thresholds (e.g., range vs ATR / percent).
- Confirmation role: Treats displacement as the “commitment leg” that validates structure intent before zones are prioritized.
- Workflow integration: Strengthens the read of FVG / OB / IDM by anchoring them to a qualified impulsive leg.
- Display & alerts: Optional displacement markers/labels and alert hooks for displacement events (when enabled).
16.) PRO USER • ICT • Killzones (Sessions) maps the key ICT dealing windows on your chart, so you can align execution with the sessions where liquidity and displacement most commonly appear.
- Session windows: Plots the selected killzones as on-chart time blocks (clean, standardized session boundaries).
- Session focus: Keeps your workflow anchored to high-activity periods—ideal for sweep → displacement → entry sequences.
- Visual control: Optional shading, labels, and minimal display modes to avoid chart clutter.
- Model alignment: Use killzones as a timing filter on top of Structure / Liquidity / PD context.
This screenshot shows ICT Killzones (Sessions) configured in a NY Open–only workflow.
The blue session shading marks the active dealing window, and Strict outside-session behavior keeps the chart focused by gating key SMC events.
With the session filter enabled (CHoCH/BOS/Sweeps/IDM toggles), the script prioritizes structure + liquidity signals inside the killzone, where displacement and raids are statistically more common—so zones like OB / FVG are read with clean timing context.
17.) Outputs • Alerts is the single “Any alert()” output layer that consolidates the system’s key events into one alert stream (fired once per bar close).
- Master switch: Enable/disable all script alerts without affecting visuals.
- Event routing: Select exactly what gets reported (CHoCH/BOS Confirm, IDM Break, Liquidity Sweep, Sweep→CHoCH/BOS, OB/BB Created + first clean retest, FVG/BPR Created + first clean touch).
- De-dup logic: When a more specific event exists on the same bar, the generic line is suppressed (e.g., Sweep→CHoCH/BOS).
- Spam control: Optional Alert Cooldown (Bars) + Minimum Liquidity Tier (Alerts) gate for liquidity-based events.
After setting up the alert, the flow works like this: on the left, you create a TradingView alert by selecting the indicator and choosing “Any alert() function call” (Any Alert) as the condition.
When an enabled event triggers, an alert entry appears on the right in the Alerts panel, and the message clearly shows the event name and direction.
H4 C2 detectorThis script is a multi‑stage tool for detecting CISD-based reversals, H4 C2 setups, and related liquidity structures on any chart timeframe.
Purpose
The indicator combines a CISD swing/reversal engine (Stage 1) with higher‑timeframe H4 Fair Value Gaps (FVGs), Order Blocks (OBs), and swing levels (Stage 2 & 3) to confirm a C2 reversal signal with higher‑timeframe confluence.
Stage 1 – CISD swing engine
Stage 1 tracks bullish and bearish swing sequences using pivots and liquidity‑sweep logic.
You can choose the detection method: Classic vs Liquidity Sweep, plus swing length and minimum/maximum sequence duration.
The script builds and maintains arrays of swing highs/lows and “bins” (bullish/bearish lines) that turn from one color to the other once price breaks them with enough duration, flipping an internal trend state between bullish, bearish, or neutral.
Labels (“CISD”) and dashed lines are drawn when a valid CISD swing reversal is confirmed, visually showing where the current trend flipped.
Stage 2 – H4 structure (FVG, OB, swings)
Stage 2 pulls H4 data on any chart to add higher‑timeframe context.
It requests H4 OHLC, then detects H4 bullish/bearish FVGs and optionally plots their CE (consequent encroachment) levels with boxes and dashed lines.
It marks confirmed H4 order blocks (bullish from down candles broken up, bearish from up candles broken down) and tracks whether they remain mitigated or not.
It also identifies H4 swing highs and lows, draws dotted lines for active swing levels, and flags when they are mitigated or should be hidden.
Stage 3 – C2 confirmation and alerts
Stage 3 ties the CISD trend state with the H4 structure to define and confirm C2 signals.
Boolean flags c2_bull and c2_bear turn true when the CISD trend aligns with price interacting correctly with H4 swing lines and, optionally, FVG/OB context.
The script plots C2 markers (up/down triangles) on the chart when bullish or bearish C2 conditions are met.
It defines alertcondition() for bullish, bearish, and “any” C2 reversals and also triggers a bar‑close alert when any C2 signal confirms, so you can set TradingView alerts for automated notifications.
Final table and bias display
To summarize state, the script shows a compact table in the top‑right corner of the chart.
Row 1 shows “Daily Bias” derived from the CISD engine (BULLISH, BEARISH, or NEUTRAL) with matching colors.
Row 2 shows the H4 C2 status as CONFIRMED or WAITING, helping you quickly see whether a valid higher‑timeframe‑aligned reversal has printed.
Credits: LuxAlgo(CICD) indicator
SMC Precision Scalper# SMC Precision Scalper - All-in-One Smart Money Analysis Tool
## Overview
SMC Precision Scalper is a comprehensive technical analysis indicator combining Smart Money Concepts (SMC) methodology with advanced scalping tools. This indicator integrates institutional trading concepts to provide traders with high-probability confluence zones and market structure analysis.
---
## How It Works - Technical Methodology
### Order Block Detection System
**Detection Algorithm:**
The script identifies Order Blocks using a three-criteria validation process:
1. **Pattern Recognition**: Scans for consolidation candles (opposite color to trend) that precede strong impulse moves
2. **Impulse Validation**: The following candle must break the high/low of the consolidation candle
- Strict Mode: Impulse candle must fully engulf the Order Block
- Standard Mode: Impulse candle must only break the OB high/low
3. **Volatility Filtering**: Applies ATR (Average True Range) or CMR (Cumulative Mean Range) filters with adjustable multiplier (default 0.5x) to eliminate noise
**Mitigation Tracking:**
Order Blocks are monitored until price retraces to their 50% level (midpoint). Mitigation can be calculated by either:
- Close price crossing the midpoint
- Wick penetration of the midpoint
Internal Order Blocks use shorter swing length (default 5 periods) for intraday precision, while standard OBs use longer swings (default 10 periods) for structural zones.
---
### Fair Value Gap (FVG) Calculation
**Gap Detection:**
FVGs are identified when:
Bullish FVG: (candle.low - candle.high) > ATR(14) × threshold
Bearish FVG: (candle.low - candle.high) > ATR(14) × threshold
Default threshold: 0.3x ATR multiplier
**Visual Rendering:**
Each FVG is rendered as 13 horizontal layers to show the liquidity void depth. The script tracks consecutive FVGs to adjust layer positioning dynamically.
**Mitigation Logic:**
FVGs remain active until price fully crosses the gap zone (high > gap bottom AND low < gap top). Optionally displays "filled" FVGs with reduced opacity for historical reference.
---
### EMA Confluence & Flips System
**Core Components:**
- EMA Fast: 5-period exponential moving average
- EMA Slow: 12-period exponential moving average
- EMA Confluence: 200-period exponential moving average (customizable)
**Flip Detection:**
Generates signals when EMA 5 crosses EMA 12:
- Flip Up (↑): EMA 5 crosses above EMA 12
- Flip Down (↓): EMA 5 crosses under EMA 12
**Trend Filter:**
Optional confluence filter requires:
- Uptrend confirmation: Close > EMA Confluence for N bars (adjustable)
- Downtrend confirmation: Close < EMA Confluence for N bars
This prevents counter-trend signals and improves accuracy.
---
### EMA Cloud Layers
**Calculation:**
Creates three multi-timeframe cloud zones using paired EMAs:
- Cloud 1: EMA 20 / EMA 42
- Cloud 2: EMA 8 / EMA 23
- Cloud 3: EMA 5 / EMA 50
**Color Logic:**
- Green cloud: Faster EMA > Slower EMA (bullish momentum)
- Red cloud: Faster EMA < Slower EMA (bearish momentum)
Each cloud has progressive transparency (10%, 16%, 22%) to show momentum strength layers.
---
### VWAP Implementation
**Session VWAP:**
Calculates volume-weighted average price that resets at each session boundary using TradingView's native `ta.vwap()` function.
**Daily VWAP:**
Custom implementation that resets every calendar day:
CumulativePV = Σ(Price × Volume)
CumulativeV = Σ(Volume)
Daily VWAP = CumulativePV / CumulativeV
Source price options: HLC3, Close, OHLC4, HL2
---
### Premium/Discount Zones
**Range Calculation:**
Based on selected mode (Trailing Swings, Daily/Weekly/Monthly Range):
- High 100% = Swing high or HTF high
- Low 0% = Swing low or HTF low
- Range = High - Low
**Zone Division:**
*3 Zones Simple Mode:*
- Premium: 66.67% - 100%
- Equilibrium: 33.33% - 66.67%
- Discount: 0% - 33.33%
*5 Zones Fibonacci Mode:*
- Strong Premium: 78.6% - 100%
- Premium: 61.8% - 78.6% (OTE Zone)
- Equilibrium: 38.2% - 61.8%
- Discount: 23.6% - 38.2%
- Strong Discount: 0% - 23.6%
**Purpose:**
Provides institutional context: institutions typically buy in Discount zones and sell in Premium zones.
---
### Fibonacci Retracement
**Auto-Calculation:**
- Scans the last N periods (default 80, range 20-200) to identify swing high and swing low
- Projects key Fibonacci levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
- Optional inversion for downtrends
- Future projection extends levels forward by adjustable bars (default 50)
**OTE Zone Highlighting:**
Creates a visual box for the 61.8%-78.6% zone, which represents the Optimal Trade Entry area commonly used in ICT methodology.
---
### Ichimoku Cloud (Multi-Timeframe)
**Components Calculation:**
Tenkan-sen = (9-period high + 9-period low) / 2
Kijun-sen = (26-period high + 26-period low) / 2
Senkou Span A = (Tenkan + Kijun) / 2
Senkou Span B = (52-period high + 52-period low) / 2
Chikou Span = Close shifted back 26 periods
**MTF Implementation:**
Uses `request.security()` to fetch higher timeframe data when custom timeframe is specified. Falls back to chart timeframe if empty.
**Cloud Filtering:**
- Price above cloud = Bullish bias filter
- Price below cloud = Bearish bias filter
- Price in cloud = Neutral/avoid
---
### Market Structure Detection
**BOS (Break of Structure):**
Occurs when price breaks the last swing high (in uptrend) or swing low (in downtrend), confirming trend continuation.
**MSS (Market Structure Shift):**
Detected when BOS occurs in the opposite direction of current trend, indicating potential reversal.
**CHoCH (Change of Character):**
Early warning signal when price touches but doesn't strongly break the previous swing, suggesting momentum loss.
---
### Previous Day Levels
**Calculation:**
Uses `request.security()` with daily timeframe and ` ` offset with lookahead on:
- PDH: Previous Day High
- PDL: Previous Day Low
- PDM: (PDH + PDL) / 2
**Daily Bias Logic:**
- Bullish: Close > PDM or breakout above PDH
- Bearish: Close < PDM or breakdown below PDL
- Neutral: Close at PDM
---
## Why This Combination?
This indicator integrates multiple institutional concepts to create a **confluence-based filtering system** that answers three critical trading questions:
1. **WHERE to trade?** (Order Blocks, FVG, Premium/Discount zones, Fibonacci OTE)
2. **WHEN to trade?** (EMA Flips, Market Structure breaks, Ichimoku confirmation)
3. **WHICH direction?** (HTF Bias, Daily Bias, Cloud momentum, Structure trend)
### Synergy Between Components:
- **OB + FVG Confluence**: When an Order Block overlaps with a Fair Value Gap, it creates a high-probability institutional zone
- **Premium/Discount Context**: Filters OB signals to match institutional bias (buy Discount, sell Premium)
- **EMA Flips + Structure**: Fast momentum signals (flips) confirmed by slower structure breaks reduce false entries
- **Ichimoku Cloud**: Acts as additional trend filter, preventing counter-cloud trades
- **VWAP + Fibonacci**: Provides dynamic and static mean reversion levels for risk management
**Individual indicators might generate conflicting signals**, but this mashup requires multiple confirmations before highlighting setups, significantly reducing noise and improving trade quality.
---
## How to Use
### Setup Configuration
1. **Enable desired components** in settings (Essentials group)
2. **Adjust swing lengths** based on timeframe:
- M1-M5: Swing 5-7, Internal 3
- M15-H1: Swing 10, Internal 5 (default)
- H4-D1: Swing 15-20, Internal 7-10
3. **Configure filters**:
- Lower timeframes: Use ATR filter 0.3-0.5x
- Higher timeframes: Use CMR filter or 0.7-1.0x ATR
### Trading Workflow
**Step 1: Identify Trend**
- Check EMA Cloud colors (green = bullish, red = bearish)
- Confirm with Ichimoku Cloud position
- Verify Market Structure (BOS direction)
**Step 2: Find Confluence Zones**
- Locate active Order Blocks in trend direction
- Check for FVG overlap with OB
- Ensure zone is in correct Premium/Discount area
**Step 3: Wait for Entry Trigger**
- Monitor EMA 5/12 flips within confluence zone
- Check Fibonacci OTE zone if displayed
- Confirm VWAP position supports direction
**Step 4: Execute & Manage**
- Enter on flip signal within OB/FVG confluence
- Stop loss: Outside Order Block zone
- Target: Opposite Premium/Discount zone or next OB
---
## Dashboard Information
The on-chart table displays real-time market conditions:
- **Trend**: Current structure (Bullish/Bearish/Neutral)
- **HTF Bias**: Higher timeframe direction
- **OB**: Active Order Block status (Bull ↑ / Bear ↓ / None)
- **FVG**: Active Fair Value Gap (Bull ↑ / Bear ↓ / None)
- **OB+FVG**: Confluence confirmation (✓ when both align)
- **P/D Zone**: Current price position in Premium/Discount
- **Fib 61.8-78.6**: OTE zone status (In Zone / Outside)
- **Daily Bias**: ICT daily bias (Bullish/Bearish/Neutral)
- **Market Status**: Overall condition summary
- **RSI(14)**: Momentum (Oversold <30 / Neutral / Overbought >70)
- **Ichimoku**: Cloud position (Above/In/Below)
---
## Alert Conditions
Complete alert system for key events:
- BOS Bullish / Bearish detected
- New Order Block formed (Bullish/Bearish)
- New Internal OB formed
- EMA Flip signals (Up/Down)
- Price entering OTE zone (when HTF aligned)
---
## Best Practices
✅ **Use on multiple timeframes**: Align HTF bias with entry TF signals
✅ **Wait for confluence**: At least 2-3 confirmations before entry
✅ **Respect Premium/Discount**: Don't buy Premium or sell Discount
✅ **Adjust swing lengths**: Match to your trading timeframe
✅ **Backtest first**: Understand signal behavior before live trading
❌ **Don't overtrade**: Not every OB or FVG is a valid setup
❌ **Don't ignore filters**: Disabled filters increase false signals
❌ **Don't trade against cloud**: Ichimoku filter prevents low-probability trades
---
## Technical Specifications
- Pine Script™ Version: 6
- Overlay: Yes
- Max Boxes: 500
- Max Lines: 500
- Max Labels: 300
- Repainting: Signals confirmed on bar close (barstate.isconfirmed)
---
## Recommended Timeframes
- **Scalping**: M1, M5 (reduce swing lengths to 5-7)
- **Day Trading**: M15, M30, H1 (default settings)
- **Swing Trading**: H4, D1 (increase swing lengths to 15-20)
---
## Performance Notes
For optimal chart performance:
- Disable unused features (Structure, EQH/EQL if not needed)
- Reduce lookback periods on lower timeframes
- Limit to 1-2 active alerts per instrument
---
This indicator does not predict the future and should be used as part of a complete trading plan with proper risk management.
© 2025-2026
IFVG Ultimate Toolkit PRO+ by [Yahya]🔷 OVERVIEW
This script is a comprehensive institutional toolkit designed to automate the Inner Circle Trader (ICT) and Smart Money Concepts (SMC) framework. It replaces manual chart markups with a high-performance, real-time calculation engine that tracks Liquidity, Time, and Inter-market Correlations.
From identifying "hidden" magnets like the Event Horizon (EHPDA) to detecting the exact moment "Smart Money" flips a zone via the Inversion FVG (iFVG), this tool provides a complete roadmap for the professional intraday trader.
Integrated institutional framework that transforms raw price data into actionable narrative. Unlike static indicators, it utilizes a dynamic time-series engine to provide real-time, touch-sensitive FVG mitigation and "garbage-collected" memory management to prevent chart lag. Its core superiority lies in multi-asset correlation (SMT) and GMT-synchronized session logic, ensuring users see the exact "Midnight Open" and "Killzones" used by institutional algorithms. By automating complex ICT concepts like Inversion FVGs and Synthetic PO3 projections, it eliminates manual bias and provides a professional roadmap based on liquidity sweeps rather than lagging retail signals, all within a high-performance, non-repainting environment.
🚀 KEY CORE FEATURES
• Institutional Killzones & Pivots: Automatically maps Asia, London, and NY sessions with GMT-sync protection. It projects session highs/lows forward until they are swept, providing real-time liquidity alerts.
• Multi-Timeframe (MTF) FVG Engine: Scans up to 12 user-defined timeframes. Boxes feature Touch-Sensitive Logic, dynamically shrinking as price mitigates the gap to show remaining unfilled orders.
• iFVG (Inversion) Trigger: The "Hidden Secret" logic. It identifies failed FVGs that have been closed through with high volume, signaling a powerful support/resistance "flip."
• Multi-Asset SMT Radar: A correlation scanner that monitors up to 8 assets (e.g., NQ vs. ES vs. DXY). It flags "cracks in correlation" to catch institutional accumulation/distribution before it happens.
• Synthetic AMD (PO3) Projection: Renders Higher Timeframe (HTF) candles on the right side of your chart. It visually breaks down the Power of 3 (Accumulation, Manipulation, Distribution) so you can see if you are inside a daily wick.
• Event Horizon (EHPDA) & Opening Gaps: Plots New Week (NWOG) and New Day (NDOG) opening gaps. It calculates the Consequent Encroachment (C.E.) and midpoints between gaps to find institutional price magnets.
• EQH/EQL Liquidity Pools: Uses a "Fuzziness" algorithm to find equal highs/lows within a 200-bar lookback, identifying where large clusters of stop-loss orders are resting.
1. Multi Timeframe FVGs Engine🟢
The script scans multiple user-defined timeframes (from 30-seconds up to Weekly) to identify Fair Value Gaps. It uses a "touch-sensitive" logic: when price mitigates a gap, the box can automatically resize or change color to indicate the level has been tested.
The function find_box uses the standard formula for an imbalance:
• Bullish: low > high (A gap between the high of candle 1 and the low of candle 3).
• Bearish: high < low .
• Dynamic Updating: The control_box method uses box.set_top and box.set_bottom to "shrink" the boxes as price eats into the gap, providing a real-time look at remaining liquidity.
Security & Performance
This code includes a Premium Safety Toggle (enable30s). Its a smart addition! TradingView limits the use of sub-minute timeframes in request.security to Premium members. By including this toggle, it prevent the script from crashing for Free/Pro users.
To prevent the chart from becoming cluttered with "dead" data, the script uses a Mitigation Security Loop:
* Detection: It constantly compares the current close price to the stored _boxLow or _boxHigh in the arrays.
* State Change: When price enters the FVG area, it triggers box.set_bgcolor to the "Tested" color.
* Deletion: If price moves entirely through the gap (full mitigation), it uses array.remove and box.delete. This is critical for performance; if the script didn't delete old boxes, it would eventually hit the 500-box limit and stop working.
2. Institutional Session Killzone & Pivot Mechanics🟢
It automatically plots the Asia, London, New York AM/PM, and Lunch sessions. Beyond simple boxes, it calculates the Average Range of these sessions and displays them in a real-time dashboard to help traders gauge volatility expectations.
The script utilizes the time() function with a GMT offset to isolate specific institutional "Killzones."
• Logic: When the current time falls within a defined session (e.g., London "0200-0500"), the script initializes a kz type object.
• Range Tracking: It continuously updates the high and low coordinates using math.max() and math.min() until the session closes.
• Pivot Invalidation: Once the session ends, these levels are projected forward as line objects. The script utilizes _hi_valid and _lo_valid boolean arrays; if the current price trades through these lines, an alert is triggered, and the line is visually updated to signal a Liquidity Sweep.
The security behind the Killzones involves translating your local computer time into the "Exchange Time" or a "Fixed Timezone" (like UTC-5 for New York).
Timezone Protection: By using gmt_tz = input.string('America/New_York'...) and passing it into the time() function, the script ensures that a trader in London and a trader in Tokyo see the "New York Open" at the exact same moment on the chart.
State Detection: ```pinescript
t = not na(time("", this.session, gmt_tz))
t_prev = not na(time("", this.session, gmt_tz, bars_back = 1))
3. Opening Gaps & Event Horizon (EHPDA)🟢
It tracks New Week Opening Gaps (NWOG) and New Day Opening Gaps (NDOG), projecting "Event Horizons" (EHPDA) which act as significant institutional magnets for price action.
This module tracks the relationship between the previous period's close and the current period's open.
Identification: Upon a timeframe.change(), the script captures the distance between Close and Open .
Consequent Encroachment (C.E.): The script calculates the exact equilibrium of the gap:
Midpoint= Gap High + Gap Low
2
* EHPDA Logic: Using the set_ehpda method, the script calculates the mathematical midpoint between consecutive opening gaps, identifying a "Hidden Pivot" where price typically seeks rebalancing.
4. Equal High & Equal Lows Liquidity Pool🟢
This script identifies EQH/EQL (Equal Highs/Lows) by scanning a 200-bar lookback for price matches. It uses a break-on-violation logic: if any intervening price exceeds the level, the liquidity is considered "cleared" and ignored.
This ensures only relevant, unmitigated double tops/bottoms are plotted, pinpointing high-probability buy/sell-side liquidity pools for ICT and SMC strategies while maintaining chart clarity and performance
Sensitivity Check: It uses a "Fuzziness" or "Tolerance" logic. Since price rarely hits the exact same decimal point (e.g., 1.25000 vs 1.25001), the script calculates if the difference is within a few "ticks."
The script identifies Liquidity Pools by scanning the price history for horizontal clusters.
The Algorithm
The findAndDrawEqualHighs function performs a lookback loop.
* It identifies a current swing point (src ).
* It iterates backward through lookbackLength.
* Proximity Matching: If the historical price exactly matches (src == src ), it validates the level.
Note: In advanced ICT concepts, this code functions as a "Magnet" detector. When these lines are drawn, it signifies that Buy-side or Sell-side stops are resting just above/below, which the Market Maker will likely sweep to facilitate their own orders.
5. Synthetic AMD Projection🟢
A sophisticated visualizer that draws HTF candles (including custom daily opens like Midnight or 8:30) on the right side of the chart. This allows traders to monitor HTF trend and momentum without switching tabs.
• The Power of 3 (PO3):
1. Accumulation: Anchored by a custom_daily open price (Midnight/8:30/9:30).
2. Manipulation: The script renders wicks using line.new() to show where price deviated below/above the open.
3. Distribution: The script calculates the body expansion of the HTF candle, allowing traders to see the real-time "state" of the Daily or Weekly candle without switching tabs.
• Inter-market SMT: The logic compares the current ticker's high/low against a secondary ticker (via request.security). If a non-correlation (divergence) occurs, the script flags has_bearish_div or has_bullish_div directly on the synthetic HTF candles.
The "Trace" System
The Trace type creates horizontal projections of the HTF Open, High, Low, and Close.
• Significance: It allows you to see the "Current Candle State." If the LTF price is trading below the projected HTF Open but above the HTF Low, you are mathematically inside the "Lower Wick" of the HTF candle—a prime location for ICT long entries.
Memory Management and Performance
To prevent the "Script Requesting Too Many Drawings" error, this script features a self-cleaning logic:
• Array Management: It uses array.unshift() to add new objects and array.pop().delete() to remove the oldest drawings once the max_days or max_boxes_count limit is reached.
• Non-Repainting: All security calls use the index or barstate.isconfirmed checks to ensure that signals do not disappear after the bar closes.
6. Multi- Timeframe SMT Divergence🟢
This logic acts as a Correlation Radar. By calling request.security() for 8 assets (e.g., ES, NQ, DXY), the script checks for "cracks" in symmetry. If one asset makes a new high but others fail, an SMT is flagged.
This is a correlation engine. It looks for "cracks" in the relationship between two assets that should move together (like the S&P 500 and Nasdaq).
• How it works: It simultaneously looks at your current chart and a "hidden" second chart. If Asset A makes a higher high, but Asset B fails to make that higher high, it signals a Divergence. This often precedes a massive trend reversal.
• Visual Logic: It draws diagonal lines directly between the highs or lows of the HTF candles to show you the "tilt" of the divergence visually.
• Security (Data Integrity): The script uses "Protected Security" calls. It ensures that the data from the second asset is synced perfectly in time with your current chart, preventing "future-leaking" where an indicator looks like it’s winning only because it knows what happens next. To prevent crashes, it uses Array Buffers and Tuple Requests, grouping data to stay under Pine Script's 40-call limit while ensuring non-repainting accuracy.
7. High Timeframe (HTF) Candle Projections PO3🟢
The script "projects" larger timeframe candles (like Daily or 4-Hour) onto your lower timeframe chart (like the 1-minute or 5-minute).
• How it works: It builds these candles using math and coordinates rather than standard bars. This allows them to sit on the right side of your screen in the "empty space," giving you a roadmap of the higher-order trend without blocking your view.
• Swing Detection Logic: It identifies if these projected candles have "swept" liquidity.
• Empty Triangle (▽): A "Potential" sweep. Price is currently above a old high, but the candle hasn't closed yet.
• Solid Triangle (▼): A "Confirmed" sweep. The candle closed, and price was rejected, leaving a wick.
• Security: The script uses an Array Buffer. It only keeps a specific number of these candles in memory. As a new candle forms, the oldest one is deleted. This keeps the script fast and prevents TradingView from lagging.
The "Trace Lines" (Open, High, Low, Close) connect the HTF projected candles back to the actual price bars.
This is a Performance Guardrail. Pine Script has a maximum lookback for drawing objects. By checking if the index is within 5000 bars, the script avoids trying to draw lines into "null" memory space, which would throw a runtime error.
8. Expansion & Equilibrium (EQ) Logic🟢
This logic predicts the "intent" of the market based on the previous candle's behavior.
• Expansion expected: If the previous HTF candle created a "Swing Low" (swept a low and rejected), the script colors the current forming candle as Bullish Expansion. It’s telling you: "The sweep is done; we are likely moving up now."
• Equilibrium (EQ) Line: It draws a dotted line at the exact 50% mark of the previous HTF candle. In institutional trading, the 50% mark (Mean Threshold) is the "fair value" point. Trading above it is "Premium," and below it is "Discount."
• Security: It uses Timezone Normalization. Regardless of where you live, the script can sync to the New York Midnight or 8:30 AM open, ensuring your levels match the algorithm's "True Day" start.
9. The HTF Info Table🟢
This is the "Dashboard" logic. It summarizes the state of multiple timeframes into a single UI element.
Acts as your mission control. It gathers data from up to 6 different timeframes and puts them in a clean table.
Expansion Logic: ```pinescript
exp_text = c2_swing_high and c2_swing_low ? "▲▼" : c2_swing_low ? "▲" : c2_swing_high ? "▼" : "-"
This tells the trader what the
next candle is expected to do. If the previous candle swept a low expansion up the table flags.
• How it works: It scans all active timeframes for Timers, Swings, Expansions, and Divergences. If 4 out of 6 timeframes show a "Bullish Expansion" icon (▲), you have high-probability confluence.
• Logic Security: The table only updates on "Real-Time" bars. It won't waste processing power recalculating historical table data that you can't trade anyway.
10. The iFVG (Inversion Fair value gap) Engine🟢
Standard FVGs are gaps where price moves too fast. This script tracks Inversions—when a gap that was supposed to act as support is "run over" and becomes resistance (or vice versa)
This is the most complex logic in the snippet. It doesn't just look for gaps; it looks for failed gaps that act as support/resistance.
The Inversion Trigger: The script waits for a specific number of candles (inv_candles) for price to close through the FVG. Once the is_inverted condition is met, it converts a standard FVG into an iFVG.
Memory Management: By using array.push(active_boxes, new_box) and a corresponding box.delete loop, the script ensures it never exceeds the TradingView drawing limits, which would otherwise cause the script to lag or crash.
The "Secret Sauce" Logic: It includes a volatility filter. It won't plot an iFVG unless the move was backed by high volume, orderflow and a large price spread. This ensures you only see gaps created by banks, not retail noise.
Security: It features an Invalidation Cleanup. Once price moves too far past an iFVG, the script "kills" the drawing. This prevents the chart from being cluttered with old, irrelevant levels and saves your computer's memory.
How it works: The script identifies a gap between Candle 1 and Candle 3. It then enters a "monitoring state" for a set number of candles. If price closes through that gap, it "flips" the zone and draws a box extending into the future.
11. IFVG MTF ALERTS🟢
The Multi-Timeframe iFVG Alerts function as a real-time "state change" monitor across your 1m to 15m execution charts. Unlike standard price alerts, these only trigger when the script detects a failed FVG—meaning price hasn't just touched a gap, but has closed completely through it with enough displacement to flip the zone's institutional bias.
🔔 How the Alerts Function
• Fractal Detection: The script scans your selected 1, 2, 3, 4, 5, and 15-minute intervals. For eg, If a 15m Bearish FVG is "run over" by price, it sends an Inversion Alert, signaling that a high-timeframe resistance has now flipped into support.
• Volume/Close Validation: To prevent "fakeouts," the alert only fires when a candle body closes above (for bullish flips) or below (for bearish flips) the gap boundaries. This ensures the alert represents a genuine shift in order flow rather than just a wick sweep.
• Non-Repainting Logic: By using barstate.isconfirmed, the alert triggers exactly at the candle close. This ensures that once you get a notification on your phone or desktop, the level is "locked" and won't disappear if price fluctuates later.
🛠️ HOW TO USE (THE INSTITUTIONAL WORKFLOW)
1. TIME: Identify if you are in a Killzone (Shaded area). Opening Gaps & EHPDA: Locate the NWOG and NDOG lines. Use the Event Horizon (EHPDA)—the midpoint between gaps—as your primary "Magnet."
2. BIAS: Check the EHPDA/Midnight Open. Are you in a Discount (to buy) or Premium (to sell)?
Use HTF Info Table: Confirm your idea. If the table shows "▲" (Bullish Expansion) across 4/6 timeframes, you have a massive directional tailwind.
3. MAGNET: Look for the EQH/EQL dotted lines. This is your target.
4. TRAP: Wait for a Liquidity Sweep
5. CONFIRM: Check the SMT Radar for divergence and the HTF Info Table for expansion confluence.
6. MTF FVG Engine: Look for price to enter a large Higher Timeframe FVG. Because these are "touch-sensitive," the box will shrink as price eats the liquidity, telling you exactly when the gap is "full."
• iFVG Inversion Trigger: Once inside the MTF FVG and after an SMT, wait for a small gap to form and fail.
• The Move: Price closes through a Bearish FVG and flips to a Bullish iFVG.
• Execution: Enter on the inversion of the iFVG box.
🛡️ PERFORMANCE & SECURITY
• Memory Management: Features a built-in "Garbage Collector" that deletes old drawings to stay under TradingView's 500-object limit and prevent lag.
• Premium Safety Toggle: Includes an enable30s check to prevent script crashes for non-premium users on lower timeframes.
• Non-Repainting: All request.security calls use indexing or barstate.isconfirmed to ensure signals are permanent once the candle closes.
📌 NOTES
• Optimized For: 1M, 2M, 3M, 4M , 5M, and 15M execution timeframes.
• Markets: Works on Forex, Indices (NQ/ES), Commodities (Gold), and Crypto.
⚠️Risk Disclaimer
Financial Trading involves significant risk. This Pine Script is an educational tool designed to automate specific technical analysis frameworks; it does not guarantee profits or provide financial advice. Past performance, including backtested results or historical "Power of 3" projections, is not indicative of future success.
The user assumes full responsibility for all trading decisions and capital risk. Use of this script on real-money accounts should only occur after extensive personal testing. The developer is not liable for any financial losses, data inaccuracies, or platform-related execution errors resulting from the use of this software.
[LJ] RSIM + ICT KillzonesIndicator Summary
This Pine Script indicator is a comprehensive, all-in-one toolkit designed for traders utilizing Inner Circle Trader (ICT) concepts. It visually maps out crucial time-based trading sessions, killzones, and key opening price levels directly on the chart. Alongside the time and price tools, it features a real-time "RSIM" (MTF RSI Monitor) dashboard to track market momentum across multiple timeframes, all while maintaining a lag-free chart through automated drawing cleanup.
Core Functionalities
ICT Killzones & Silver Bullets:
Visually demarcates specific high-probability trading windows—including the Asian, London, and New York (AM & PM) killzones, as well as the UK and US "Silver Bullet" times—using vertical lines and colored background highlights.
Key Opening Price Levels:
Automatically plots horizontal lines for significant opening prices, such as the New York Midnight Open (often used as true day open), CME Open, and NY AM/PM Opens. It also includes Higher Time Frame (HTF) levels for Weekly and Monthly opens.
Session High/Low Tracking:
Actively tracks and draws horizontal price levels for the High and Low of the current day, previous day, and individual Globex, Asian, London, and NY sessions.
Multi-Timeframe RSI Dashboard (RSIM):
An on-chart table that displays the current Relative Strength Index (RSI) values and a live countdown timer ("time to close") for the 5-minute, 15-minute, 1-hour, 4-hour, Daily, and Weekly timeframes.
Lunch "No-Trade-Zone":
Specifically highlights the New York Lunch period, visually warning traders of potential low-volume or erratic price action.
Automated Housekeeping:
A built-in memory management system that automatically deletes drawings (lines and labels) older than a user-defined number of days to prevent chart clutter and performance lag.
Built-in Debug Logger:
An optional on-chart logging table that tracks session triggers and script events, helping traders verify that times and levels are plotting correctly for their selected asset.
cephxs + fadi / HTF PSPHTF PSP - PRECISION SWING POINTS
Detect divergence-based Precision Swing Points (PSPs) across multiple higher timeframes with automatic correlated asset detection.
WHAT'S NEW (vs Original HTF Candles)
This indicator builds on @fadizeidan's excellent ICT HTF Candles foundation with significant new functionality, depending on who you ask of course:
✨ PSP Divergence Detection: Automatically identifies Precision Swing Points where price diverges from correlated assets—the original has no divergence analysis
✨ Auto Asset Correlation: Uses AssetCorrelationUtils library to detect and pair correlated assets (ES↔NQ↔DXY, BTC↔ETH, Gold↔Silver, etc.)—no manual setup required
✨ Multi-Asset Comparison: Tracks up to 3 correlated assets simultaneously with divergence relationships between all pairs
✨ Dynamic Asset Reordering: When you switch charts, the indicator automatically reorders assets so your chart is always primary
✨ Inverse Correlation Support: Properly handles inversely correlated assets like DXY (bullish DXY = bearish signal for risk assets)
✨ HTF Sweep Detection: New sweep line feature highlights when HTF candles take out previous highs/lows and close back inside. One of my followers asked me for this, there you go anon.
🔧 Streamlined to 3 HTFs: Focused design with 3 HTF slots (vs 6) for cleaner charts and better performance
The original remains excellent for pure HTF candle visualization. This version adds institutional flow analysis through divergence detection.
WHAT IT DOES
This indicator displays Higher Timeframe (HTF) candles to the right of your chart and highlights Precision Swing Points—pivots where price diverges from correlated assets. When ES makes a new high but NQ doesn't follow, or gold pushes higher while DXY fails to confirm, you're looking at institutional repositioning.
PSPs mark these moments on your HTF candles, giving you a clean visual signal for potential reversals.
HOW IT WORKS
Divergence Detection
The indicator compares price action between your chart and up to two correlated assets. A divergence occurs when one asset makes a directional move (bullish/bearish candle) while a correlated asset moves the opposite direction.
Three divergence relationships are tracked:
Primary vs Secondary (e.g., ES vs NQ)
Primary vs Tertiary (e.g., ES vs DXY)
Secondary vs Tertiary (e.g., NQ vs DXY)
PSP Confirmation
A candle is marked as a PSP when:
A divergence exists between correlated assets
A swing pivot forms (high > previous high AND high > next high, or vice versa for lows)
This dual confirmation filters noise and highlights only meaningful institutional activity.
Automatic Asset Detection
In Auto mode, the indicator uses the AssetCorrelationUtils library to detect your chart's asset class and automatically select the most relevant correlated pairs:
Indices: ES ↔ NQ ↔ DXY, YM ↔ ES ↔ NQ
Forex: EURUSD ↔ DXY ↔ GBPUSD, USDJPY ↔ DXY ↔ US10Y
Crypto: BTC ↔ ETH ↔ DXY
Metals: Gold ↔ Silver ↔ DXY
Energy: CL (Oil) ↔ NG ↔ DXY
HTF Sweep Detection
Sweeps are detected when an HTF candle (C2) takes out the high or low of the previous candle (C1) and then closes back inside. This marks liquidity grabs on the higher timeframe.
HOW TO USE
Enable HTF timeframes: Select 1-3 higher timeframes relevant to your trading style (e.g., 30m, 90m, 4H for intraday traders)
Watch for PSP candles: When a candle body color changes to the divergence color, a PSP has formed
Note the direction: Bullish divergence (your asset bullish while correlated asset bearish) suggests upside; bearish divergence suggests downside
Combine with LTF structure: Use PSPs as bias, then look for entry on lower timeframes (CHoCH, FVG, etc.)
Sweeps confirm liquidity: A sweep followed by a PSP is a strong reversal signal
INPUTS
HTF Selection
HTF 1/2/3: Enable/disable each HTF slot with timeframe and candle count
Custom Daily Open: Use Midnight, 8:30, or 9:30 ET as daily candle open
Styling
Body/Border/Wick Colors: Customize bullish and bearish candle appearance
Padding/Buffer/HTF Buffer: Control spacing between candles and timeframe groups
Labels
HTF Label: Show timeframe name above/below candles
Remaining Time: Countdown to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Interval Value: Show interval details on candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HTF Sweeps: Show sweep lines when C2 takes out C1's high/low
Trace
Trace Lines: Draw lines from HTF candle OHLC levels back to chart price
Anchor: Anchor to first or last timeframe
PSP Divergence Detection
Precise Mode: Only highlight pivots on current asset (stricter confirmation)
Divergence Body Colors: Custom colors for bullish/bearish divergence candles
Asset Selection
Correlation Preset: Auto (library-detected) or Manual
Manual Assets 1/2/3: Specify custom correlated assets
Invert Asset 3: Flip the bullish/bearish interpretation for inverse correlations (e.g., DXY)
KEY FEATURES
Multi-HTF Display: Up to 3 higher timeframes displayed simultaneously
Auto Asset Detection: Automatically finds relevant correlated assets for your chart
Dynamic Reordering: When you switch charts, assets reorder so the chart is always primary
Inverse Correlation Support: Properly handles DXY and other inversely correlated assets
HTF Sweep Detection: Highlights liquidity grabs on higher timeframes
FVG/VI Detection: Fair Value Gaps and Volume Imbalances on HTF candles
Remaining Time Counter: Know exactly when the next HTF candle closes
BEST PRACTICES
Use PSPs as directional bias, not direct entries—wait for LTF confirmation
A PSP at a key level (previous day high, weekly open) carries more weight
Multiple PSPs across different HTFs pointing the same direction = stronger signal
Sweeps that fail to hold (sweep + PSP) often mark significant reversals
In Auto mode, trust the library's asset selection—it's been tuned for common correlations
DISCLAIMER
This indicator is for educational purposes only and does not constitute financial advice. Divergences and PSPs do not guarantee reversals—always use proper risk management and confirm signals with your own analysis. Past performance does not guarantee future results.
CREDITS
Original HTF candle plotting concept by @fadizeidan. PSP divergence detection and asset correlation logic by cephxs & fstarcapital. Uses the AssetCorrelationUtils library by fstarcapital.
Open Sourced For all.
Enjoy.
Made with ❤️ by cephxs + fadi
cephxs + fadi / Previous Time Based Dealing RangesPREVIOUS TIME BASED DEALING RANGES
Visualize previous and current higher timeframe dealing ranges with dual-box OHLC representation, extending reference lines, and HTF candle displays.
Open Source Fork of @fadizeidan 's HTF Candles Indicator
OVERVIEW
This indicator displays time-based dealing ranges from higher timeframes directly on your chart. It shows the complete price action structure of previous (or current/forming) periods using a dual-box system: one box for the full High-Low range and another for the Open-Close body. Reference lines extend from key levels to help identify potential support, resistance, and mean reversion zones.
Perfect for traders who use ICT concepts, market structure analysis, or any methodology that relies on understanding where price has been relative to previous dealing ranges.
KEY FEATURES
Dual-Box Range Visualization: Each range displays two boxes - the full H-L range (outer) and the O-C body (inner) - giving immediate visual context of candle structure
Multiple Timeframes: Support for 90m, 4H, 6H, 1D, 1W, 1M, and 3M ranges
Previous/Current Mode: View completed ranges (Previous) or the forming range (Current) with real-time updates
Auto Mode: Automatically selects the appropriate range based on your chart timeframe
Reference Lines: Extending lines from High, Mid, Low (or Quadrants: H/75/M/25/L) with trade-into detection
HTF Candle Display: Visual HTF candles positioned to the right of price for context
6H Session Support: Session-aware ranges for Asia, London, NY AM, and NY PM with labeled names
Open Line: Vertical line marking the range's opening price/time
Imbalance Detection: Fair Value Gaps and Volume Imbalances highlighted on HTF candles
MODE OPTIONS
Previous/Current: Previous shows the last completed range. Current shows the forming range with dynamic H/L/C updates
Auto/Manual: Auto selects range by chart TF. Manual lets you choose specific ranges
Extend Box (Current): In Current mode, extends the box's right edge as price develops
AUTO MODE TIMEFRAME LOGIC
Auto mode now selects up to 3 ranges automatically based on chart timeframe, providing multi-timeframe context:
Chart ≤ 3m → 90m + 6H + 1D
Chart 4m-14m → 6H + 1D + 1W
Chart 15m-59m → 1D + 1W (+ 1M available)
Chart 1H-3H → 1D + 1W + 1M
Chart 4H-23H → 1W + 1M + 3M
Chart ≥ 1D → 1M + 3M
INPUTS
Mode
Mode: Previous/Current - Choose completed or forming range
Auto/Manual: Auto selects range by chart TF, Manual lets you choose
Extend Box (Current): Extends box right edge with price (Current mode only)
Show Range Boxes: Toggle box visibility (lines remain visible when off)
Filter Lines by Distance: When boxes are hidden, hide reference lines that are too far from current price (Really Close / Balanced / Slightly Far)
Previous Ranges
Range 1: Enable/disable, select timeframe (90m/4H/6H/1D/1W/1M/3M), max display count (1-2)
Range 2: Second range layer for multi-timeframe analysis
Range 3: Third range layer for additional context
Reference Lines
Line Mode: Levels (H/M/L) or Quadrants (H/75/M/25/L)
Line Style: Solid, dashed, or dotted
Line Thickness: 1-4 pixels
Show Labels: Toggle reference line labels
Label Offset: Distance of labels from current price (1-20 bars)
HTF Candle Levels: Show mini H/M/L lines on HTF candles
Open Line: Vertical line at range open with customizable style
Range Boxes & Colors
Per-Range Colors: Customize box and line colors for each timeframe (90m, 4H, 6H, 1D, 1W, 1M, 3M)
HTF Candle Styling
Show HTF Candles: Toggle HTF candle display
Body/Border/Wick Colors: Customize bull and bear candle appearance
Padding/Buffer/Width: Control candle spacing and size
Labels
HTF Label: Show timeframe label above/below candles
Remaining Time: Countdown timer to candle close
Label Position: Top, Bottom, or Both
Label Alignment: Align across timeframes or follow individual candles
Imbalance
Fair Value Gap: Highlight FVGs on HTF candles
Volume Imbalance: Highlight VIs on HTF candles
HOW TO USE
Add the indicator to your chart
Choose Previous or Current mode based on your analysis preference
Use Auto mode for intelligent range selection, or Manual to select specific timeframes
Reference lines extend from range levels - watch for price reactions at H/M/L
In Current mode, observe how the range develops with real-time updates
Use the HTF candles on the right for quick multi-timeframe context
REFERENCE LINE LABELS
Labels follow this format:
Previous mode: pD-H (previous Daily High), pW-M (previous Weekly Mid), p6H-London-L (previous 6H London Low)
Current mode: D-H (Daily High), W-M (Weekly Mid), 6H-Asia-L (6H Asia Low)
6H SESSION NAMES
Asia: 18:00-00:00 ET
London: 00:00-06:00 ET
NYAM: 06:00-12:00 ET
NYPM: 12:00-18:00 ET
RECOMMENDED TIMEFRAMES
Tick/Second charts: 90m ranges
1-5 minute charts: 6H or 1D ranges
15-60 minute charts: 1D or 1W ranges
4H charts: 1W or 1M ranges
Daily charts: 1M or 3M ranges
Or simply use Auto mode to let the indicator choose the optimal range.
TIPS
The Mid (M) level often acts as equilibrium - watch for mean reversion plays
High and Low levels are natural support/resistance zones
In Current mode, watch how price interacts with the forming range boundaries
Combine with your existing analysis for confluence
The Open Line helps identify the "true open" of each range for gap analysis
DISCLAIMER
This indicator is for educational and informational purposes only.
Past performance does not guarantee future results.
Always use proper risk management and never risk more than you can afford to lose.
Trading involves substantial risk of loss and is not suitable for all investors.
CREDITS
Original indicator by @fadizeidan.
Enhanced by cephxs/fstarcapital
CHANGELOG
Pro + v1.1: Reupload + Added 90m ranges for ultra-low timeframe analysis, distance-based line filtering (lines-only mode), third range slot.
Open sourced so users can add more slots.
Enjoy 🤙
ICT Killzones (Bandz)ICT Killzones (Bandz) — Description
This indicator draws ICT-style killzones and key intraday levels to keep your chart clean and consistent.
What it shows
Killzone boxes for:
Asia
London
Pre-Market
NY Opening Range
NY Lunch
Each box tracks the session high/low while the session is active.
Killzone pivots
Session High / Low pivot lines
Optional midpoint line
Optional pivot labels (with optional price display)
Option to stop midpoints once price trades through them
Day / Week / Month levels
Previous Day High / Low
Previous Week High / Low
Previous Month High / Low
Optional Day / Week / Month Open lines
EQ (Equilibrium) levels
These are the 50% levels between the previous high and low:
Daily EQ
Weekly EQ
Monthly EQ
Yearly Open
Draws the Yearly Open level automatically when a new year starts.
Cleaner chart (Label Merge)
To reduce clutter on the right side of the chart:
Automatically combines labels when multiple levels are close together
Designed for D/W/M highs/lows, opens, EQ levels, and opening price lines
Keeps the merged label on the rightmost label spot so it stays aligned
Uses a stable base price so merged labels don’t drift over time
Notes
Works best on intraday charts.
Uses a timeframe limit, so drawings won’t show above your selected limit.
Includes a right buffer setting to push labels/line ends to the right for readability.
cephxs / New X Opening Gaps [Pro +]NWOG & NDOG - OPENING GAPS
Smart Gap Detection with Intelligent Filtering
Visualizes New Week Opening Gaps (NWOGs) and New Day Opening Gaps (NDOGs) with built-in intelligence to show you only what matters. No more cluttered charts with gaps from 3 months ago that price will never revisit.
THE PROBLEM WITH GAP INDICATORS
Most gap indicators dump every single gap on your chart and call it a day. You end up with 50 boxes cluttering your screen, half of which are miles away from current price and the other half are so tiny they're basically noise.
This one's different and I explain why below.
SMART FILTERING (THE GOOD STUFF)
Two filters work together to keep your chart clean:
Size Filter: Uses ATR-based detection to filter out insignificant gaps, dynamic with less volatile time periods
- Filter None: Show everything (if you really want chaos)
- Filter Insignificant: Hide the micro-gaps that don't matter
- Juicy Gaps Only: Only show gaps worth paying attention to
Distance Filter: Only displays gaps within range of current price
- Really Close: 0.5 ATR - tight focus on immediate levels
- Balanced: 1 ATR - sweet spot for most traders
- Slightly Far: 3 ATR - wider view for swing traders
Cleanup Interval: Controls how quickly out-of-range gaps disappear
- Immediately: Gaps hide/show every bar as price moves
- 5 / 15 / 30 Minutes: Gaps only update visibility at interval boundaries - reduces visual noise during choppy price action
The magic: gaps appear and disappear as price moves toward or away from them. Old gaps that price has left behind fade out, and gaps that become relevant fade back in. Use delayed cleanup intervals if you want gaps to "stick around" a bit longer before disappearing.
GAP TYPES EXPLAINED
New Week Opening Gaps (NWOGs):
The gap between Friday's close and Monday's open. These form over the weekend when markets are closed and often act as significant support/resistance.
Two classifications:
Void Gaps: Gap direction aligns with Friday's candle direction (continuation)
Overlap Gaps: Gap direction conflicts with Friday's candle (potential reversal)
New Day Opening Gaps (NDOGs):
The gap between one day's close and the next day's open. Smaller but frequent - useful for intraday traders looking for fill targets.
FEATURES
Automatic Week/Day Detection: Handles forex (17:00 ET open) and futures (18:00 ET open) correctly
DST-Aware: Uses New York timezone with automatic daylight saving adjustments
50% Equilibrium Line: Marks the midpoint of each gap - key level for entries
Days Ago Labels: Shows how old each gap is at a glance
Extension Modes: Choose between live-extending boxes or fixed-width boxes
Separate Color Schemes: Different colors for void vs overlap NWOGs, bullish vs bearish NDOGs
INPUTS
NWOG Display
Show NWOGs: Master toggle
Extension Mode: "Extend Live" or "Extend to Week Close"
Maximum NWOGs: Limit displayed gaps (1-50)
Show Void/Overlap Gaps: Toggle each type independently
Show NWOG Labels: Toggle gap labels
NDOG Display
Show NDOGs: Master toggle
Extension Mode: "Extend Live" or "Extend to Day Close"
Maximum NDOGs: Limit displayed gaps (1-50)
Show NDOG Labels: Toggle gap labels
Filter Settings
Size Filter: Filter None / Filter Insignificant / Juicy Gaps Only
Only Show Near Price: Enable/disable distance filtering
Distance Filter: Really Close / Balanced / Slightly Far
Cleanup Interval: Immediately / 5 Minutes / 15 Minutes / 30 Minutes - controls how often gaps update visibility
ATR Period: Period for ATR calculation (default: 14)
Right Edge Offset: How many bars ahead boxes extend
Styling
Box Transparency: Fill and border opacity
Midline Style: Solid / Dotted / Dashed
Label Style: Simple ("NWOG, 5d ago") or Descriptive ("NWOG (Void Bull), 5d ago")
Label Size: Tiny / Small / Normal / Large
RECOMMENDED SETTINGS
For intraday (1m-15m):
Size Filter: Filter Insignificant
Distance Filter: Really Close or Balanced
Show NDOGs: On
Maximum NDOGs: 5-10
For swing trading (1H-4H):
Size Filter: Juicy Gaps Only
Distance Filter: Balanced or Slightly Far
Show NWOGs: On
Maximum NWOGs: 10-20
TIMEFRAME NOTES
Works on daily timeframe and below. Above daily, the indicator disables itself since NWOG/NDOG gap detection requires daily open/close data.
ASSET SUPPORT
Automatically handles different market open times:
Forex: Week opens Sunday 17:00 ET, closes Friday 17:00 ET
Futures: Week opens Sunday 18:00 ET, closes Friday 16:15 ET
Stocks/Other: Uses session-based detection
FAQ
Why do gaps appear and disappear?
That's the distance filter working. As price moves, gaps that were far away become relevant and appear. Gaps that price leaves behind disappear. This keeps your chart focused on actionable levels.
What's the difference between void and overlap gaps?
Void gaps continue Friday's direction (trend continuation). Overlap gaps conflict with Friday's direction (potential reversal setup). Different traders prefer different types.
Why can't I see any gaps?
Check your filter settings. "Juicy Gaps Only" with "Really Close" distance filter is very selective. Try "Filter Insignificant" with "Balanced" for more gaps.
DISCLAIMER
This indicator is for educational purposes only. Opening gaps are one tool among many - they don't guarantee fills or reversals. Always use proper risk management and never trade based on a single indicator. Past gap fills don't guarantee future performance. Do your own analysis.
CHANGELOG
Pro +: Added smart size/distance filtering, void/overlap classification, NDOG support, DST-aware timezone handling
Base: Initial NWOG visualization
Made with ❤️ by fstarlabs
cephxs / Quarterly Theory [Ultimate +]QUARTERLY THEORY
Multi-cycle Sequential SMT divergence analysis with 7-layer time fractal detection, PSP swing points, CISD momentum tracking, Purge visualization, and a comprehensive alert system with preset combinations.
This indicator is subject to the terms of the Mozilla Public License 2.0.
WHAT IT DOES
The Quarterly Theory indicator maps Trader Daye's time-based market cycles—from Monthly down to Nano—and detects SSMT (Sequential SMT) divergences across correlated assets within each cycle. It tracks when your chart asset and its correlated pairs disagree on highs and lows, often preceding significant reversals.
This is NOT a signal generator. It is a divergence detection tool designed to show you WHEN correlated markets are disagreeing within the natural rhythm of time cycles—information that helps identify high-probability turning points.
-- IMAGE: Main indicator view showing SSMT lines across multiple cycles --
CORE CONCEPTS
Quarterly Theory Time Cycles
The indicator tracks 7 nested time cycles based on ICT/Daye's Quarterly Theory:
Monthly: Week-based quarters within each month (Q1-Q4)
Weekly: Daily quarters within each trading week
Daily: Session-based quarters (Asia, London, NY AM, NY PM)
90m: 90-minute cycles divided into quarters (~22.5 minutes each)
30m: 30-minute cycles (90m divided by 3)
Micro: 64 sessions per day (~22.5 minutes each)
Nano: 256 sessions per day (~5-6 minutes each) - optional high-resolution mode (basically each Micro session divided by 4)
Each cycle has its own SSMT detection, allowing you to see divergences across multiple time fractals simultaneously.
SSMT (Sequential SMT) Divergences
SSMT tracks when correlated assets disagree on extremes within a time cycle:
Bullish SSMT: Primary asset makes a lower low while correlated asset makes a higher low
Bearish SSMT: Primary asset makes a higher high while correlated asset makes a lower high
Lines connect the divergent extremes, providing visual confirmation of market disagreement.
Normal vs Hidden Divergences
Normal: Wick-based extremes—traditional SMT comparing session highs and lows
Hidden: Body-based extremes—more selective, comparing close prices for stronger signals according to some.
You can display Normal only, Hidden only, or Both for maximum information—flexible.
All of these lines have robust labels and dual label handling for when correlations occur with two of the assets in the triad at once to avoid collision.
PSP (Precision Swing Points)
A PSP is not just a pivot—it is a pivot WITH a divergence on the closure. When one asset makes a new high or low but correlated assets FAIL to confirm, the pivot becomes a Precision Swing Point. These often mark significant turning points. It also highlights PSPs that are not divergences for even more advanced analyses and alerts.
Example: ES closes bullish on a candle, but NQ closes bearish. If this occurs at a pivot point, the C2 candle is flagged as a PSP on the chart itself. The indicator also allows one to filter PSPs based on proximity to an existing SMT Divergence.
CISD (Change In State of Delivery)
CISD identifies momentum shifts after pivot formation by detecting opposing candle stretches and confirming when price closes beyond the stretch level. This helps validate directional commitment. It uses a custom pivot system to track originating trends.
Purge Detection
Purges occur when price sweeps through a previous pivot level (liquidity grab). The indicator tracks these events with solid/dotted line visualization and optional alerts.
KEY FEATURES
7-Layer Cycle Detection: Monthly, Weekly, Daily, 90m, 30m, Micro, and Nano cycles all computed simultaneously
Auto Timeframe Gating: Automatically shows relevant cycles based on your chart timeframe. On 15m, you see Daily SSMT. On 1m, you see Micro and 30m SSMT.
Dual Detection Modes: Normal (wick) and Hidden (body) divergence detection per cycle
Automatic Asset Correlation: Uses the same AssetCorrelationUtils library as our other tools—auto-detects correlated pairs or configure manually
Per-Cycle Colors: Customize bull/bear colors for each cycle level
Pivot Time Labels: Optional time labels at swing points with key time highlighting
Purge Visualization: Solid lines for confirmed purges, dotted extensions while active
CISD with Size Filter: ATR-based filtering to ignore insignificant stretches
THE ALERT SYSTEM
The Quarterly Theory indicator provides a comprehensive alert system with multiple layers:
Individual Event Alerts
Swing High/Low: Alert when a new pivot forms
Purge High/Low: Alert when price sweeps through a pivot level
CISD Pending/Confirmed: Alert on momentum shift detection
SSMT per Cycle: Individual alerts for Monthly, Weekly, Daily, 90m, 30m, Micro divergences
CISD Model Combo Alerts
Pre-built alert presets that combine SSMT + CISD confirmation per cycle:
Monthly SSMT + CISD
Weekly SSMT + CISD
Daily SSMT + CISD
90m SSMT + CISD
30m SSMT + CISD
Micro SSMT + CISD
Stacked (multiple cycles aligning)
PSP Model Combo Alerts
Alerts when a Precision Swing Point forms with SSMT confirmation:
PSP + SSMT per cycle
PSP + Stacked SSMT (multiple cycles)
Directional filtering (bullish/bearish only)
Alert Kitchen - Custom Combos
Build your own alert conditions by combining:
Any cycle level (or multiple)
Direction (bullish/bearish/both)
Detection type (Normal/Hidden/Both)
Additional filters (CISD, PSP, Purge/Sweep)
Session Filter
Restrict alerts to specific trading sessions: Asia, London, NY AM, NY PM, London + NY, or define a custom time window.
-- IMAGE: Alert settings panel --
Will be streamlining the inputs to allow for an improved UX.
HOW TO USE IT
Getting Started (2 minutes)
Add the indicator to your chart
SSMT lines will appear automatically based on your timeframe
Each colored line represents a divergence at that cycle level
Labels show the cycle name and/or correlated asset
Understanding the Display
Lines connecting highs = Bearish SSMT (potential reversal down)
Lines connecting lows = Bullish SSMT (potential reversal up)
Solid lines = Normal divergence (wick-based)
Dotted lines = Hidden divergence (body-based)
Line color = Cycle level (customizable per cycle)
Adjusting Timeframe Visibility
Auto: Shows only the most relevant cycle for your chart TF
All: Shows all enabled cycles regardless of chart TF
Extended: Broader visibility ranges per cycle
Custom: Define exact min/max TF ranges per cycle
Configuring Asset Correlation
Go to Asset Selection settings
Set to Auto (detects correlated assets automatically)
Or set to Manual and enter custom ticker symbols
Use Invert Asset 3 for inverse correlations (e.g., DXY vs EUR/USD)
Pro Tips
Start with Auto timeframe gating to reduce clutter
Focus on one or two cycle levels until you understand the rhythm
Enable Hidden divergence for higher-probability signals
Use the Directional Bias Filter to focus on one direction only
The Status Bar shows current cycle states at a glance
-- IMAGE: Status bar showing active cycles vs when it's not active --
INPUT SETTINGS OVERVIEW
These inputs may change as updates roll out with improvements.
Visual Preset
Preset options: SSMT Only, SSMT + CISD, SSMT + Purge, CISD + Purge, All Features
Directional Bias Filter: All, Bullish only, Bearish only
SSMT Plots (Section 2)
Show SSMT master toggle
Labels toggle with size and color
Label Mode: Cycle + Asset, Cycle only, Asset only
Timeframe Gating: Auto, All, Extended, Custom
Detection Mode: Normal, Hidden, All
Per-cycle toggles and colors (Monthly through Nano)
Min/Max TF ranges for Custom mode
Pivot & PSP Settings (Section 3)
Show swing high/low shapes
Shape styles and colors
Show pivot lines with crossing style
PSP highlighting options
Pivot Time Labels (Section 3.5)
Show Time Labels toggle
Key time highlighting (macros)
Label styling options
Purge Settings (Section 4)
Show purge lines
Solid/dotted line styles
Line colors for bull/bear
CISD Settings (Section 5)
Show CISD toggle
Maximum CISDs displayed
Size filter (ATR-based)
Bull/bear colors
Alert Sections (6-11)
Master switches
Session filter
Individual event alerts
CISD model combos
PSP model combos
Alert Kitchen custom combos
Asset Selection (Section 12)
Correlation Preset: Off, Auto, Manual
Manual Asset 1/2/3 inputs
Invert Asset 3 for inverse correlations
Status Bar (Section 13)
Position, size, colors
Shows active cycle states
SUPPORTED MARKETS
The built-in correlation library automatically detects pairs for:
Index Futures: NQ/ES/YM/RTY and micro variants
Forex: EUR/GBP/DXY triad, USD/JPY/CHF triad, CAD pairs
Crypto: BTC/ETH/TOTAL3, SOL/XRP pairs, major alts
Metals: Gold/Silver/Copper
Energy: Crude/Gasoline/Heating Oil
Treasuries: ZB/ZF/ZN
For assets not covered, use Manual mode to define your own correlation group.
AUTOMATICALLY RECOMMENDED TIMEFRAMES
1m: See Micro and 30m cycles
3m-5m: See 90m and 30m cycles
15m: See Daily cycle
1H: See Weekly cycle
4H: See Monthly cycle
Use Extended or Custom mode to see multiple cycles simultaneously.
TERMINOLOGY QUICK REFERENCE
QT: Quarterly Theory (time-based cycle analysis)
SSMT: Sequential SMT (divergence within a time cycle)
SMT: Smart Money Technique (divergence between correlated assets)
PSP: Precision Swing Point (pivot with divergence)
CISD: Change In the State of Delivery (confirmed directional shift)
Purge: Liquidity sweep through a pivot level
Normal: Wick-based divergence detection
Hidden: Body-based divergence detection
Q1/Q2/Q3/Q4: Quadrants within each cycle
PERFORMANCE NOTES
Micro cycle (64 sessions) adds significant computation load and makes the tool unbearably slow—disable if not needed
30m cycle (48 sessions) is an alternative to Micro with less load
Nano cycle (256 sessions) is optional and only active below 1m timeframes
Use Auto timeframe gating to reduce unnecessary computations
A bar limiter is implemented at the bottom for performance considerations, prioritizing real-time analysis.
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Always use proper risk management and conduct your own analysis before making trading decisions.
CREDITS
Developed by cephxs and fstarcapital
Uses AssetCorrelationUtils library by fstarcapital for automatic correlation detection
Conceptual Credits
This Indicator uses Concepts by the Inner Circle Trader, Michael Huddleston.
This Indicator uses concepts from Quarterly Theory as taught by TraderDaye.
VERSION
PineScript v6 | Ultimate+ Edition
cephxs / Universal Po3 Profiler [Ultimate +]UNIVERSAL PO3 PROFILER
Multi-timeframe structural analysis with HTF candle visualization, Precision Swing Point (PSP) detection, SMT divergences, CISD Trend change tracking, and a hierarchical alert system that filters noise from signals.
This indicator is subject to the terms of the Mozilla Public License 2.0.
This indicator utilizes Open Source Code from @fadizeidan, Refer to the bottom of this desciption for more information.
WHAT IT DOES
The Universal Po3 Profiler brings multiple higher timeframe perspectives directly onto your chart without switching tabs. It renders HTF candles alongside your price action while detecting divergences across correlated assets, tracking the Power of 3 sequence (C1/C2/C3/C4), and providing a multi-level alert system that only fires when your configured conditions align.
This is NOT a signal generator. It is a context tool designed to help you understand WHERE price sits within the larger structure and WHEN correlated assets are disagreeing—information that often precedes significant moves.
-- IMAGE: Main indicator view showing HTF candles on right side of chart with profiling elements --
CORE CONCEPTS
Power of 3 (Po3) Profiling
The indicator tracks the classic accumulation-manipulation-distribution sequence across HTF candles:
C1: The candle whose level becomes the target for liquidity
C2: The sweep candle that trades beyond C1's level, then closes back inside the range
C3: The confirmation candle showing directional commitment
C4: Continuation phase where the move plays out
The T-Spot (TTrades/ICT) highlights the 50% area of the manipulation range/C2 where price often returns for entries.
Precision Swing Point (PSP)
A PSP is not just a pivot—it is a pivot WITH a divergence on the closure. When one asset makes a new high or low but correlated assets FAIL to confirm, the pivot becomes a Precision Swing Point. These often mark significant turning points. It also highlights PSP's that are not divergences for even more advanced analyses + alerts.
Example: ES closes bullish on a candle, but NQ closes bearish. If this occurs at a pivot point, the C2 candle is flagged as a PSP on the HTF candles only.
SMT (Smart Money Technique) Divergences
SMT tracks when correlated assets disagree on highs or lows:
Bullish SMT: Primary asset makes lower low while correlated asset makes higher low
Bearish SMT: Primary asset makes higher high while correlated asset makes lower high
Lines are drawn connecting the divergent extremes on both your chart and the HTF candle plots.
These lines get cleaned up when invalidated i.e the highest/Lowest point gets traded through.
CISD (Change In State of Delivery)
CISD identifies momentum shifts after pivot formation by detecting opposing candle stretches and confirming when price closes beyond the stretch level. Optional Fibonacci projections help identify potential profit targets.
KEY FEATURES
Auto-Adaptive HTF Selection: Automatically selects optimal timeframes based on your chart. On a 5-minute chart, it might display 30m, 1H, and 4H candles. Manual override available for custom setups (MMXM Trader + some tweaks by me.).
3-Timeframe Display: Up to three concurrent HTF candle sets with independent settings per timeframe.
Profiler Source Selection: Choose which HTF drives the Po3 profiling visuals—Auto selects the best option, or override manually.
Dual SMT Views: SMT lines can appear on HTF candle plots or directly on your chart or both.
Automatic Asset Correlation: Custom Open Source Built-in library detects correlated assets for your symbol. On ES, it compares NQ and YM. On EUR/USD, it compares GBP/USD and DXY. Manual configuration available for custom pairs. you can use this in your own tools.
HTF Imbalances: Fair Value Gaps and Volume Imbalances rendered directly on HTF candles.
Visual Overlays: Vertical lines at HTF opens, horizontal lines at HTF open prices, sweep lines connecting C1 to C2.
-- IMAGE: SMT divergence lines drawn between correlated assets --
THE MULTI-LEVEL ALERT SYSTEM
Most indicators give you one alert condition. The Po3 Profiler provides THREE levels that must align before an alert fires—filtering noise and focusing only on high-confluence setups. Tried and Tested in Live Conditions.
Understanding the Alert Hierarchy
Level 3 (Upper Fractal): Your highest timeframe anchor—always required. This is the "big picture" context.
Level 2 (Intermediary): Optional middle timeframe that adds extra confirmation between L3 and your chart.
Level 1 (Chart Trigger): Your entry trigger on the chart timeframe—currently only CISD-based, expandable to IFVGs and Other Entry Styles/Risk Definitions.
Alerts only fire when ALL enabled levels pass their conditions. This cascading approach means you are not alerted to every C2 sweep and CISD like all the others out there — only those with higher timeframe confluence.
Configuring Each Level
For each level, you configure:
TF Alignment: Map each level to an HTF (L3 should be highest, L2 in the middle)
Phase Alignment: What phase must the HTF be in? Options include None, Early C2 (real-time sweep), C2 Confirmed (sweep completed), C3 Active (confirmation candle forming), or C4 Active
Confluence Filters: Optional Stacking additional requirements for entries — C2 must be a PSP, SMT divergence must be active, or SMT occurred on the previous candle etc
Session Filter
Optionally restrict alerts to specific trading sessions: Asia, London, NY AM, NY PM, London + NY, or define a custom time window. This ensures alerts only fire during your preferred trading hours, preventing clutter
Visual Alert Entries
Enable visual markers on your chart where all conditions aligned. This is invaluable for backtesting your filter combinations before setting live alerts.
-- IMAGE: Alert Settings Table showing L3/L2/L1 configuration --
Size exaggerated for Explanation Purposes
HOW TO USE IT
Tip: Most of these are aenabled by deafult for easy user flow, you're welcome.
Getting Started (2 minutes)
Add the indicator to your chart
Leave Auto HTF and Auto Count enabled (default)
Select your preferred profile preset: 4H/1H for standard ICT-style or 6H/90m for Quarterly Theory traders (Daye)
The indicator immediately displays HTF candles with profiling active
For PSP and SMT Detection
Go to Asset Selection settings
Set Correlation Preset to Auto (detects correlated assets automatically)
Enable HTF PSP in the Divergences section to highlight candles with divergence
Enable SMT and choose Chart SMT, HTF SMT, or both
Use Clean mode for minimal clutter, Pro mode for maximum information
For Alerts
Navigate to Alert Input Settings
Enable Level 3 and map it to your highest HTF
Set the Phase Alignment (C2 Confirmed or C3 Active are common)
Optionally enable Level 2 for additional confirmation
Add confluence filters (C2 PSP, Active SMT) as needed
Enable Session Filter if you only trade specific hours
Enable Show Alert Entries to visualize where your conditions would have triggered
Once satisfied, create a TradingView alert on this indicator
Pro Tips
Start with minimal filters, then add confluence requirements as you understand the system and yourself
The Profiler Status Bar shows your current phase at a glance—enable it in Display Tables
Use Defer Cleanup to keep the T-Spot visible during C4 until C2 is invalidated or the sequence ends.
-- IMAGE: Profiler Status Bar showing current Po3 Settings--
This could be different/Updated in future Updates, refer to the changelog
INPUT SETTINGS OVERVIEW
Section 1: HTF Input Settings
Auto HTF / Auto Count toggles
Profiler Source selection (Auto, HTF 1, HTF 2, HTF 3)
Manual HTF 1/2/3 timeframe and candle count (when Auto is off)
Directional bias controls (Po3, Alert, CISD/SMT)
Section 1.2-1.4: Alert System
Level 3/2/1 enable toggles and TF alignment
Phase alignment per level
Price/confluence filters (PSP, SMT)
Session filter with presets and custom time
Section 2: HTF Candle Styling
Padding and buffer spacing
Bull/bear body, border, wick colors
Midpoint line toggle
HTF divider lines between candle sets
Section 3: Profiling Elements
T-Spot box and border styling
Sweep line appearance (chart and HTF)
Extras
Section 4: Divergences
Enable HTF PSP with custom colors
Enable SMT (Chart/HTF/Both)
Clean vs Pro chart mode
Per-HTF SMT toggles and colors
Max SMT cycles limiter
Section 5: Detection Systems
Pivot & CISD detection settings
Section 6: Display Tables
Profiler Status Bar (position, size, colors)
Alert Settings Table (shows current L3/L2/L1 config)
Section 7: Asset Selection
Correlation Preset (Off, Auto, Manual)
Manual Asset 1/2/3 inputs
Invert Asset 3 for inverse correlations
SUPPORTED MARKETS
The built-in correlation library automatically detects pairs for:
Index Futures: NQ/ES/YM/RTY and micro variants
Forex: EUR/GBP/DXY triad, USD/JPY/CHF triad, CAD pairs
Crypto: BTC/ETH/TOTAL3, SOL/XRP pairs, major alts
Metals: Gold/Silver/Copper
Energy: Crude/Gasoline/Heating Oil
Treasuries: ZB/ZF/ZN
For assets not covered, use Manual mode to define your own correlation group.
TERMINOLOGY QUICK REFERENCE
Po3: Power of 3 (Accumulation, Manipulation, Distribution)
PSP: Precision Swing Point (pivot with divergence)
SMT: Smart Money Technique (divergence between correlated assets)
CISD: Change In the State of Delivery (confirmed directional shift)
HTF: Higher Timeframe
LTF: Lower Timeframe (your chart)
C1/C2/C3/C4: Candle sequence in Po3 profiling
T-Spot: Trading zone (50% from Open to wick in C3 / 25% in C4) Named this way for familiarity.
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Always use proper risk management and conduct your own analysis before making trading decisions.
Development Credits
HTF Candle plotting base logic inspired by @fadizeidan (ICT HTF Candles), with explicit permission from the crator himself for use as a Vendor. Constitutes Less than 20% of Final Codebase, avalaible for verification.
Vendor Rule Compliance: "Your script must also be published open-source, unless explicit permission to that effect was granted by the original author, or unless the reused code is considered public domain AND it constitutes an insignificant part of your codebase"
FOUNDATION AND UPGRADES
The HTF candle rendering logic builds upon the work of @fadizeidan, whose ICT HTF Candles indicator provided the foundational approach for plotting higher timeframe candles with OHLC representation, imbalance detection, and candle styling.
This indicator significantly extends that foundation with:
Automatic timeframe selection (the original required manual HTF configuration for all 6 slots)
A Fully Autonomous Alert System
Po3 profiling system with C1/C2/C3/C4 sequence tracking
Precision Swing Point detection using multi-asset divergence analysis
SMT divergence lines on both chart and HTF candles
CISD momentum tracking with optional Fibonacci projections
Multi-level alert system with phase and confluence filters
Automatic asset correlation detection via the AssetCorrelationUtils library
Profiler Status Bar for real-time phase tracking
Reduced HTF count (3 vs 6) with smarter auto-selection for cleaner charts compliance with IL compiler token limits.
Credits to the Original Publication
Link Here:
Developed by cephxs and fstarcapital
Uses AssetCorrelationUtils library by fstarcapital for automatic correlation detection
Conceptual Credits
This Indicator uses Concepts by the Inner Circle Trader, Michael Huddleston.
This Indicator uses concepts from a number of derived creators from ICT and is inspired by Creators including but not limited to: TTrades, GxT, Afyz, MMXM Trader, TradeDaye
VERSION
PineScript v6 | Ultimate+ Edition
Reuploaded for compliance with House Rules (Emojis)
Key levels by Chav3zNY-Time Anchored Sessions
Visualizes the Asia, London, and New York sessions using customizable boxes or high/low lines. Unlike standard session indicators, this tool uses the America/New York time zone to ensure your session start and end times remain accurate throughout Daylight Savings changes.
2. Dynamic HTF Key Levels (PDH/PDL, PWH/PWL, PMH/PML)
Automatically plots the Previous Daily, Weekly, and Monthly Highs and Lows.
Clean Intraday Origin: To prevent "chart clutter," these lines do not drag across the entire historical data. They originate at the start of the current day (NY Midnight), providing a clean horizontal reference for the current trading session.
Lookback Control: Choose how many days of historical key levels you want to remain visible on your chart.
3. Custom Time-Anchored Levels
Includes two fully customizable "Price Anchors" (e.g., Midnight Open, 09:30 AM NY Open).
Origin Point Precision: Lines start exactly at the candle of the specified time (e.g., 09:30) and extend forward, rather than drawing through the pre-market.
Price Capture: Choose to anchor to the Open, High, or Low of that specific timestamp.
4. Full Aesthetic Customization
Every level (Daily, Weekly, Monthly, and Custom) can be individually styled:
Color & Visibility: Set each level to your preferred color (Defaulted to Black for a clean look).
Line Style: Toggle between Solid, Dashed, or Dotted lines.
Thickness: Adjust the line width (1px, 2px, etc.) for better visibility on high-resolution screens.
How to Use
Midnight Open: Set Level 1 to 0000 to track the Daily Open, a crucial level for determining daily bias.
NY Open: Set Level 2 to 0930 to mark the "Opening Range" anchor for the New York session.
Liquidity Targets: Use the PDH/PDL and PWH/PWL levels to identify draw-on-liquidity areas for intraday scalp or swing setups.






















