Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

BTC Profitable Wallets Strategy

A Pine Script v5 strategy with no technical-analysis calculation. It has 1 order rule, 1 entry among them, and trades long only with the default settings. Exits wait for a signal; there is no stop loss. Each trade commits 100 in cash and pays no commission. 4 settings; defaults include Blockchain BTC, % Threshold 50 and Smoothing SMA.

Generated from the script's code by a template: every clause is a fact read from the source. Not written by a person or a model, and not taken from the author's description.

Does BTC Profitable Wallets Strategy repaint?
No
No repainting patterns were found in the source. The live replay was not measured: it had no trades to compare.
How did BTC Profitable Wallets Strategy do on BTCUSDT 1D with default settings?
Not measured
It closed no trades there from 26 Jan 2024 to 21 Oct 2026 with the default settings, so there is no result to report. Its entry conditions never all held on this data. It closed no trades on the other markets either. A backtest, not investment advice.
Does BTC Profitable Wallets Strategy run in Pine Script v6?
No
The v6 version does not run in Zeal Terminal's engine: Pine Script v6 Error at @L19:C102: 'plot' has no 'transp' parameter in Pine Script v6. Use color.new(color, transparency) instead. The v6 version is shown for reference and is not offered as a download.
Does BTC Profitable Wallets Strategy use a stop loss?
No
Every exit waits for a signal; nothing limits a losing trade before it fires.
Does BTC Profitable Wallets Strategy run in Zeal Terminal?
Yes
It compiles in 13 ms and runs 1,000 bars in 23 ms, in the browser.

BTCUSDT · 1D · default settings

  • Winning trade
  • Losing trade
  • Equity
  • Buy and hold
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOct$100$203Equity from $100
Binance BTCUSDT 1D candles, 26 Jan 2024 to 21 Oct 2026, 1,000 bars, default settings. Triangles mark entries; circles mark exits. Lines are what the script plots. The live re-run is not offered here: the script requests INTOTHEBLOCK:BTC_INOUTMONEYINPERCENTAGE D, which this page cannot load in your browser.

Needs INTOTHEBLOCK:BTC_INOUTMONEYINPERCENTAGE D data, not available: not a Binance spot market Values that depend on it are empty on this chart.

Net profit
0.00%
$0.00
Buy and hold
+102.5%
same period
Closed trades
0
0 won · 0 lost
Profitable
0.0%
of closed trades
Profit factor
—
gross profit ÷ gross loss
Max drawdown
0.00%
$0.00

One run with the author's default settings, $100 starting capital, commission as the script sets it. A single backtest says little about future results and is not a recommendation. Backtests are simulations on historical data and are not investment advice.

Review

What a careful reader of this script would point out, found by checking the source and the backtest.

  • Check

    No stop loss

    Every exit waits for a signal. Nothing limits a losing trade before the exit condition fires.

  • Check

    No commission

    The backtest assumes free trading. Results on any real exchange will be lower.

  • Note

    No slippage

    Fills are assumed at the exact open price. Add slippage in the properties for a more realistic test.

Settings

Every input the script declares, with its default and what it feeds. Bounds are the ones the script enforces.

SettingDefaultType and rangeFeeds
Inputs
BlockchainBTCstring · options ["BTC", "ETH", "DOGE", "ADA", "MATIC", "SHIB", "UNI", "OKB", "LEO", "LINK", "LTC", "FTT", "CRO", "ALGO", "QNT", "BCH", "SAND", "MANA", "FXS", "AAVE", "CHZ", "HT", "LDO", "KCS", "AXS", "MKR", "ZEC", "GRT", "FTM", "SNX", "NEXO", "CRV", "BIT", "DASH", "BAT", "ENS"]Ticker
% Threshold50int · min 0 · max 100TresholdLine entry Long plot fill line 22
Smoothing Settings
SmoothingSMAstring · options ["SMA", "RMA", "EMA", "WMA"]line 11
MA Length1intProfitable wallets

What it calculates

No technical-analysis calculation: the script works on prices and settings directly.

Signal flow

How price data and settings reach the orders. Each box is a name in the script, or several computed the same way; each arrow is a value one of them reads. Hover a box for its members.

closecloseprice dataThreshold% Thresholdsetting · 50SmoothLengthMA Lengthsetting · 1WalletsWalletsvalueentry:LongOpen Longstrategy.entryplot:19Profitable walletsplotplot:20plotplotfill:21Fillfill

Order rules

OrderFires whenBy defaultLine
Open Long longta.crossover(Wallets, (Threshold/100))On23

Each order is guarded by the setting shown. “Off” orders never fire unless that setting is switched on.

Does it repaint?

No

No repainting patterns in the source.

