Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 25)

Open-source Pine scripts written for bitcoin and other crypto markets, which trade every day of the week.

Pine scripts1,372
Code shown here785open licence
Updated in a year696
No repaint flag1,164

Crypto: Indicators, Strategies and Libraries

Brrrrr Strategy

by hasnocool
106 stars

The Brrrrr Strategy is a macro-based breakout strategy designed for crypto markets. It 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

Strategy v5 TrendBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of Brrrrr Strategy

This trend-following scalping strategy combines a moving average trend filter with the Absolute Strength Histogram indicator. It opens long positions when price is above a selectable baseline moving average and the histogram signals bullish momentum, and short

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone Absolute Strength Histogram ATR
1 stars

This strategy plots four exponential moving averages on the price chart and compares their order. It treats a fully rising stack, shortest above the next three lengths, as bullish and the reverse order as bearish. It opens one long contract on the first bar th

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 4ema-rsi-probe-01-quad-ema-stack

BTC Hashrate ribbons

by hasnocool
106 stars

This strategy tracks Bitcoin network hashrate data from external sources like Quandl, Glassnode, or IntoTheBlock using short and long moving averages. It generates buy or sell signals when the short hashrate moving average crosses above or below the long movin

Strategy v5 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of BTC Hashrate ribbons
13 stars

This strategy plots on the price chart and enters from a moving-average filter, ADX and Gann colours. Price above a 200-period EMA allows only longs; price below allows only shorts. A Gann aqua colour with ADX above a key level opens a long, and a Gann brown c

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone ADX Gann
1 stars

PF Probe 4EMA-RSI Probe 02 RSI Pullback is a stateful momentum strategy that triggers trades based on Relative Strength Index dip-and-recovery patterns. It arms a persistent long variable when RSI drops below a pullback threshold and opens a long trade when RS

Strategy v6 Oscillators & momentumMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 4EMA-RSI-Probe-02-RSI-Pullback
106 stars

This strategy calculates the WaveTrend oscillator from HLC3 averages and its smoothed difference to generate long signals on BTC price charts. It enters positions when WT1 crosses above WT2 and stays below a limit value. Stop loss triggers at the recent bar lo

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of BTC WaveTrend R:R=1:1.5
13 stars

This Pine Script v5 strategy draws on the price chart and sends TradingView orders toward Zignaly. It uses a selectable moving average, defaulting to a 200-period EMA of close, together with an SSL calculation based on a 10-period SMA. The user can trade long

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard TradingZone SSL EMA

This strategy executes trades based on fast and slow exponential moving average crossovers constrained by a configurable intraday session window. Long positions open on bullish EMA crosses and short positions open on bearish EMA crosses when no existing positi

Strategy v6 Moving averagesSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 4ema-rsi-probe-03-binary-bar-window

BTC/USD - RSI

by hasnocool
106 stars

This strategy calculates the Relative Strength Index (RSI) to generate mean-reversion signals based on multi-tier overbought and oversold thresholds. When the RSI falls below the oversold levels without an active trade, it enters a long position; conversely, w

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of BTC/USD - RSI
13 stars

This strategy runs on the price chart to identify trade entries using volume sequences, specifically tracking consecutive declining volume candles followed by a volume surge at lower price levels. It provides webhook execution support for Zignaly copy trading

Strategy v5 VolumeVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder A002

PF Probe 50 - Stop Limit Trail

by pineforge-4pass
1 stars

PF Probe 50 - Stop Limit Trail is a synthetic validation strategy designed to test simultaneous exit conditions. It opens long positions at 08:15 and short positions at 16:15 when flat. Position exits utilize a single bracket exit command incorporating an ATR-

Strategy v6 Volatility & bandsSessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 50 - Stop Limit Trail
13 stars

Ruckard Voladder B002 is a price-chart strategy that opens long trades after three or more consecutive candles of falling volume, followed by a higher-volume candle, while price is lower across that span. The comments leave the long exit logic uncertain. By de

Strategy v5 Volume
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder B002
1 stars

