OPEN-SOURCE SCRIPT

ICT Pro par chris Analytix creer GS

804
Overview
This is a comprehensive technical indicator for TradingView, coded in Pine Script v6, which implements many concepts from the Inner Circle Trader (ICT) methodology. Its purpose is to identify key liquidity zones, structural changes, price imbalances, and potential reversals on the chart, all presented in a visual style inspired by "Mikeys."

Main Features
The indicator is modular, and each component can be enabled/disabled via the input parameters:

1. Market Structure (BOS / CHoCH / Liquidity)
Break of Structure (BOS): Detects breakouts of swings (highs/lows) in the direction of the current trend.

Displays a thin horizontal line in red (for a bearish BOS) or green (for a bullish BOS) at the broken swing, labeled "bos."

Change of Character (CHoCH): Identifies the first breakouts (BOS) that contradict the previous trend, signaling a possible reversal. The display is similar to the BOS but with a "CHoCH" label.

Liquidity (Buyside/Sellside):

Places thin horizontal lines (cyan/red) at recent highs (Buy-Side Liquidity) and lows (Sell-Side Liquidity).

These lines dynamically extend to the right and are automatically removed when the price reaches them ("sweep").

Inducement (IDm): Draws diagonal gray dotted lines between two intermediate swings, with a small "IDm" label, to visualize these potential "decoy" zones.

2. ICT Macros
Displays colored boxes on the chart to delineate Kill Zones and well-known ICT Macros (London Open, NY AM/PM, Silver Bullet, etc.).

The time frame is configurable via a time zone to suit your market.

The Silver Bullet function (windows of 03:00, 10:00, 14:00) can be displayed separately.

3. Imbalances (Order Blocks, FVG, BPR, IFVG)
Order Blocks (OB): Identifies the last candles before a strong directional move (impulse). They are represented by colored boxes (green for bullish, red for bearish) with a dotted center line representing the 50% level.

Fair Value Gaps (FVG): Detects price gaps between three consecutive candles. They are displayed as transparent boxes (green/red) with an "FVG" label.

Balanced Price Range (BPR): Creates a confluence zone when a bullish Fair Value Gap (FVG) and a bearish FVG overlap.

Inverse Fair Value Gap (IFVG): An advanced function that converts a "mitigated" FVG into a potential reversal zone, displayed with an inverted color (orange/blue).

4. RSI Divergences
Calculates an RSI and detects classic bullish and bearish divergences (higher/lower prices not confirmed by the RSI).

Divergences are indicated by dashed lines and a "DIV" label.

5. Traps (Liquidity Grabs)
Identifies "sweeps," i.e., candlesticks that break a recent high or low and then close in the opposite direction, which is interpreted as a liquidity grab.

A "SWEEP" label and a dotted line connect the sweep to the candle's high/low.

6. Dashboard and Confluence Scores
Dashboard: A customizable table (positionable in the four corners) displays the real-time status of each component (Active/Inactive) for the LONG and SHORT directions.

Confluence Scores: A scoring system (out of 5) is calculated for each direction based on active signals (Macro, FVG, Trap, Divergence, EMA Bias).

Signal Labels: When the score for a direction reaches 3 or higher, a "LONG [X/5]" or "SHORT [X/5]" label appears on the chart to signal a potential opportunity.

7. Alerts
The indicator incorporates numerous alert conditions to notify you of key events (BOS, CHoCH, Long/Short Signals, Sweeps, Divergences, Macro Windows).

Code Philosophy
The code is structured modularly, with distinct blocks for each ICT concept. It uses data types (OBData, FVGData, etc.) to manage the drawn objects (lines, boxes, labels) and allow for their dynamic updating (expansion, deletion). The color palette is defined at the beginning of the script for easy customization.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.