OPEN-SOURCE SCRIPT
ICT Liquidity & OTE Engine - Real Time

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.
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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.