This validation strategy tests TradingView trailing stop execution semantics using trail points and trail offset parameters without accompanying fixed stop or take-profit orders. It opens a long position at 09:15 and a short position at 15:15 when flat, tracki

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 51 - Trail Points Offset
13 stars

This price-chart strategy looks for a long volume pattern: three or more candles with falling volume, then a higher-volume candle, while price is lower from the start of that sequence to the end. Long strict mode is on by default and short strict mode is off.

Strategy v5 Volume
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder C002

PF probe 52 - stop entry cancel

by pineforge-4pass
1 stars

This strategy compares an 8-period EMA with a 21-period EMA on the price chart. When the fast average is above the slow average it places a long stop at the prior bar high and cancels the pending short; otherwise it places a short stop at the prior bar low and

Strategy v6 Moving averagesBreakout Repaints
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 52 - stop entry cancel
13 stars

This strategy identifies volume-based rebound signals on the price chart. It detects three or more consecutive lower volume candles followed by a higher volume candle, with price remaining lower from the start of the volume sequence, signaling potential long e

Strategy v5 VolumeBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder D002
7 stars

Session Dominance Profile [Pointalgo] is an overlay indicator that calculates a volume profile broken down by global trading sessions over a specified lookback period. It divides the historical high-low range into price bins and categorizes volume into Asian,

Indicator v5 VolumeSessions & time
Updated 3 months ago · None stated GitHub repository of Session Dominance Profile [Pointalgo]

Dominance Pie Chart

by regalouisei
2 stars

This indicator draws a pie chart of cryptocurrency market-cap dominance in a separate pane. It requests CRYPTOCAP close values for Bitcoin, Ethereum, several major altcoins, Tether, and the others bucket, then accumulates those shares into wedge angles. Precom

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Dominance Pie Chart
1 stars

PF probe 53 - stop touch boundary is a strategy that draws on the price chart. It checks for specific UTC hours (2:15 for long, 14:15 for short) and enters a long position when no position exists by placing a stop order one tick beyond the previous bar's high.

Strategy v6 Sessions & timeSupport & resistance
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 53 - stop touch boundary
114 stars

Volume Weighted Distance applies statistical and machine learning distance metrics between source prices and their rolling mean, weighted by volume, to identify local trend reversals. Users can select from Manhattan, Euclidean, Mahalanobis, Cosine Similarity,

Indicator v4 Oscillators & momentumVolume Repaints
Updated 1 year ago · None stated GitHub repository of Volume Weighted Distance
13 stars

This strategy looks for a long rebound after three or more candles of falling volume followed by a higher-volume candle, while price is lower across that span. It is written as a Zignaly-linked TradingView strategy and was noted for BTCUSDT on the one-hour cha

Strategy v5 Volume
Updated 1 year ago · None stated GitHub repository of Ruckard Voladder E007

PF probe 54 - MTF roll state

by pineforge-4pass
1 stars

This strategy detects roll states in multiple timeframes to generate trading signals on the price chart. It fetches close prices from 60m, 240m and daily bars using request.security. Long entries trigger on a 60m roll up with flat 240m state or on a daily high

Strategy v6 TrendBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 54 - MTF roll state
13 stars

Ruckard Walcrypto DoubleDonchian is a trend-following breakout strategy built on two Donchian Channels with an optional exponential moving average filter. Position entries trigger when price achieves a new high or low on the primary channel, provided the optio

Strategy v5 TrendBreakout
Updated 1 year ago · None stated GitHub repository of Ruckard Walcrypto DoubleDonchian
1 stars

This strategy is a validation probe that isolates an implicit reversal exit. When flat at 00:15 it enters one long unit. At 00:45 an opposite short entry of quantity one closes that long and opens a short. At 01:15 an opposite long entry reverses back to long.

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 55 - entry reversal implicit exit

This strategy executes breakout trades using two Donchian Channels alongside an optional 200-period EMA trend filter. Entries trigger when the price sets a new highest high or lowest low over the primary Donchian Channel period. Exits are managed via a shorter

Strategy v5 BreakoutTrend
Updated 1 year ago · None stated GitHub repository of Ruckard Walcrypto DoubleDonchian B002

Ehlers Loops [BigBeluga]

