CVD Divergence Detector
Dec 26, 2025

The CVD Divergence Detector tool identifies discrepancies between price action and Cumulative Volume Delta (CVD) to highlight potential market reversals based on order flow.
Usage
The script detects two primary types of divergences to signal potential trend shifts:
- Bearish Divergence: Occurs when price reaches a higher high while the CVD fails to do so, suggesting a lack of buying pressure to support the upward move.
- Bullish Divergence: Occurs when price reaches a lower low while the CVD fails to do so, suggesting that selling pressure is exhausting.
The tool provides two distinct detection modes:
- Confirmed Divergences: These are high-accuracy signals based on fully confirmed pivot points. They appear as solid red or green lines with "Bear" or "Bull" labels.
- Early Warning Mode: These signals fire significantly earlier than confirmed ones by using shorter lookback periods. They are displayed as dashed lines with "Early" warning labels, useful for scalpers or early entries.
Users can apply various strategies such as scaling into positions when an early warning appears and adding to the position upon a confirmed signal, or strictly trading confirmed signals for higher-probability swing setups.
Details
Unlike traditional divergence indicators that rely on lagged oscillators like RSI or MACD, this script utilizes real-time Cumulative Volume Delta. By analyzing the volume delta across different timeframes, the indicator reveals the underlying buying and selling pressure that may not be immediately visible through price action alone. The script includes logic to filter out noise, such as minimum bar spacing between signals and a minimum CVD strength percentage requirement to ensure only significant divergences are highlighted.
Settings
Delta Source
- Anchor Timeframe: The higher timeframe used for CVD aggregation (e.g., 1D for day trading).
- Custom Lower TF: Allows the use of a specific lower timeframe for more granular delta calculation.
Pivot Logic
- Pivot Left/Right: The number of bars required to the left and right to confirm a pivot point.
- Delta Tolerance: A small threshold to account for minor fluctuations in delta values.
- Enable Early Warning: Toggles the visibility of fast, unconfirmed signals.
- Early Warning Right Bars: Sets the confirmation window for early signals.
- Min Bars Between Divergences: A filter to prevent signal clustering and spam.
- Min CVD Difference %: Filters out weak divergences by requiring a minimum percentage difference in delta values.
Visual
- Show Divergence Lines/Labels: Toggles the visibility of chart elements.
- Colors: Customizable colors for bullish, bearish, and early warning signals.
- Label Size: Adjusts the size of the text labels on the chart.
FAQ
How can I access the CVD Divergence Detector? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Why are there no signals appearing on my chart? Ensure that your current symbol provides volume data, as CVD requires volume to function. Additionally, try lowering the "Min CVD Difference %" or the "Pivot Right" settings if the current market conditions are low-volatility.
What timeframe is best for this indicator? While it works on all timeframes, the 15-minute chart is often recommended for day trading to balance signal frequency and accuracy. For scalping, lower timeframes with "Early Warning" enabled are preferred.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

