OPEN-SOURCE SCRIPT
HTF CISD Detector 2.7

HTF CISD Detector — Pine Script v6
Detects Change in State of Delivery (CISD) signals using ICT / Smart Money Concepts methodology on a higher timeframe (HTF) auto-selected based on your current chart resolution.
How it works:
The indicator monitors the HTF automatically (M5 → H1, H1 → H4, H4 → D1, etc.) for Order Blocks (OB): the last bullish candle before a bearish move, or the last bearish candle before a bullish move. A CISD is confirmed when a candle closes strictly beyond the OB open on the lower timeframe chart, signaling a potential Change in State of Delivery.
Features:
Auto HTF selection — no manual timeframe input needed
Draws horizontal price lines at the CISD level with label (e.g. "CISD H1")
Plots SL/TP boxes using swing-based Stop Loss detection and configurable Risk:Reward ratio
Auto-removes boxes when SL or TP is hit
Supports up to N simultaneous CISDs (configurable)
Optional: show only first active CISD per direction
Optional: minimum OB candle size filter
Optional: candle body size label on confirmation bar
Full color, transparency, line width, and box width customization
Settings:
Show/hide bullish and bearish CISDs independently
SL lookback and swing strength (pivot length min/max)
RR ratio for TP calculation
Box width in candles (adjusts in real time)
Auto-remove on SL/TP hit
Methodology:
Based on ICT Inner Circle Trader concepts. Best used on NQ/ES futures, Forex, and Crypto during active sessions. Combine with liquidity sweeps and session bias for higher-probability entries.
Detects Change in State of Delivery (CISD) signals using ICT / Smart Money Concepts methodology on a higher timeframe (HTF) auto-selected based on your current chart resolution.
How it works:
The indicator monitors the HTF automatically (M5 → H1, H1 → H4, H4 → D1, etc.) for Order Blocks (OB): the last bullish candle before a bearish move, or the last bearish candle before a bullish move. A CISD is confirmed when a candle closes strictly beyond the OB open on the lower timeframe chart, signaling a potential Change in State of Delivery.
Features:
Auto HTF selection — no manual timeframe input needed
Draws horizontal price lines at the CISD level with label (e.g. "CISD H1")
Plots SL/TP boxes using swing-based Stop Loss detection and configurable Risk:Reward ratio
Auto-removes boxes when SL or TP is hit
Supports up to N simultaneous CISDs (configurable)
Optional: show only first active CISD per direction
Optional: minimum OB candle size filter
Optional: candle body size label on confirmation bar
Full color, transparency, line width, and box width customization
Settings:
Show/hide bullish and bearish CISDs independently
SL lookback and swing strength (pivot length min/max)
RR ratio for TP calculation
Box width in candles (adjusts in real time)
Auto-remove on SL/TP hit
Methodology:
Based on ICT Inner Circle Trader concepts. Best used on NQ/ES futures, Forex, and Crypto during active sessions. Combine with liquidity sweeps and session bias for higher-probability entries.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
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.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
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.