by regalouisei
2 stars

Ehlers Loops is a separate-pane indicator that tracks up to five symbols. It requests each symbol's prior close and volume, with low-pass and high-pass periods as the main filter settings. Enabled symbols are drawn with colored labels and lines, and label size

Indicator v5 VolumeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Ehlers Loops [BigBeluga]
1 stars

This strategy isolates trailing-stop exits that use trail points and a trail offset without a paired stop or limit. It enters one long unit at 09:15 and one short unit at 15:15 when flat, then arms a trailing exit for the open side. Trail points and trail offs

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 56 - trailing activation path
106 stars

This strategy executes high-pyramiding trades using a combination of dynamic support and resistance breakout channels, the Supertrend indicator, and an array of predefined price levels. It tracks recent 100-bar extremes to permit buys on breakouts and manages

Strategy v5 TrendSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Buy/Sell Test for More Freq
13 stars

This script provides a standardized Pine Script strategy framework for connecting TradingView alerts directly to the Zignaly automated trading platform. It structures webhook and email payload messages with exchange options, leverage, secret keys, and position

Strategy v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Ruckard Zignaly Template

Sergapi A005

by ruckard
13 stars

Sergapi A005 is a trend-following strategy designed for crypto pairs on intraday timeframes. It enters long positions when both ATR and EMA multi-timeframe conditions align bullishly, and enters short positions when both turn bearish. The strategy draws on the

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Sergapi A005
1 stars

This strategy tests repeated entries that reuse the same order id while the stop price changes, so only the latest pending stop stays active. On a 15-minute chart it places a one-contract long stop one tick above the high during the 02:00 window and a short st

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 58 - same id stop modify

Sergapi B002

by ruckard
13 stars

Sergapi B002 is a price-chart strategy that opens long trades when both an ATR signal and an EMA signal indicate buying, and short trades when both indicate selling. A strategy-type setting controls direction. Optional percentage or ATR stop losses, take profi

Strategy v5 Volatility & bandsMoving averages
Updated 1 year ago · None stated GitHub repository of Sergapi B002
2 stars

Everything Bitcoin [Kioseff Trading] is an overlay indicator that gathers on-chain Bitcoin network metrics and lower timeframe market data. It requests BCHAIN datasets via Quandl—including hash rate, mining difficulty, transaction volume, miner revenue, and wa

Indicator v5 Screeners & dashboardsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Everything Bitcoin [Kioseff Trading]

Sergapium A004

by ruckard
13 stars

This strategy generates long and short signals using high and low closing moving average channels combined with ATR trend filtering. It plots directly on the price chart alongside an optional moving average ribbon. Positions enter when directional criteria ali

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Sergapium A004

GBTC Tracker

by Allen1212
303 stars

GBTC Tracker visualizes historical buy and sell transactions executed by ARK Invest funds for the GBTC asset directly on the main price chart. It plots green upward labels for buy orders and red downward labels for sell orders at specific historical date times

Indicator v4
Updated 2 years ago · None stated GitHub repository of GBTC Tracker

Sergdi A002

by ruckard
13 stars

Sergdi A002 is a directional strategy designed for crypto trading. It generates long entry signals when the 4-hour DI+ crosses over the 4-hour DI-, and short entry signals on a cross under. It features configurable risk management options, including fixed perc

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi A002

BTC bar volume color

by eddiebelaval
7 stars

This overlay indicator collects Bitcoin spot volume from many named exchanges on the chart timeframe and adds those series after treating missing values as zero. It also begins gathering perpetual futures volume from several venues and sets a fixed length of 1

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of BTC bar volume color
106 stars

This Pine Script strategy uses the Commodity Channel Index (CCI) with a 20-period SMA to generate long-only signals. It plots the CCI line and dashed bands at 150 and -150 on the chart, filling the area between bands. Entries occur when CCI crosses above the l

Strategy v5 Oscillators & momentumSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of CCI High Performance Long Only

Sergdi B003

by ruckard
13 stars

Sergdi B003 is a trend-following strategy designed to capture directional momentum using higher-timeframe Directional Movement Index signals. It opens long positions when the 4-hour DI+ crosses over the 4-hour DI-, and short positions when DI+ crosses under DI

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi B003

