OPEN-SOURCE SCRIPT
Sleepy Whale Index (SWI) – Whale Dormancy (No Glassnode)

The Sleepy Whale Index (SWI) is a simple, real-time, on-chain-free gauge of Bitcoin whale dormancy — built 100 % with TradingView’s native data (no Glassnode, no API keys, no paid feeds).
It answers one question every BTC holder wants to know:
“Are the big whales still asleep… or are they starting to move?”
How the SWI Works (3 ingredients, equally weighted)
Volume Sleep Score – When daily volume is far below its 100-day average → whales are quiet → score rises
Volatility Sleep Score – 30-day price volatility near multi-month lows → sideways, boring market → score rises
Time-since-ATH Score – More than 6 months since the all-time high → whales have been sitting on coins for ages → score jumps
The three scores are averaged and rounded → final SWI value (0–200,000 range).
Interpretation (the higher = the sleepier)
Below 100,000 → Green background – Whales are active / market is lively
100,000 – 150,000 → Orange background – Moderate dormancy, caution zone
Above 150,000 → Red background – Extreme whale hibernation (historically strong buy-signal territory)
Features
Works only on BTC charts and daily/weekly/monthly timeframes (forces correct usage with big red warning)
Clean table in the top-right with current SWI value
Background coloring for instant visual context
Debug label on the last bar showing all components
Two built-in alerts:
• “SWI Changed” (any movement)
• “Whale Woke Up!” (SWI drops = potential selling pressure)
Perfect for swing traders, long-term holders, and anyone who wants a quick, no-nonsense “are the whales sleeping?” meter without paying for premium on-chain data.
It answers one question every BTC holder wants to know:
“Are the big whales still asleep… or are they starting to move?”
How the SWI Works (3 ingredients, equally weighted)
Volume Sleep Score – When daily volume is far below its 100-day average → whales are quiet → score rises
Volatility Sleep Score – 30-day price volatility near multi-month lows → sideways, boring market → score rises
Time-since-ATH Score – More than 6 months since the all-time high → whales have been sitting on coins for ages → score jumps
The three scores are averaged and rounded → final SWI value (0–200,000 range).
Interpretation (the higher = the sleepier)
Below 100,000 → Green background – Whales are active / market is lively
100,000 – 150,000 → Orange background – Moderate dormancy, caution zone
Above 150,000 → Red background – Extreme whale hibernation (historically strong buy-signal territory)
Features
Works only on BTC charts and daily/weekly/monthly timeframes (forces correct usage with big red warning)
Clean table in the top-right with current SWI value
Background coloring for instant visual context
Debug label on the last bar showing all components
Two built-in alerts:
• “SWI Changed” (any movement)
• “Whale Woke Up!” (SWI drops = potential selling pressure)
Perfect for swing traders, long-term holders, and anyone who wants a quick, no-nonsense “are the whales sleeping?” meter without paying for premium on-chain data.
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.
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.
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.