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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.