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.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.