OPEN-SOURCE SCRIPT

Leviatan CVD - Aggression and Divergence

111

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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。