PROTECTED SOURCE SCRIPT

[ICT] Advance Orderblocks, FVG and Liquidity levels [TDT]

279
🚀 Overview

The [ICT] Advance Orderblocks, FVG and Liquidity levels [TDT] Suite is a precision-focused toolkit designed for Smart Money Concepts (SMC) and ICT traders. Unlike standard Order Block indicators that spam the chart with weak pivots, this script employs a strict validation algorithm to identify high-probability institutional reference points.
It combines Market Structure, Displacement (FVG), and Liquidity Sweeps into a single, clean overlay, allowing you to focus on execution rather than analysis.

🧠 The Logic: Quality Over Quantity
This indicator does not simply mark every 3-candle fractal. It filters for Displacement.
Fractal Identification: The script first identifies a valid 3-bar Swing High or Swing Low.
Displacement Validation: An Order Block is ONLY painted if it is immediately followed by a Fair Value Gap (FVG).
No FVG? No Order Block.
This ensures momentum and institutional intent are present in the move.
Strict Marking: The script marks the exact Fractal Candle (the pivot) as the Order Block, providing precise entry zones.

Key Features
  1. High-Probability Order Blocks (OB)
    Validation: Requires an immediate FVG to form after the pivot to confirm the zone.
    Mitigation Tracking: Zones change style (dashed/dotted) when touched to indicate they are being tested.
    Auto-Cleanup: OBs disappear automatically after they are fully mitigated or "killed" based on your settings.
    Strong OBs: Zones turn darker and solid if they lead to a Break of Structure (BOS).
  2. Displacement Gaps (FVG)
    Visualizes the Imbalance: Automatically draws the FVG that validated the Order Block.
    Consequent Encroachment (CE): Optionally plots the 50% equilibrium level of the FVG.
    Smart Limits: The FVG count is strictly tied to your "Max OB" setting to prevent chart clutter.
  3. Liquidity Levels (BSL / SSL)
    Fractal-Based: Identifies Buy-Side (BSL) and Sell-Side (SSL) liquidity pools based on swing points.
    Sweep Detection: Detects when price runs (sweeps) a level. The line turns dashed to indicate the liquidity has been taken.
    Smart Clean-up: Lines remain visible for a set number of bars after a sweep, then delete automatically to keep the chart fresh.


⚙️ Settings Guide

🧱 Order Blocks: Detection
Max OBs (Per Side): Controls the buffer size. If set to 5, only the 5 most recent valid Bullish and Bearish OBs (and their corresponding FVGs) are shown.
Overlap Cleanup: If enabled, the script deletes older OBs if a new, fresher OB forms overlapping the old one.

♻️ Order Blocks: Mitigation
Mitigation Rule: Define when an OB is considered "Dead."
Entered: Any touch invalidates it.
Reached 50%: Price hits the Mean Threshold (CE).
Full Crossing: Price closes or wicks fully beyond the OB.
Delete Delay: How many bars to keep the "ghost" OB on the chart after it is mitigated (useful for spotting Breakers).

🌊 FVG Settings (Displacement)
Show FVG: Toggle the Fair Value Gap boxes on/off.
Show CE: Toggle the 50% line inside the FVG.
Colors/Style: Fully customizable colors for Unmitigated vs. Mitigated FVGs.

💧 Liquidity (BSL / SSL)
Fractal Length: Sensitivity. Higher numbers = Major external liquidity. Lower numbers = Internal structure.
Count: Maximum number of liquidity lines to display.

⚠️ Disclaimer
This tool is for educational purposes and market analysis only. It does not provide financial advice or guarantee profits. Trading involves significant risk.

Exención de responsabilidad

La información y las publicaciones no pretenden ser, ni constituyen, asesoramiento o recomendaciones financieras, de inversión, de trading o de otro tipo proporcionadas o respaldadas por TradingView. Más información en Condiciones de uso.