OPEN-SOURCE SCRIPT
Cerfinits CVD Footprints

Core Concept
The strategy trades based on Cumulative Volume Delta (CVD) divergence — detecting when buying/selling pressure (measured by volume delta) diverges abnormally from price movement, which signals potential reversals or continuations.
How It Works
1. CVD Calculation
Tracks the net difference between buy volume and sell volume, accumulated over time (CVD).
Supports two data sources: legacy intraday data (lower-timeframe requests) or TradingView Footprint data (requires premium plan).
2. Oscillator
Both price and CVD are smoothed with a Moving Average (EMA by default), then z-score normalized so they're on the same scale.
The oscillator = normalized CVD MA − normalized Price MA — positive means volume pressure is outpacing price, negative means the opposite.
Optionally volume-weighted to amplify signals on high-volume bars.
3. Spike Detection
A spike is flagged when the oscillator deviates more than N standard deviations (default 2.5) from its recent mean.
An Adaptive Threshold option scales that multiplier up/down based on current ATR regime (ranging vs. trending market).
4. Multi-Timeframe (MTF) Confluence
Uses two higher timeframes (default 1H and 4H) to compute an OBV-vs-price divergence score.
Entry is only allowed when both HTFs agree with the trade direction.
Come hang out with us on Discord. Ask questions, share ideas, and meet the community.
https://discord.gg/n7Cvu2xt
The strategy trades based on Cumulative Volume Delta (CVD) divergence — detecting when buying/selling pressure (measured by volume delta) diverges abnormally from price movement, which signals potential reversals or continuations.
How It Works
1. CVD Calculation
Tracks the net difference between buy volume and sell volume, accumulated over time (CVD).
Supports two data sources: legacy intraday data (lower-timeframe requests) or TradingView Footprint data (requires premium plan).
2. Oscillator
Both price and CVD are smoothed with a Moving Average (EMA by default), then z-score normalized so they're on the same scale.
The oscillator = normalized CVD MA − normalized Price MA — positive means volume pressure is outpacing price, negative means the opposite.
Optionally volume-weighted to amplify signals on high-volume bars.
3. Spike Detection
A spike is flagged when the oscillator deviates more than N standard deviations (default 2.5) from its recent mean.
An Adaptive Threshold option scales that multiplier up/down based on current ATR regime (ranging vs. trending market).
4. Multi-Timeframe (MTF) Confluence
Uses two higher timeframes (default 1H and 4H) to compute an OBV-vs-price divergence score.
Entry is only allowed when both HTFs agree with the trade direction.
Come hang out with us on Discord. Ask questions, share ideas, and meet the community.
https://discord.gg/n7Cvu2xt
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.