OPEN-SOURCE SCRIPT
Leviatan CVD - Aggression and Divergence

Technical Description and Methodology:
The Leviatã CVD (Cumulative Volume Delta) is an institutional-grade tool designed to track market aggression (Market Orders) by estimating the delta within each price bar. Since standard data feeds often lack tick-by-tick delta, this script uses an Intrabar Pressure Proxy based on the following mathematical logic:
1. Delta Calculation: It calculates the relative position of the Close within the High-Low range to estimate the balance of power.
Formula: ((Close - Low) - (High - Close)) / (High - Low) * Volume
2. Cumulative Accumulation: The delta is accumulated throughout the session. The user can choose to reset the values at the start of each daily session (ta.change(time("D"))).
3. Signal Line: A 21-period Simple Moving Average (SMA) is applied to the CVD to identify momentum shifts.
4. Divergence Engine: The script automatically detects "Hidden Whales" by finding divergences between Price and CVD:
*. Bullish Div: Price makes a lower low while CVD makes a higher low (Aggressive Buying).
*. Bearish Div: Price makes a higher high while CVD makes a lower high (Aggressive Selling).
How to use:
*. Green Columns: Buying Aggression.
*. Red Columns: Selling Aggression.
*. Optimized for Pine Script v6.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
🔱 LeviatanSignals® — automação de fluxo institucional (SMC) para Binance e MEXC Futures. Vídeos, app e mais: leviatansignals.com.br/
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
🔱 LeviatanSignals® — automação de fluxo institucional (SMC) para Binance e MEXC Futures. Vídeos, app e mais: leviatansignals.com.br/
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。