INVITE-ONLY SCRIPT

CISD & OB [BLAZ]

34
Version 1.0 – Published October 2025: Initial release

1. Overview & Purpose

The CISD & OB indicator identifies and plots Order Blocks (OB) and Changes in State of Delivery (CISD) on price charts using a strict rule-based approach designed to highlight structural turning points and continuation zones in price action. It automatically detects these formations when price creates confirmed swing highs or lows, followed by opposing directional moves that break predefined structural levels.

Detection logic is consistently applied across all market conditions, allowing the indicator to identify areas where notable price reactions or liquidity shifts have occurred. These levels are plotted as horizontal lines on the chart and are updated in real time to reflect the latest structural developments, helping traders visualise potential reversal or continuation zones.

The methodology used in this indicator represents the author's specific approach to Order Block and CISD identification, incorporating custom criteria for swing validation and confirmation logic that differ from standard implementations. Detection operates entirely mechanically, without discretionary intervention, to ensure consistency and objectivity across use cases. This indicator functions on all standard timeframes and supports multiple asset classes, including Forex, Stocks, Cryptocurrencies, Futures, and Commodities.

The indicator is unique in its ability to apply detection logic to a custom timeframe, enabling multi-timeframe structural analysis without switching charts. Let’s begin by explaining key terminologies based on the author’s perception to aid in understanding the functionality of the indicator.

2. Order Block (OB)

An Order Block is identified when price creates a swing high or swing low followed by a directional move that closes beyond the open of the opposing candle(s) structure.

2.1. For bearish Order Blocks:
  • Price must form a confirmed swing high (higher than surrounding candles).
  • A subsequent bearish candle must close below the open of the bullish candle(s) that created the swing high.

2.2. For bullish Order Blocks:
  • Price must form a confirmed swing low (lower than surrounding candles).
  • A subsequent bullish candle must close above the open of the bearish candle(s) that created the swing low.

The indicator only validates Order Blocks where the structural formation meets minimum swing criteria and the confirming move demonstrates sufficient momentum beyond the identified level.

3. Change in State of Delivery (CISD)

A CISD occurs when a valid Order Block forms in the opposite direction to the previously confirmed Order Block, indicating a potential shift in market structure.

3.1. Formation criteria:
  • A bullish CISD forms when a valid bullish Order Block is detected after the most recent confirmed structure was a bearish Order Block.
  • A bearish CISD forms when a valid bearish Order Block is detected after the most recent confirmed structure was a bullish Order Block.
  • Each CISD represents the first opposing Order Block in a sequence, distinguishing it from continuation Order Blocks that follow in the same direction.

The indicator tracks the sequence of Order Block formations to automatically classify each new structure as either a CISD (directional change) or continuation Order Block based on the preceding confirmed structure.

4. Detection Logic & Visual Management

The indicator continuously scans price action in real time, validating only those patterns that meet predefined technical thresholds. Once a structure is confirmed, it is plotted as a horizontal line extending from the origin candle’s open to the confirming close.

To maintain chart clarity, the script integrates automatic display management, limiting the number of plotted lines according to user-defined settings. Independent styling options are available for bullish and bearish structures, including colour, width, and line thickness. CISD and OB structures are styled separately to provide a clear distinction between reversal and continuation events.

Developing structures appear as dotted potential horizontal lines until they are validated, at which point they transition to solid lines. The indicator also allows users to restrict visibility of plotted lines above a selected timeframe, ensuring that higher timeframe charts remain clean and readable.

If configuration settings conflict, such as incompatible timeframe or visibility filters, the indicator displays on-chart warning messages to guide users in adjusting their setup appropriately.

The indicator supports multi-timeframe plotting capability, allowing structures identified on higher timeframes to be visualised directly on the active lower timeframe chart. This feature allows traders to observe how market structures align across multiple timeframes, providing greater confirmation of overall trend direction, reinforcing analytical confidence through cross‑timeframe confluence, and ensuring short‑term decisions remain aligned with the prevailing market context.

Traders can configure alerts to receive notifications when new CISD or OB structures are confirmed. Alerts are fully customisable via the indicator input settings and can be defined by direction (bullish/bearish) and pattern type (OB or CISD).

5. Usage Instructions

5.1. Alert Setup:
  • Enable "Set Alert?" toggle in indicator settings.
  • Configure alert preferences for specific pattern types.
  • On the chart, click the three dots menu beside the indicator's name or press Alt + A.
  • Select "Add Alert" and click “Create” to activate the alert.
  • Alerts trigger when new patterns are confirmed.

5.2. Display Controls:
  • Use "Bullish Lines" and "Bearish Lines" toggles to show/hide patterns by direction.
  • Adjust line quantity settings (1-25) to control how many patterns display simultaneously.
  • Enable “Timeframe” to apply detection logic to a higher timeframe of choice, displaying CISD and OB patterns directly on the active chart.

5.3. Visibility Filter:
  • Use “Show below” to limit indicator visibility to specific timeframes. When enabled, the indicator hides automatically on any timeframe equal to or higher than the selected setting.

5.4. Appearance Customisation:
  • Toggle “CISD” or “OB” on/off to show or hide individual pattern types.
  • Modify colours and line widths independently for bullish and bearish structures.
  • The “Show potential line” option displays developing patterns as dotted horizontal lines until confirmed.

5.5. Warning Message:
  • Enable “Show warning messages” to display on‑chart guidance for conflicting or invalid configurations.
  • Choose the preferred message box position and colour styling for readability.


6. Protected Logic & Original Design

This indicator has been developed from the ground up using proprietary algorithms and a custom structural classification logic derived from original research into Order Block and CISD identification methods. The internal mechanics, including real-time pre-confirmation logic, multi-timeframe adaptation, directional classification sequencing, and automated display management, are not based on any publicly available script or third-party resource.

7. Disclaimer

This indicator is provided for educational and analytical purposes only. It does not constitute financial advice, investment recommendations, or trading signals. All trading and investment decisions remain solely the responsibility of the user.

Trading financial instruments involves substantial risk of loss. Past performance of any trading methodology or indicator does not guarantee future results. Users should conduct their own research and consider consulting with qualified financial professionals before making trading decisions.

The indicator's pattern detection is based on technical analysis principles and should be used as part of a comprehensive trading approach. No trading tool can guarantee profitable outcomes or eliminate market risk.

By using this indicator, users acknowledge they understand these risks and accept full responsibility for their trading decisions and outcomes.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.