Not measuredNo trades to compareThe last 300 bars, from 26 Dec 2025, were fed to the engine as live ticks, but neither the live nor the historical run produced any trades in them, so the replay says nothing either way.
  • ClearHigher-timeframe data1 request.security call(s), none with lookahead on.
  • ClearFuture-bar referencesNo negative history offsets such as close[-1].
  • ClearIntrabar recalculationNo varip, calc_on_every_tick or realtime-only state. Orders are decided once per closed bar.
  • ClearOrder timingOrders fill at the next bar's open, after the signal bar has closed.

The checks read the source; the replay runs it. Together they catch the common causes, not every possible one.

Other markets

Not run on other markets: the script requests INTOTHEBLOCK:BTC_INOUTMONEYINPERCENTAGE D, and that data is not available here (not a Binance spot market). Its results would rest on empty values.

Similar scripts

No other indicator or strategy here shares enough of its calculations.

Upgrade and export

Written in Pine Script v5. The clean-v5 step types the settings and moves when = into if blocks, which v6 requires; it is run before and after like any upgrade.

  • 1 setting uses the untyped input() (line 16). It still compiles in v6; input.int, input.float or input.source state the type.
  • No v6-only features. v6 is not needed to run this script.

Clean v5

Not verified

Neither version placed a trade on any of the 8 markets, so there was nothing to compare.

  • Line 16: input() → input.int()
⋯        => ta.wma(source, length)-SmoothLength = input(1, 'MA Length', group="Smoothing Settings")+SmoothLength = input.int(1, 'MA Length', group="Smoothing Settings")Ticker = "INTOTHEBLOCK:" + Source + "_INOUTMONEYINPERCENTAGE"⋯

Does it run in Pine Script v6?

No

The v6 version does not run in Zeal Terminal's engine: Pine Script v6 Error at @L19:C102: 'plot' has no 'transp' parameter in Pine Script v6. Use color.new(color, transparency) instead. The v6 version is shown for reference and is not offered as a download. It differs from the v5 version by 1 edit.

⋯// Since IntoTheBlock only provides daily onchain data, this chart might look chunky on lower timeframes, even with smoothing.-//@version=5+//@version=6strategy("BTC % profitable wallets", overlay=false, default_qty_type = strategy.cash, default_qty_value = 100, initial_capital = 100, pyramiding=100)⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 13 msYes 1,000 bars in 23 msNot measured
PineTSNot testedNot testedNot measured

“Matches TradingView” needs this script's own output exported from TradingView and compared bar by bar, which has not been done for this script. The engine is built on OpenPineScript, whose conformance results are in its conformance report.

Source

Copied verbatim from the author's published script, with its licence header intact. The author may have updated the original since this snapshot.

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © Powerscooter// Since IntoTheBlock only provides daily onchain data, this chart might look chunky on lower timeframes, even with smoothing.//@version=5strategy("BTC % profitable wallets", overlay=false, default_qty_type = strategy.cash, default_qty_value = 100, initial_capital = 100, pyramiding=100)Source = input.string(title="Blockchain", defval="BTC", options=["BTC", "ETH", "DOGE", "ADA", "MATIC", "SHIB", "UNI", "OKB", "LEO", "LINK", "LTC", "FTT", "CRO", "ALGO", "QNT", "BCH", "SAND", "MANA", "FXS", "AAVE", "CHZ", "HT", "LDO", "KCS", "AXS", "MKR", "ZEC", "GRT", "FTM", "SNX", "NEXO", "CRV", "BIT", "DASH", "BAT", "ENS"], group="Inputs")Threshold = input.int(50, "% Threshold", minval = 0, maxval = 100)smoothing = input.string(title="Smoothing", defval="SMA", options=["SMA", "RMA", "EMA", "WMA"], group="Smoothing Settings")ma_function(source, length) =>    switch smoothing        "RMA" => ta.rma(source, length)        "SMA" => ta.sma(source, length)        "EMA" => ta.ema(source, length)        => ta.wma(source, length)SmoothLength = input(1, 'MA Length', group="Smoothing Settings")Ticker = "INTOTHEBLOCK:" + Source + "_INOUTMONEYINPERCENTAGE"Wallets = request.security(Ticker, "D", close)ProfitWallets = plot(100*ma_function(Wallets, SmoothLength), "Profitable wallets", color=color.white, transp = 50)TresholdLine = plot(Threshold, transp=100, editable=false, display=display.none) //We need this invisible line for the fill command, as it doesn't accept variables of type int.fill(ProfitWallets, TresholdLine, Wallets > (Threshold/100) ? color.new(color.green, 90) : color.new(color.red, 90))if ta.crossover(Wallets, (Threshold/100))    strategy.entry("Long", strategy.long)