OPEN-SOURCE SCRIPT
Market Cipher Style Divergence Detector

Market Cipher B Divergence Indicator — Description
This indicator is a custom implementation inspired by Market Cipher B, focusing on detecting bullish and bearish divergences between price action and a composite oscillator.
Key Features:
Composite Oscillator: Combines WaveTrend, RSI, and Stochastic RSI to mimic Market Cipher B’s momentum oscillator.
Pivot Detection: Automatically identifies swing highs and lows in price to locate potential reversal points.
Divergence Signals:
Regular Bullish Divergence: Price forms lower lows while oscillator forms higher lows — indicating potential bullish reversal.
Hidden Bullish Divergence: Price forms higher lows while oscillator forms lower lows — signaling continuation of an uptrend.
Regular Bearish Divergence: Price forms higher highs while oscillator forms lower highs — signaling potential bearish reversal.
Hidden Bearish Divergence: Price forms lower highs while oscillator forms higher highs — indicating continuation of a downtrend.
Price Chart Alerts: Divergence signals are plotted directly on the price chart for easy visual identification.
Customizable Pivot Lookbacks: User inputs allow tuning sensitivity for pivot detection and signal frequency.
Oscillator Plot: The underlying oscillator is plotted for reference, providing insight into momentum strength.
Intended Use:
This tool is designed to help traders spot early trend reversals and continuations by identifying divergences, which are powerful signals often missed by simple momentum indicators alone.
Note:
As with any technical indicator, divergences should be confirmed with additional tools or price action analysis to reduce false signals.
This indicator is a custom implementation inspired by Market Cipher B, focusing on detecting bullish and bearish divergences between price action and a composite oscillator.
Key Features:
Composite Oscillator: Combines WaveTrend, RSI, and Stochastic RSI to mimic Market Cipher B’s momentum oscillator.
Pivot Detection: Automatically identifies swing highs and lows in price to locate potential reversal points.
Divergence Signals:
Regular Bullish Divergence: Price forms lower lows while oscillator forms higher lows — indicating potential bullish reversal.
Hidden Bullish Divergence: Price forms higher lows while oscillator forms lower lows — signaling continuation of an uptrend.
Regular Bearish Divergence: Price forms higher highs while oscillator forms lower highs — signaling potential bearish reversal.
Hidden Bearish Divergence: Price forms lower highs while oscillator forms higher highs — indicating continuation of a downtrend.
Price Chart Alerts: Divergence signals are plotted directly on the price chart for easy visual identification.
Customizable Pivot Lookbacks: User inputs allow tuning sensitivity for pivot detection and signal frequency.
Oscillator Plot: The underlying oscillator is plotted for reference, providing insight into momentum strength.
Intended Use:
This tool is designed to help traders spot early trend reversals and continuations by identifying divergences, which are powerful signals often missed by simple momentum indicators alone.
Note:
As with any technical indicator, divergences should be confirmed with additional tools or price action analysis to reduce false signals.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。