Strategy · Pine Script v5 · Own pane

Brrrrr Strategy

by hasnocool

The Brrrrr Strategy is a macro-based breakout strategy designed for crypto markets.

View on GitHub

GitHub stars106on the repository
Pine versionv5runs as is
Lines of code23
Settings2inputs
LicenceGPL-3.0
Last update2 years ago18 Sep 2024

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

hasnocool on GitHub

Type

Strategy, Pine Script v5

Draws

Separate pane below the chart

Category

Trend, Breakout, Volume

Markets

Crypto

Timeframes

Any timeframe

Risk Notes

  • The strategy enters trades without a stop loss

Topics

analysisbtcusdtcryptocurrencydatapandaspythonsimulationtradingtradingview

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Use shortbooltrueshort
lenint50len
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.

Similar Pine Scripts

Q-Trend + KVO Strategy

by TradersPost
218 stars

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

Strategy v6 TrendVolume
Updated 3 months ago · None stated GitHub repository of Q-Trend + KVO Strategy
23 stars

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

Strategy v6 TrendVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of TradingAlpha Point-Clip Strategy
6 stars

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

Strategy v5 TrendBreakout
Updated 3 months ago · MIT GitHub repository of Quality Trend-Join-Long (gap-and-go)

BTC MACD Basic Tests

by iamrichardD
57 stars

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

Strategy v6 Oscillators & momentumTrend
Updated 1 year ago · Apache-2.0 GitHub repository of BTC MACD Basic Tests

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

Strategy v6 BreakoutTrend
Updated today · AGPL-3.0 GitHub repository of Forven S01509 - Simple Donchian 20/10 Breakout

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers