OPEN-SOURCE SCRIPT
Whale Accumulation Index | Astral Vision

Whale Accumulation Index | Astral Vision 🌠💠
This indicator tracks the proportion of Bitcoin's total on-chain transaction volume attributable to large transactions, using CoinMetrics data to separate whale-scale activity from retail-scale activity, then applies two different analytical lenses to that ratio to identify when large holders are accumulating or distributing at statistically unusual rates.
Calculation ⚙️
The base input is the ratio of large transaction volume to total transaction volume in USD, both fetched from CoinMetrics on a daily timeframe. Large transaction volume measures the aggregate USD value of all on-chain transactions above a defined size threshold, while total transaction volume covers all on-chain activity. Dividing the two produces a ratio between 0 and 1 that measures what fraction of all Bitcoin moved on-chain each day was moved by large participants. A rising ratio means whale activity is growing as a share of total network flow; a falling ratio means retail activity is proportionally dominant. This ratio is smoothed with a configurable SMA before all subsequent calculations.
The indicator offers two modes that address different analytical questions.
Z-Score mode normalizes the smoothed ratio against its own rolling mean and standard deviation over a configurable lookback window. The formula is: Z = (ratio - mean(ratio, N)) / stdev(ratio, N). This produces a reading that measures how statistically unusual the current whale dominance level is relative to its own history. A positive Z-Score means whale share of volume is elevated above its historical norm; a negative Z-Score means it is depressed. The thresholds mark the statistically extreme zones where readings have historically been rare.
Conviction mode computes a divergence signal between whale momentum and price momentum. For each series, the rate of change over a configurable lookback is computed as (current - past) / abs(past), producing a proportional momentum measure. Both the price ROC and the whale ratio ROC are then independently Z-Score normalized, and the conviction signal is the difference: whale Z-Score minus price Z-Score. A positive conviction reading means whale activity is accelerating faster than price, historically associated with accumulation ahead of price moves. A negative reading means price is running ahead of whale activity, historically associated with distribution or weak institutional participation in the current price move.
Plots 📊
Inputs 🎛️
Colors 🎨
5 Astral Vision presets + custom override. Default: Inferno.
Purpose 🎯
Standard volume indicators measure total on-chain or exchange volume without distinguishing between the size of individual transactions, treating a single $100 million transfer the same as ten thousand $10,000 transfers in aggregate volume terms. This indicator isolates the large-transaction component specifically, making it possible to detect when whale-scale capital is disproportionately active on-chain relative to its historical baseline. The Conviction mode adds a second dimension by measuring whether whale activity is leading or lagging price, separating periods where large holders are front-running price moves from periods where they are simply responding to them.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions.
This indicator tracks the proportion of Bitcoin's total on-chain transaction volume attributable to large transactions, using CoinMetrics data to separate whale-scale activity from retail-scale activity, then applies two different analytical lenses to that ratio to identify when large holders are accumulating or distributing at statistically unusual rates.
Calculation ⚙️
The base input is the ratio of large transaction volume to total transaction volume in USD, both fetched from CoinMetrics on a daily timeframe. Large transaction volume measures the aggregate USD value of all on-chain transactions above a defined size threshold, while total transaction volume covers all on-chain activity. Dividing the two produces a ratio between 0 and 1 that measures what fraction of all Bitcoin moved on-chain each day was moved by large participants. A rising ratio means whale activity is growing as a share of total network flow; a falling ratio means retail activity is proportionally dominant. This ratio is smoothed with a configurable SMA before all subsequent calculations.
The indicator offers two modes that address different analytical questions.
Z-Score mode normalizes the smoothed ratio against its own rolling mean and standard deviation over a configurable lookback window. The formula is: Z = (ratio - mean(ratio, N)) / stdev(ratio, N). This produces a reading that measures how statistically unusual the current whale dominance level is relative to its own history. A positive Z-Score means whale share of volume is elevated above its historical norm; a negative Z-Score means it is depressed. The thresholds mark the statistically extreme zones where readings have historically been rare.
Conviction mode computes a divergence signal between whale momentum and price momentum. For each series, the rate of change over a configurable lookback is computed as (current - past) / abs(past), producing a proportional momentum measure. Both the price ROC and the whale ratio ROC are then independently Z-Score normalized, and the conviction signal is the difference: whale Z-Score minus price Z-Score. A positive conviction reading means whale activity is accelerating faster than price, historically associated with accumulation ahead of price moves. A negative reading means price is running ahead of whale activity, historically associated with distribution or weak institutional participation in the current price move.
Plots 📊
- Main oscillator in Z-Score or Conviction mode, colored by threshold zone
- Overbought and oversold threshold lines
- Fill highlight when oscillator enters either extreme zone
- Background color on the price chart when oscillator is in extreme zones
Inputs 🎛️
- Mode: Z-Score or Conviction
- OB Threshold Z-Score and Conviction: configurable upper extreme levels per mode
- OS Threshold Z-Score and Conviction: configurable lower extreme levels per mode
- Z-Score Window: normalization lookback for both modes
- Smoothing: SMA period applied to the raw whale ratio before calculations
- Conviction ROC Length: lookback for the rate of change in Conviction mode
Colors 🎨
5 Astral Vision presets + custom override. Default: Inferno.
Purpose 🎯
Standard volume indicators measure total on-chain or exchange volume without distinguishing between the size of individual transactions, treating a single $100 million transfer the same as ten thousand $10,000 transfers in aggregate volume terms. This indicator isolates the large-transaction component specifically, making it possible to detect when whale-scale capital is disproportionately active on-chain relative to its historical baseline. The Conviction mode adds a second dimension by measuring whether whale activity is leading or lagging price, separating periods where large holders are front-running price moves from periods where they are simply responding to them.
Disclaimer ⭕️
This indicator is for informational and educational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always do your own research before making investment decisions.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
My premium indicators are available on Whop:
whop.com/astralvision
Astral Vision 🌠💠
whop.com/astralvision
Astral Vision 🌠💠
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.