OPEN-SOURCE SCRIPT
Updated Open Interest + Continuation/Discontinuation Patterns

📈 Open Interest + Continuation/Discontinuation Patterns
This indicator analyzes Open Interest data to detect four key convergence/divergence patterns that signal potential trend continuation or reversal:
Buyer Continuation
Seller Continuation
Buyer Discontinuation
Seller Discontinuation
Each pattern is identified by comparing price action with Open Interest behavior, using pivot-based logic and ATR filtering for precision. When a valid pattern is detected, the indicator draws visual lines on the chart and triggers custom alert conditions for each type, enabling timely decision-making.
The Open Interest data is plotted as a candle-style oscillator, offering a clear view of momentum shifts. The detection logic is fully configurable, allowing users to adjust pivot sensitivity, lookback ranges, and ATR filters to suit different market conditions.
Key features:
🔍 Detects continuation and discontinuation patterns via convergence/divergence logic
🔔 Alerts for all four pattern types
🕯️ Candle-style visualization of Open Interest
⚙️ ATR-based filtering and pivot customization
Perfect for traders seeking to enhance their market timing using Open Interest dynamics and divergence-based signals.
This indicator analyzes Open Interest data to detect four key convergence/divergence patterns that signal potential trend continuation or reversal:
Buyer Continuation
Seller Continuation
Buyer Discontinuation
Seller Discontinuation
Each pattern is identified by comparing price action with Open Interest behavior, using pivot-based logic and ATR filtering for precision. When a valid pattern is detected, the indicator draws visual lines on the chart and triggers custom alert conditions for each type, enabling timely decision-making.
The Open Interest data is plotted as a candle-style oscillator, offering a clear view of momentum shifts. The detection logic is fully configurable, allowing users to adjust pivot sensitivity, lookback ranges, and ATR filters to suit different market conditions.
Key features:
🔍 Detects continuation and discontinuation patterns via convergence/divergence logic
🔔 Alerts for all four pattern types
🕯️ Candle-style visualization of Open Interest
⚙️ ATR-based filtering and pivot customization
Perfect for traders seeking to enhance their market timing using Open Interest dynamics and divergence-based signals.
Release Notes
V2Open-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.