OPEN-SOURCE SCRIPT
BTCUSD Liquidity Pulse Divergence | Investing Crypto Strategy

Strategy type: Daily on-chain liquidity trend-follower (long-only)
What it does
The strategy goes long BTCUSD only when fresh capital and whale accumulation line up with price‐action strength:
Stable-coin Supply Shock
7-day % change in combined USDT + USDC market-cap
• Trade regime is ON when today’s change ranks above the chosen percentile of the last perc_len days (default 35 th).
Whale Wallet Momentum
Rate-of-change in the number of wallets holding ≥ 10 000 BTC
• Must be positive to confirm stealth buying.
Trend & Timing Filters
• Daily close > EMA(ema_len) ⟶ only trade with the dominant trend.
• Same-bar RSI(14) > rsi_gate and close > VWAP ⟶ avoid dead-cat moves.
Risk Engine
• Entry size = min(risk cap, volatility-weight) % of equity.
• Stop-loss = weekly ATR × atr_mult below entry.
• Flat immediately if stable-coin Z-score turns < 0 or whale ROC flips < 0.
All calculations are forward-safe: every higher-timeframe request uses lookahead_off.
Default inputs
Parameter Purpose Default
Stable-Δ percentile >` Supply-shock threshold 35
Percentile window Look-back (days) 100
Whale ROC length Accumulation window (days) 40
RSI gate Momentum confirm 50
Trend EMA length Macro filter (days) 100
Weekly-ATR stop × Stop distance 3.0
Back-test properties (shown in “Properties” tab)
Setting Value
Initial capital 10 000 USD
Order size 5 % of equity
Pyramiding 1
Commission 0.10 %
Slippage 5 ticks
Fill orders Bar magnifier ✔ · On bar close ✔ · Standard OHLC ✔
How to use
Add the script to any BTCUSD 1-day chart (spot or perpetual). Can work with ETH and other crypto correlated assets with BTC.
Leave the chart timeframe at D; the code pulls weekly data internally.
Adjust inputs only if you understand their effect (hover each slider for a tooltip).
Keep commission/slippage realistic and forward-test on a demo account before risking live funds.
Important notes
Uses only publicly available on-chain feeds (CRYPTOCAP:USDT, CRYPTOCAP:USDC, BTC_ADDRESSESBALANCE10KUSD).
No request.security() look-ahead, no repainting, no intrabar assumptions.
Long-only by design—no hedging in bear markets.
Historical performance never guarantees future returns. Market micro-structure changes or data outages can affect results.
Credits
Written from scratch with TradingView built-ins; no external code reused. Special thanks to the TradingView community for the on-chain data feeds.
Trade smart, manage risk, and let the liquidity tide guide you!
What it does
The strategy goes long BTCUSD only when fresh capital and whale accumulation line up with price‐action strength:
Stable-coin Supply Shock
7-day % change in combined USDT + USDC market-cap
• Trade regime is ON when today’s change ranks above the chosen percentile of the last perc_len days (default 35 th).
Whale Wallet Momentum
Rate-of-change in the number of wallets holding ≥ 10 000 BTC
• Must be positive to confirm stealth buying.
Trend & Timing Filters
• Daily close > EMA(ema_len) ⟶ only trade with the dominant trend.
• Same-bar RSI(14) > rsi_gate and close > VWAP ⟶ avoid dead-cat moves.
Risk Engine
• Entry size = min(risk cap, volatility-weight) % of equity.
• Stop-loss = weekly ATR × atr_mult below entry.
• Flat immediately if stable-coin Z-score turns < 0 or whale ROC flips < 0.
All calculations are forward-safe: every higher-timeframe request uses lookahead_off.
Default inputs
Parameter Purpose Default
Stable-Δ percentile >` Supply-shock threshold 35
Percentile window Look-back (days) 100
Whale ROC length Accumulation window (days) 40
RSI gate Momentum confirm 50
Trend EMA length Macro filter (days) 100
Weekly-ATR stop × Stop distance 3.0
Back-test properties (shown in “Properties” tab)
Setting Value
Initial capital 10 000 USD
Order size 5 % of equity
Pyramiding 1
Commission 0.10 %
Slippage 5 ticks
Fill orders Bar magnifier ✔ · On bar close ✔ · Standard OHLC ✔
How to use
Add the script to any BTCUSD 1-day chart (spot or perpetual). Can work with ETH and other crypto correlated assets with BTC.
Leave the chart timeframe at D; the code pulls weekly data internally.
Adjust inputs only if you understand their effect (hover each slider for a tooltip).
Keep commission/slippage realistic and forward-test on a demo account before risking live funds.
Important notes
Uses only publicly available on-chain feeds (CRYPTOCAP:USDT, CRYPTOCAP:USDC, BTC_ADDRESSESBALANCE10KUSD).
No request.security() look-ahead, no repainting, no intrabar assumptions.
Long-only by design—no hedging in bear markets.
Historical performance never guarantees future returns. Market micro-structure changes or data outages can affect results.
Credits
Written from scratch with TradingView built-ins; no external code reused. Special thanks to the TradingView community for the on-chain data feeds.
Trade smart, manage risk, and let the liquidity tide guide you!
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
🔻Website: hercules.money/
🔻Blog: hercules.money/blog/
🔻Telegram : t.me/hercules_trading
🔻Trader Psychology Profile – thelumenism.com/
🔻Blog: hercules.money/blog/
🔻Telegram : t.me/hercules_trading
🔻Trader Psychology Profile – thelumenism.com/
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
🔻Website: hercules.money/
🔻Blog: hercules.money/blog/
🔻Telegram : t.me/hercules_trading
🔻Trader Psychology Profile – thelumenism.com/
🔻Blog: hercules.money/blog/
🔻Telegram : t.me/hercules_trading
🔻Trader Psychology Profile – thelumenism.com/
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.