PROTECTED SOURCE SCRIPT

ICT PDA

148
Description
This indicator provides a comprehensive, all-in-one suite for identifying Institutional Price Delivery Arrays (PDAs) across multiple timeframes. Designed for traders utilizing Smart Money Concepts (SMC) or ICT methodologies, it aggregates Fair Value Gaps (FVG), Order Blocks (OB), and Rejection Blocks (RB) into a single, highly customizable tool.

The primary goal of this script is to declutter the chart while providing high-timeframe context on lower-timeframe execution charts. It features dynamic filtering, specialized visual modes for Order Blocks, and precise "Optimal Trade Entry" (OTE) calculations.

Key Features & Methodology
1. Fair Value Gaps (FVG)

Detection: Identifies 3-candle sequences where the wicks of the first and third candles do not overlap, creating a liquidity imbalance (gap).

OTE Mode: Includes an option to visualize only the "Optimal Trade Entry" portion of the gap (50% to 79%), reducing visual noise and highlighting the premium/discount areas of the zone.

Visuals: The box is drawn starting from the origin candle (2 bars back) to help visualize the structure that created the gap.

2. Order Blocks (OB)

Detection: Identifies the last bearish candle before a bullish structure break (Bullish OB) or the last bullish candle before a bearish structure break (Bearish OB).

Visual Customization: A unique "Box Basis" setting allows you to choose how the OB is drawn visually without affecting the underlying invalidation logic:

Body Only: Highlights the strongest volume area.

Whole Candle: Shows the full range (High to Low).

Candle Open: Collapses the zone to a single line at the opening price.

OTE Zone Body: Highlights the 50-79% retracement level inside the candle body.

Open Marker: An optional "Mark OB Open" feature draws a dashed line extending from the OB's opening price, a key level for precision entries.

Invalidation: Regardless of the visual style selected, the script strictly invalidates the Order Block if the price closes beyond the High (for Bearish OB) or Low (for Bullish OB) of the original candle.

3. Rejection Blocks (RB)

Detection: Highlights the wicks of swing highs (Bearish RB) and swing lows (Bullish RB). These areas represent liquidity voids where price often reverses after "sweeping" the level.

Invalidation: Invalidated immediately if price trades beyond the wick extremity.

Timeframe Modes
The indicator features two distinct operation modes:

Multi-Timeframe Mode: Allows you to select specific fixed timeframes (e.g., 1H, 4H) to overlay on your current chart. This is ideal for top-down analysis, letting you see 4H Order Blocks while trading on a 5m chart.

Current Timeframe Mode: Detects PDAs only on the chart you are currently viewing. It includes a "Minimum Timeframe" filter (in minutes), preventing the script from drawing zones on noise timeframes (e.g., 1m) if you wish to keep them clean.

Settings Guide
Zone Display Mode: Use the "OTE Only" checkboxes next to each PDA type to hide the full zone and only show the 0.5 - 0.79 retracement area.

OB Box Basis: Changes the visual representation of the Order Block box.

Max Zones: Limits the number of active zones per timeframe to manage chart cleanliness and memory performance.

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.