1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
23 lines of Pine Script v5 from Brrrrr strategy.pine, published under GPL-3.0. Keep the author's credit and licence lines when you reuse it.
Brrrrr strategy.pine
//@version=5
strategy(title = "Brrrrr strategy", shorttitle = "Brrrrr", overlay = false, default_qty_type = strategy.percent_of_equity, initial_capital = 100, default_qty_value = 100, commission_type = strategy.commission.percent, commission_value = 0.1)
//Settings
short = input(true, title = "Use short")
len = input.int(50, minval = 1, maxval = 1000)
//BRRRRR (USDT Printing)
brrrrr = request.security("GLASSNODE:USDT_SUPPLY", "D", close)
//Donchian channel
h = ta.highest(brrrrr, len)
l = ta.lowest(brrrrr, len)
//Lines
plot(h, color = color.lime)
plot(brrrrr)
plot(l, color = color.red)
//Trading
if brrrrr > h[1]
strategy.entry("Long", strategy.long)
if brrrrr < l[1]
if short
strategy.entry("Short", strategy.short)
if short == false
strategy.close_all()
Expand (28 lines)
Overview
Brrrrr Strategy tracks the Glassnode total USDT supply daily metric and calculates a Donchian Channel over a user-defined lookback period. The strategy enters a long position when the USDT supply breaks above its multi-day high, signaling expanding stablecoin liquidity. It enters a short position or exits all trades when the USDT supply drops below its multi-day low. The script plots the supply metric and channel lines in a separate pane and operates without an explicit stop loss.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Use short
bool
true
short
len
int
50
len
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This strategy combines the ATR-banded Q-Trend indicator with the Klinger Volume Oscillator (KVO) to execute confluence trades. It enters long when a Q-Trend buy trigger aligns with a positive KVO value and a bullish candle confirmation, taking short trades und
This strategy plots a comparative relative strength line against a benchmark symbol in a separate pane. It calculates price and volume simple moving averages alongside a multi-period highest high. Long trades enter using full equity when price exceeds its movi
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses
This strategy identifies long gap-and-go breakout opportunities on intraday US stock charts. It filters equities across three sequential stages: verifying fundamental criteria (minimum three-year average ROCE and market capitalization via financial data reques
BTC MACD Basic Tests implements a Pine Script unit-testing framework designed to validate components of a long-only Bitcoin MACD trading system. It constructs structured test cases to evaluate mock functions for MACD crossover calculations, volume threshold ch
This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr