OPEN-SOURCE SCRIPT
업데이트됨

ICT Order Block Pro

7 454
Overview
The ICT Order Block Pro is a comprehensive, quantitative trading system designed to mechanically identify high-probability Order Blocks (OBs) based on strict Inner Circle Trader (ICT) concepts.

Unlike standard indicators that simply highlight large candles, this script acts as a "Narrative Engine." It demands that specific market conditions—such as liquidity sweeps, structural shifts, and session timing—are met before an Order Block is validated. Furthermore, it dynamically projects the Draw on Liquidity (DOL) to provide mechanical Take Profit targets.

Core Concepts & Educational Logic
For an Order Block to be considered high-probability in the ICT methodology, it must be the origin of a significant change in the state of delivery. This script validates setups based on the following sequence:

The Purge (Liquidity Sweep): The swing that forms the OB must first sweep a short-term liquidity pool (prior highs/lows). If an OB forms in the middle of a range without taking liquidity, it is ignored.

The Shift (MSS): The displacement away from the OB must aggressively break a recent structural pivot, confirming institutional sponsorship.

The Imbalance: The displacement must leave behind a Fair Value Gap (FVG).

PD Array Alignment: The script dynamically calculates the current dealing range (or utilizes HTF ranges) to ensure bullish setups only trigger in a Discount, and bearish setups only trigger in a Premium.

Key Features

1-2-3 Draw on Liquidity (DOL) Targeting: The script runs a background algorithm to map unmitigated Buy-Side (BSL) and Sell-Side (SSL) liquidity pools. When a valid OB forms, a dashed target line automatically projects toward the closest opposing liquidity pool.

Breaker Block Conversion: Order blocks are not simply deleted when mitigated. If price closes through an OB's Mean Threshold (50% mark), the script dynamically flips its polarity, converting it into a Breaker Block (+BRK / -BRK) for secondary entries.

Higher Timeframe (HTF) Nesting: The indicator continuously monitors your chosen HTF. If a Current Timeframe (CT) Order Block forms inside an active HTF Order Block of the same direction, it is marked with a star (★) to denote high confluence.

Algorithmic Macros & Kill Zones: Built-in session filters allow you to restrict OB detection strictly to the NY AM/PM Kill Zones or specific "Silver Bullet" algorithmic macro windows (e.g., 09:50–10:10 AM EST).

Strict Mean Threshold Invalidation: Instead of waiting for a full candle close outside the OB, the script invalidates or converts the block the moment a candle body closes past the 50% Mean Threshold.

How to Use This Indicator

Wait for the Setup: Look for a highlighted OB to appear during your active session.

Confirm the Target: Note the dashed Draw on Liquidity line projecting from the OB. This is your mechanical target.

Execution: Enter when price taps the OB box. Place your stop loss just outside the box (or at the Mean Threshold if using strict validation).

Breaker Scenarios: If your primary OB fails and converts into a Breaker Block, monitor for a return to the Breaker for a continuation trade in the opposite direction.

Customization (Engine Tuning)
Every market is fractal, and volatility differs across assets. You can fully tune the engine in the settings:

Adjust the lookback lengths for the Liquidity Sweeps and Market Structure Shifts (e.g., increase lengths for 1m scalping, decrease for 1H swing trading).

Toggle between Dynamic Fractal Dealing Ranges or static HTF ranges for Premium/Discount filtering.

Customize all visual elements, including Breaker colors, target lines, and macro background highlights.

Disclaimer: This script is designed for educational and analytical purposes only. It does not constitute financial advice. Always backtest mechanical systems thoroughly on your specific asset and timeframe before live trading.
릴리즈 노트
Release Notes: Version 2.0 - The Complete Array Hierarchy
Overview of Update
This major update completes the algorithmic ecosystem of the ICT OB Pro. The engine has been completely rebuilt to dynamically map, filter, and track the full spectrum of ICT Premium/Discount Arrays. The script no longer just identifies standard Order Blocks and Breakers; it now intelligently maps Mitigation, Rejection, Propulsion, and Vacuum blocks based on strict structural and mathematical rules.

1. Mitigation Blocks (MB) vs. Breaker Blocks (BRK)
A major misunderstanding in the community is the difference between a Breaker and a Mitigation block. The code now separates them automatically using structural memory:

Breaker Block (+BRK / -BRK): If an Order Block fails, the script looks back to see if the origin swing successfully swept a liquidity pool. If it did, it converts to a Breaker.

Mitigation Block (+MB / -MB): If the Order Block fails, but the origin swing formed a Lower High / Higher Low (failed to sweep liquidity), the script dynamically converts it to a Mitigation Block.

(Note: To allow Mitigation Blocks to form, ensure "Require Liquidity Sweep" is toggled OFF in the Narrative Settings).

2. Rejection Blocks (RB)
While standard blocks focus on candle bodies, Rejection Blocks focus on the wicks. The algorithm now scans for significant Swing Highs/Lows and calculates the exact ratio of the wick to the overall candle body.

The Logic: If a wick makes up the vast majority of a candle (default is 60%), the algorithm recognizes that liquidity was aggressively purged. It then highlights the space from the candle body to the wick tip as a Rejection Block.

Tuning: You can adjust the exact Wick-to-Candle Ratio in the settings to filter for more frequent wicks or only extreme, massive purges.

3. Propulsion Blocks (PB)
A Propulsion Block is an area of extreme algorithmic sensitivity where smart money double-stacks positions.

The Logic: The script’s overlap engine has been upgraded. Now, if a new Order Block forms directly inside a previously established Order Block (or an active Higher Timeframe OB), the script upgrades its classification to a Propulsion Block (+PB / -PB) and highlights it to signify a high-probability continuation zone.

4. Vacuum Blocks (VB)
Vacuum blocks represent literal gaps in price delivery where fair value was not offered to both sides of the market (e.g., weekend gaps, 6:00 PM EST open gaps, or heavy news spikes).

The Logic: To prevent the chart from clustering with microscopic 1-tick gaps during illiquid hours, the script uses an Average True Range (ATR) filter.

Tuning: By default, the script only draws a Vacuum Block if the empty gap space is at least 0.5x the size of the current ATR. This ensures only mathematically significant voids are targeted for rebalancing.

UI / UX Improvements

Added dedicated toggle switches and color controls for every individual block type in the settings menu, allowing you to completely customize your chart and isolate only the specific arrays you wish to trade.
릴리즈 노트
Updates:

1. Global Typography Engine
Instead of static, hardcoded text, the script now features a dynamic scaling engine.

Size Control: You can now globally scale all array labels from Tiny all the way to Huge. Alternatively, set it to Auto to let TradingView dynamically resize the text as you zoom in and out of price action.

Horizontal Alignment: You can now force all text to pin to the Left, Center, or Right side of the order blocks to prevent labels from obscuring live price delivery at the hard right edge of your chart.

2. Dynamic Vertical Alignment
By default, the script utilizes an intelligent "Dynamic" alignment (Bullish arrays print text on the bottom, Bearish arrays print text on the top) to keep labels out of the projected Draw on Liquidity path. You now have the option to override this and force all text to the Top, Center, or Bottom of the arrays to fit your exact visual preference.

3. Independent Array Color-Coding
In previous versions, a single master text color controlled all labels. Now, the settings menu has been unlocked to allow Independent Text Colors for every single array type in the hierarchy.

You can now color-code the text to match the background of the array.

Example: You can make standard Order Blocks (+OB) a muted, transparent grey so they don't distract you, while making highly sensitive Propulsion Blocks (+PB) feature bright, solid white text so you never miss a high-probability nested entry.

UI / UX Improvements

Reorganized the Settings menu to feature a dedicated [ICT] Global Text & Label Styling hub at the very top for immediate access.

Ensures text color formatting holds its memory even when an Order Block dynamically converts into a Breaker Block or Mitigation Block upon failure.
릴리즈 노트
Overview of Update
To build a true institutional trading model, you must know exactly where the algorithm is attempting to draw price. Version 2.2 completely overhauls the background 1-2-3 Market Structure Shift engine. The script no longer just draws basic, static lines; it now intelligently identifies and labels specific Buy-Side Liquidity (BSL) and Sell-Side Liquidity (SSL) pools, giving you a crystal-clear map of where the smart money targets reside.

1. BSL & SSL Target Engine
When a valid Market Structure Shift occurs, the script mathematically maps the origin of the swing to project upcoming algorithmic targets.

Buy-Side Liquidity (BSL): Mapped at established swing highs. The script automatically uses these pools as the primary targets for Bullish Order Block and Breaker setups.

Sell-Side Liquidity (SSL): Mapped at established swing lows. The script automatically uses these pools as the primary targets for Bearish setups.

Native Formatting: The script uses advanced Pine rendering to make the "BSL" and "SSL" text float cleanly at the exact edge of the current candle, mimicking TradingView's native UI formatting without clunky, obscuring background boxes.

2. Ghosting (Swept Liquidity History)
Previously, when a liquidity pool was hit by price, the line either vanished completely or remained as a hard, static barrier, creating a messy chart.

The Upgrade: Now, the exact moment a candle sweeps an active BSL or SSL level, the script drops the opacity of the line and text to 25%.

The Value: This "ghosts out" the level. It allows you to see the footprint of the liquidity purge (which is essential for spotting reversal setups), while visually signifying that the pool is no longer an active Draw on Liquidity.

UI / UX Improvements

Added a dedicated [ICT] DOL Targets (BSL / SSL) settings group.

Added independent color controls for BSL lines and SSL lines.

Added the ability to toggle the BSL/SSL text on or off completely for minimalist traders.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.