Sergdi C003

by ruckard
13 stars

Sergdi C003 is a trading strategy that generates entry signals using directional movement index (DI+ and DI-) crossovers on a four-hour higher timeframe. It opens long positions on bullish DI crossovers and short positions on bearish crossovers. The script inc

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Sergdi C003
1 stars

This strategy rotates pending stop entries by the clock. Before noon it places a long stop one tick above the bar high and cancels the short order id; from noon it places a short stop one tick below the bar low and cancels the long order id. An open long is cl

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 63 - dual stop cancel rotation

Filtered Stoch

by hasnocool
106 stars

Filtered Stoch is a long-only strategy that combines a Stochastic RSI oscillator with a trend filter based on the highest EMA of price highs. A bullish trend state is identified when close prices trade above the EMA filter level. The strategy enters a long pos

Strategy v5 Oscillators & momentumTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Filtered Stoch

Sergdi D002

by ruckard
13 stars

This strategy detects trend reversals on the 4H timeframe using ADX crossover signals. Long entries occur when +DI crosses above -DI, and short entries when +DI crosses below -DI. Built-in risk management includes ATR-based stop loss, optional take profit, tra

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi D002

John Day Stop Loss

by hasnocool
106 stars

This long-only Pine v5 strategy plots RSI, Money Flow Index, Stochastic RSI, and a MACD calculation in a separate pane. Visible buy logic requires Money Flow below a maximum and a Stochastic RSI K-line cross above D while below the oversold band; the matching

Strategy v5 Oscillators & momentumVolume
Updated 2 years ago · GPL-3.0 GitHub repository of John Day Stop Loss

Sergdi E002

by ruckard
13 stars

Sergdi E002 is a directional trading strategy based on higher-timeframe Directional Movement Index crossovers. It enters long when the 4-hour DI+ crosses above DI- and short when DI+ crosses below DI-. The strategy features extensive risk management options in

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergdi E002

Sergio Squeeze C002

by ruckard
13 stars

Sergio Squeeze C002 is a Pine Script v5 strategy template designed to interact with Zignaly for automated trading. It relies on the SqueezeMomentum indicator to generate signals: it opens long positions when the indicator shows positive shine and short positio

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Sergio Squeeze C002
1 stars

This strategy tests whether a second strategy.exit call that reuses the same exit id replaces an existing bracket. At 08:15, when flat, it opens one long unit. While long, it submits a one-percent limit and stop, then immediately submits a tighter 0.3 percent

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 67 - same id exit replace

More Pine Script Categories

Browse the whole Pine Library

Third-party code. ForexR lists open-source Pine scripts from GitHub; it did not write, test or endorse them, and their summaries are generated automatically from each script's code and README. Indicators describe the past, and a strategy's backtest can look better than live trading. Check a script on a demo account before you rely on it. CFDs and leveraged forex are complex instruments with a high risk of losing money rapidly.

Learn to Use Pine Scripts

Free, plain-English guides: add a script to TradingView, read what it does, test it and avoid the common traps.

  1. 1Using this librarySearch, filters, licences and what the badges mean.
  2. 2Add a script to TradingViewCopy, paste into the Pine Editor, save and add to chart.
  3. 3Indicators, strategies and librariesWhat each type does and how to tell them apart.
  4. 4Spot a script that repaintsWhy some signals change after the bar closes.
  5. 5Backtest a strategyStrategy Tester settings that keep results honest.
  6. 6Send alerts to MT4 or MT5From a TradingView alert to an order in MetaTrader.
  7. 7What Pine Script isThe language, what it can and cannot do, and where to start.
  8. 8Write your first indicatorA complete script, line by line, in the Pine Editor.
  9. 9Read a script before you trust itA routine for checking inputs, logic and red flags.
  10. 10Edit a script safelyChange colours and lengths, add a filter or an alert.
  11. 11Pine Script alertsalertcondition(), alert(), placeholders and webhooks.
  12. 12Build a crossover strategyAn EMA cross strategy with an ATR stop, ready to test.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers