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 open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.