OPEN-SOURCE SCRIPT

ICT Liquidity & OTE Engine - Real Time

313
ICT 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.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.