OPEN-SOURCE SCRIPT

CVD & Big Trade Detector By HK

119
Overview The CVD & Big Trade Detector By HK offers a unique perspective on Cumulative Volume Delta (CVD). This indicator utilizes Floating Bars (Candles) to visualize the cumulative buying and selling pressure. This design allows you to clearly see the net delta of each specific candle relative to the cumulative trend.

Additionally, it integrates the "Big Trade" algorithm to highlight statistically significant volume anomalies (Whale activity) directly on the CVD bars.

How it Works Since standard volume data does not always provide buy/sell splitting, this script estimates intrabar pressure using price action logic:

Buying Pressure: Calculated based on the push from the Low to the Close.

Selling Pressure: Calculated based on the push from the High to the Close.

The indicator then calculates the Delta (Buy Vol - Sell Vol) and accumulates it.

Floating Bars: Instead of plotting from the zero-line, each bar opens at the previous CVD value and closes at the new cumulative value.

Teal/Green Bar: Net buying in the current period (CVD increased).

Maroon/Red Bar: Net selling in the current period (CVD decreased).

Key Features

Floating CVD Structure: Prevents the "barcode effect" common in histogram CVDs. It provides a clean, candle-like view of momentum accumulation.

Whale Detection:

The script calculates the moving average and standard deviation (Sigma) of the buying/selling volume.

Green Dots: Appear when buying volume exceeds the statistical threshold (Signifying a "Big Buy").

Red Dots: Appear when selling volume exceeds the statistical threshold (Signifying a "Big Sell").

Precise Positioning: Whale markers are plotted exactly at the closing value of the CVD bar, showing you exactly where the volume spike impacted the delta.

How to Use

Divergences: Look for situations where Price makes a Higher High, but the CVD Bars fail to make a new high (bearish divergence).

Absorption: If you see a Large Whale Dot on a very small CVD bar (doji-like), it indicates massive volume fighting for direction with little net result—often a sign of absorption or a pending reversal.

Trend Confirmation: Strong floating bars in the direction of the trend, accompanied by Whale Dots, confirm smart money participation.

Settings

Lookback Period: Defines the baseline for the statistical volume calculation (default: 50).

Sensitivity (Sigma): Adjusts how strict the "Whale" detection is (default: 3.0). Higher values = fewer, more significant signals.

Colors: Fully customizable colors for Up/Down bars and Buy/Sell markers.

Built with Pine Script™ v6

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.