מעודכן
L1 Bitcoin Whale Pump Detector

Level: 1
Background
One of the biggest differences between cryptocurrency and traditional financial markets is that cryptocurrency is based on blockchain technology. Individual investors can discover the direction of the flow of large funds through on-chain transfers. These large funds are often referred to as Whale. Whale can have a significant impact on the price movements of cryptocurrencies, especially Bitcoin. Therefore, how to monitor Whale trends is of great significance both in terms of fundamentals and technical aspects.
Function
L1 Bitcoin Whale Pump Detector script This is a simple technical indicator that judges whether Whale is involved in the relationship between price increase and trading volume. Its purpose is not to accurately judge Whale behavior, but to provide a starting point for more Pine lovers to develop more advanced Whale monitoring programs.
Key Signal
*pumpcond1 use price information alone with 7% as a threshold
*pumpcond2 use both price and volume infomation.
Pros and Cons
Pros:
*1. Detect Whale pump in large time frame.
*2. Not a mature and accurate buy and sell script but provide alerts of Whale movements.
*3. When it resonante with Buy signal, it has higher confidence level.
Cons:
*1. Only detect Whale Pump, not Whale Dump is realized.
*2. Only provide large fund information, not an accurate trading signal generator.
Remarks
You can use this to confirm blockchain large fund transfer activities. E.g. Large amount of USDT flows into large exchanges.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
Background
One of the biggest differences between cryptocurrency and traditional financial markets is that cryptocurrency is based on blockchain technology. Individual investors can discover the direction of the flow of large funds through on-chain transfers. These large funds are often referred to as Whale. Whale can have a significant impact on the price movements of cryptocurrencies, especially Bitcoin. Therefore, how to monitor Whale trends is of great significance both in terms of fundamentals and technical aspects.
Function
L1 Bitcoin Whale Pump Detector script This is a simple technical indicator that judges whether Whale is involved in the relationship between price increase and trading volume. Its purpose is not to accurately judge Whale behavior, but to provide a starting point for more Pine lovers to develop more advanced Whale monitoring programs.
Key Signal
*pumpcond1 use price information alone with 7% as a threshold
*pumpcond2 use both price and volume infomation.
Pros and Cons
Pros:
*1. Detect Whale pump in large time frame.
*2. Not a mature and accurate buy and sell script but provide alerts of Whale movements.
*3. When it resonante with Buy signal, it has higher confidence level.
Cons:
*1. Only detect Whale Pump, not Whale Dump is realized.
*2. Only provide large fund information, not an accurate trading signal generator.
Remarks
You can use this to confirm blockchain large fund transfer activities. E.g. Large amount of USDT flows into large exchanges.
Readme
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Tradingview is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Tradingview community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or manhours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many of them to achieve private trading strategy.
הערות שחרור
OVERVIEWThis indicator detects potential bitcoin whale pump/dump activities using price/volume anomaly patterns combined with SMA-based support/resistance levels.
FEATURES
• Dual dynamic signals:
BUY LINE (lime): SMAs 32-period adjusted downward by 0.1%
SELL LINE (red): SMAs 20-period boosted upward by 8%
• 2-tier PUMP detection system:
Type 1: 7%+ daily price surge (>1.07 ratio)
Type 2: Moderated 4% gain with volume doubling
• Structural baselines via two key moving averages
HOW TO USE
Apply on BTC/USD perpetual chart
Monitor crossover events between:
Buy line below candle lows ("B" markers)
Sell line above candle highs ("S" markers)
Close label indicate close position ("C" markers)
Combine with PUMP alerts:
• Yellow "PUMP": Extreme volatility trigger
• Green "PUMP": Volume-confirmed accumulation
PARAMETERS EXPLAINED
• SMA parameters (20/32 periods) control signal sensitivity
• Threshold percentages (80/100) define buffer zones
• Pump thresholds (4%/2x vol) adjustable in source code
LIMITATIONS
❗ Relies heavily on Bitcoin's peculiar price action patterns
❗ False signals possible during low liquidity hours
❗ Historical performance ≠ future results guarantee
NOTES
• White line (60-period SMA): Short-term survival zone
• Yellow trendline (120-period SMA): Long-term market bias
• Optimal on 4h/ Daily timeframes for best pattern recognition
הערות שחרור
█ OVERVIEWThis open-source indicator detects unusual whale activity on Bitcoin by marking whale buy/sell zones and abnormal pump bars directly on the chart. Version 2 turns the classic detector into a complete trade-cycle tool with signal governance, trend-filtered entries, ATR-based risk levels, a status dashboard and a full alert system.
█ CONCEPTS
The script watches three independent layers of price behavior:
• Whale Bands — an average-price moving average is shifted up and down by configurable per-mille offsets, forming dynamic zones where price becomes stretched: the lower zone marks potential whale accumulation ("buy the dip"), the upper zone marks potential distribution ("sell the rip").
• Pump Detection — two event filters flag abnormal bullish bars: a strong single-bar percentage surge, and a volume-confirmed breakout body that may not qualify as a strong surge but shows unusual participation.
• Trend Context — a fast and a slow simple moving average (the "Survive Line" and "Bull/Bear Line") frame the longer-term regime so pump signals can be read against the prevailing trend.
█ HOW TO USE
1 — Apply the indicator to a BTC (or any crypto) chart; defaults reproduce the original detector behavior.
2 — Read the B / S labels against the yellow Bull/Bear Line: signals aligned with the trend line direction are historically more reliable.
3 — Enable alerts via the alert() dropdown: thirteen named conditions are available (Whale Buy, Whale Sell, Long Exit, Short Exit, Strong Pump, Volume Pump, Strong Dump, Volume Dump, Whale Buy Zone Touch, Whale Sell Zone Touch, Pump Entry, Take Profit Exit, Stop Loss Exit).
4 — Tune the Whale Bands offsets (per mille) to the volatility of the traded symbol; raise pump thresholds for high-volatility altcoins.
Input Parameters
• Sell Line SMA Length — averaging period of the upper whale band (default 20)
• Buy Line SMA Length — averaging period of the lower whale band (default 32)
• Sell Band Offset (per mille) — upward shift of the sell zone (default 80)
• Buy Band Offset (per mille) — downward shift of the buy zone (default 100)
• Strong Pump Min Change (%) — minimum bar-to-bar close change for a strong pump (default 7) — also drives Strong Dump detection
• Volume Pump Min Body (%) — minimum bullish body for a volume pump (default 4)
• Volume Pump Volume Mult (x) — required volume versus the previous bar (default 2)
• Survive Line Length / Bull/Bear Line Length — fast and slow trend averages (60 / 120)
• Same-bar Entry/Exit Exclusivity — prevents contradictory signals on one bar
• Cooldown Bars — minimum bars between entry signals (0 disables, default 3)
• Use Sell Signals as Short Entry — off by default; when on, "S" flips an open long instead of only exiting it
• Trend Filter Entries — zone entries require price on the trend side of the Bull/Bear Line (on by default)
• Use Strong Pump as Long Entry — optional momentum entry on strong pumps (off by default)
• ATR Length / Stop Loss (xATR) / Take Profit (xATR) — volatility-based protective levels (14 / 2.0 / 3.0)
• Visual switches — labels, zone-touch info marks, legacy character marks, whale lines, background tint, dashboard
█ FEATURES
• Position state machine — entries and exits are mutually exclusive and cooldown-governed, eliminating signal spam
• Trend filter — zone entries only fire in the direction of the Bull/Bear Line regime (switchable)
• Whale DUMP detection — bearish mirror of the pump engine: strong dump (DUMP!) and high-volume distribution (DUMP), thresholds shared with the pump inputs
• ATR-based take-profit and stop-loss levels drawn for every active position and, when enabled, triggering exits at bar close (XT/XSL)
• Rich labels with distinct colors, position background tint and a live dashboard (position, last signal, trend, ATR, TP/SL, cooldown)
• Thirteen alertcondition channels plus dynamic bar-close alert() messages including symbol and price
• Legacy character-marker mode preserved behind a switch for visual continuity with version 1
█ SIGNALS
• B (green label below bar) — whale buy zone touched with trend filter passed: price dipped into the lower whale band
• S (red label above bar) — whale sell zone touched: price spiked into the upper whale band; exits a long, or opens a short if enabled
• XL / XS (orange cross) — position exit by opposite zone touch
• BP (yellow label below bar) — pump-momentum entry: strong pump in an uptrend opens a long (optional, off by default)
• XT / XSL (teal/red cross) — take-profit / stop-loss exit triggered at bar close
• PUMP! (yellow triangle) — strong pump: bar change above the threshold with a bullish body
• PUMP (green triangle) — volume pump: bullish body with volume at least the multiplier times the previous bar
• DUMP! (magenta triangle down above bar) — strong dump: bearish body with a drop at least the strong-pump threshold
• DUMP (light-red triangle down above bar) — volume dump: bearish body with volume surge (whale distribution)
• B / S (muted small labels) - informational zone touches: the band was touched but no position action followed (state-gated)
█ IMPLEMENTATION NOTES
Open-source, written in Pine Script v6. The whale bands are built from
█ LIMITATIONS
• Zone-touch signals are mean-reversion by nature; in strong trends, "S" can mark a pause rather than a reversal — read against the Bull/Bear Line
• Pump filters need per-symbol tuning; fixed thresholds overfit to one volatility regime
• Short entries are disabled by default; the tool was designed for spot accumulation
• Recommended from the 1-hour timeframe upward; lower timeframes increase noise substantially
█ NOTES
• Based on the original "blackcat" L1 Bitcoin Whale Pump Detector; version 2 keeps the core algorithm untouched and adds governance, risk and alert layers
• Free to use and modify — attribution appreciated
════════════════════════════════════════════════════════════════════════
For questions or feedback, please use the comments section below.
Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq My new github for more pine development soon: github.com/wxt-coder
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq My new github for more pine development soon: github.com/wxt-coder
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.