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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。