Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 2)

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

6 stars

This indicator aggregates buy and sell signals from four technical tools: Exponential Moving Averages, Bollinger Bands, Fisher Transform, and MACD. It evaluates specific price conditions and crossovers to classify market states into Strong Buy, Weak Buy, Stron

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of 4 Indicator Signal Strategy
5 stars

This strategy calculates Bollinger Bands and monitors band width relative to a historical moving average to identify low-volatility squeeze regimes. It draws upper, lower, and basis bands directly on the price chart while shading squeeze periods in yellow. A l

Strategy v5 Volatility & bandsBreakout
Updated yesterday · MIT GitHub repository of Bridge 04 - Bollinger Squeeze

Breakout AVAAI BITGET

by tarasprystavskyj
5 stars

Breakout AVAAI BITGET is a cryptocurrency breakout strategy that identifies entry points using price channels alongside ATR, MACD, ADX, and volume trend filters. Long and short entries trigger when price breaches Donchian-style highest highs or lowest lows und

Strategy v6 BreakoutTrend
Updated 3 months ago · None stated GitHub repository of Breakout AVAAI BITGET

I2.0 SM Radar

by CedInvest
5 stars

I2.0 SM Radar plots Smart Money Concepts zones on the price chart for crypto. It marks bullish and bearish Order Blocks, Fair Value Gaps with age-based fading, liquidity zones at equal highs and lows, and previous day week month highs and lows. It also detects

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · Custom licence GitHub repository of I2.0 SM Radar
5 stars

This indicator overlays external Bitcoin signal markers on the price chart. At a user-set minute poll interval it is meant to draw up or down triangles for buy and sell decisions and a label with the decision, strength and confidence. In the published code tho

Indicator v4
Updated 1 year ago · MIT GitHub repository of BTC市场监控系统信号
5 stars

Greeffer's Scalping Indicator overlays higher-timeframe exponential moving averages, Bollinger Bands, and Donchian channels on the price chart. It flags a long when price touches the lower Donchian and lower band while the faster averages are not stacked beari

Indicator v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of Greeffer's Scalping Indicator

This strategy plots five simple moving averages on the price chart and trades crosses of a 150-period signal average. It enters long when the close crosses above that average and enters short when the close crosses below it, from a user-set start year onward.

Strategy v4 Moving averagesTrend
Updated 6 years ago · LGPL-3.0 GitHub repository of 150MA Cross BuyAndSell Strategy [d3nv3r]

BTC Breakout Short Selling with Hedge is a strategy designed to trade downside breakouts. It identifies market lows over a specified lookback period to trigger short entries. Upon entry, it calculates dynamic stop loss and take profit levels based on Average T

Strategy v4 BreakoutVolatility & bands
Updated 9 days ago · GPL-3.0 GitHub repository of BTC Breakout Short Selling with Hedge
4 stars

Christian Qullamaggie Strategy is a trend-following and breakout strategy overlay designed to identify high-momentum trading opportunities directly on the price chart. It evaluates market conditions using fast, mid, and slow EMAs, average true range (ATR), and

Strategy v6 BreakoutTrend
Updated 7 months ago · None stated GitHub repository of Christian Qullamaggie Strategy

VAMO Crossover Strategy

by TPTBusiness
4 stars

The VAMO Crossover Strategy is a scalping system that combines momentum and volatility into a Volatility-Adjusted Momentum Oscillator (VAMO). It calculates momentum using Rate of Change divided by ATR and generates trade signals when VAMO crosses its EMA signa

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 months ago · MIT GitHub repository of VAMO Crossover Strategy

Trix Strategy V2

by CryptoRobotFr
4 stars

This strategy trades trend continuations using a triple moving average oscillator (TRIX) and a long-term moving average baseline. It opens long positions when price is above the long moving average and the TRIX histogram crosses above zero, and opens short pos

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Trix Strategy V2
4 stars

This strategy executes trend-following trades based on Bollinger Band breakouts confirmed by a long-term moving average filter. A long position opens when the price crosses above the upper Bollinger Band, provided the band spread meets a minimum threshold and

Strategy v5 Volatility & bandsTrend
Updated 2 years ago · None stated GitHub repository of Bollinger Trend - Strategy V1
4 stars

This strategy plots custom upper and lower bands on the price chart using configurable moving average types and deviation multipliers. It opens long or short positions when price crosses above or below these envelopes, with optional RSI oscillator filters for

Strategy v5 Volatility & bandsMoving averages
Updated 4 years ago · MIT GitHub repository of Bollinger Bands Strategy

ESR-Bot (beta)

by Main-Michael-Sparks
4 stars

ESR-Bot is a Pine v4 strategy that plots in a separate pane. It combines a smoothed RSI, with adjustable overbought and oversold ranges, and two exponential moving averages. A long or short signal fires when RSI sits inside the matching range while a recent EM

Strategy v4 Oscillators & momentumMoving averages
Updated 4 years ago · MPL-2.0 GitHub repository of ESR-Bot (beta)

Bigbaldy RSI for DCA

by bigbaldy1128
4 stars

This strategy simulates Dollar Cost Averaging (DCA) trading bot behavior on the chart. It triggers an initial entry when the RSI drops below a specified oversold limit and price is under a maximum price cap. As price falls, it calculates simulated safety order

Strategy v4 Oscillators & momentumMean reversion
Updated 5 years ago · None stated GitHub repository of Bigbaldy RSI for DCA
3 stars

This strategy implements a daily Bitcoin trend-following system combining exponential moving averages (EMA 25, 52, and 144) with daily and 4-hour MACD indicators. It triggers long and short positions based on EMA alignments, zero-line momentum segments, and hi

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of BTC 1D MACD 回测对比
3 stars

This indicator measures the percentage change of the close over a configurable lookback and compares it with a breakout threshold. It marks upward and downward momentum regimes with a faint background tint on the price chart, plots a translucent close line, an

Indicator v5 Oscillators & momentumBreakout
Updated 6 months ago · None stated GitHub repository of Polymarket Overlay (trader-ai)

CryptoSwarmStrategy

by aegntic
3 stars

CryptoSwarmStrategy is a chart overlay strategy that enters long when a fast EMA crosses above a slow EMA, RSI is below the oversold level, and volume exceeds its 20-bar average. It enters short on the opposite EMA cross with RSI above overbought and the same

Strategy v5 Moving averagesOscillators & momentum
Updated 6 months ago · MIT GitHub repository of CryptoSwarmStrategy

GainzAlgo EA

by saadkhan371
3 stars

GainzAlgo EA is a trend-following strategy designed for scalping and intraday trading, optimized for gold and liquid assets. It establishes trend direction using a three-EMA alignment alongside RSI momentum filters and an optional higher-timeframe trend confir

Strategy v5 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of GainzAlgo EA

DP2

by grinay
3 stars

DP2 is a price-chart strategy that looks for a short dump between the chosen from and to prices, optionally requiring a break of a multi-day low while ignoring moves larger than a dump cap. It can enter through classic, two-close, break-and-retest, ATR-stop, a

Strategy v6 Mean reversionVolatility & bands
Updated 8 months ago · MIT GitHub repository of DP2
3 stars

%R Trend Exhaustion is a momentum and trend exhaustion indicator based on dual-period Williams %R calculations. It combines a standard fast %R with a slow-period %R to identify extended trends and subsequent exhaustion breaks around overbought and oversold thr

Indicator v6 Oscillators & momentumTrend Repaints
Updated 12 months ago · None stated GitHub repository of %R Trend Exhaustion [upslidedown]

Crypto Bull Market Strategy

by EngineeredSuccess
3 stars

Crypto Bull Market Strategy is a long-term Bitcoin cycle indicator overlaying price targets and trend phase tracking on the price chart. It calculates a 50-week simple moving average to evaluate long-term market trends and monitors progress toward user-defined

Indicator v6 TrendMoving averages
Updated 1 year ago · Custom licence GitHub repository of Crypto Bull Market Strategy
3 stars

This indicator plots a fast and a slow exponential moving average on the price chart and marks buy and sell signals for Bitcoin scalping. A buy appears when the fast EMA crosses above the slow EMA, RSI is above its buy threshold, the MACD line is above its sig

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · MIT GitHub repository of BTC 1–5 min Scalping Signals

This strategy combines volume surge detection, Fibonacci retracements, moving averages, and ATR volatility for trade execution. Long positions trigger when price exceeds the 0.618 Fibonacci level, price stays above a 200-period SMA, a fast EMA crosses above a

Strategy v5 TrendMoving averages
Updated 1 year ago · MIT GitHub repository of Optimized Volume + Fibonacci + Trend + ATR Strategy
3 stars

This strategy template overlays a demonstration system of Parabolic SAR, regression channels, and Supertrend on the price chart while packaging TV-Hub webhook commands. It generates buy, sell, and close alert messages for selected crypto exchanges. Inputs set

Strategy v5 TrendSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of TV-Hub Boilerplate / Template Strategy

SG Market Cipher B

by jeffAquinn
3 stars

SG Market Cipher B is an oscillator indicator plotted in a separate pane that combines WaveTrend and RSI calculations to identify momentum and potential trend reversals. It generates visual signal dots (buy, sell, gold, and divergence dots) based on overbought

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of SG Market Cipher B

EMA Crossover

by mr-s8
3 stars

This strategy plots a fast and a slow exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and short when it crosses below. Each entry sets a percentage take profit and stop loss from the close of t

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-2.0 GitHub repository of EMA Crossover

Bitcoin Market Capitalization

by datacrypto-analytics
3 stars

This indicator plots Bitcoin market capitalization from the Quandl BCHAIN/MKTCP series in a separate pane. It draws the series as an area whose color shifts with the capitalization level. An optional six-period simple moving average can be shown as a line over

Indicator v5
Updated 3 years ago · Apache-2.0 GitHub repository of Bitcoin Market Capitalization

Altcoin Correlation

by vishnugovind10
3 stars

This indicator plots rolling correlations between the chart symbol’s close and six crypto series in a separate pane. It requests 15-minute closes for an altcoin perpetual, Ethereum, Ripple, Litecoin, Cardano, and Tezos, then calculates each correlation over a

Indicator v4
Updated 3 years ago · None stated GitHub repository of Altcoin Correlation
3 stars

This strategy calculates 50-period and 200-period exponential moving averages alongside a standard Moving Average Convergence Divergence (MACD) oscillator. It plots the moving averages and the MACD histogram directly on the price chart. The strategy opens a lo

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of 5min Scalping EMA50, EMA200, MACD

Btc Version5pine

by WMW333
3 stars

This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh

Strategy v5 VolumeVolatility & bands
Updated 4 years ago · None stated GitHub repository of Btc Version5pine

This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor

Strategy v5 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Bolinger Band Hedge Strategy

MomGulfing

by rasimandiran
3 stars

MomGulfing is a momentum strategy that identifies trade setups using multi-bar engulfing candlestick patterns paired with volume confirmation. It triggers long or short entries when price breaks key candle bounds across one to three bars while volume expands.

Strategy v5 Candlestick patternsOscillators & momentum
Updated 4 years ago · MIT GitHub repository of MomGulfing

Bulk Notification

by bit4you-io
3 stars

Calculates price direction for the current asset alongside 60-minute directional changes for BCH and LTC using multi-symbol requests. Combines these conditions with a 24-bar percentage price change threshold to produce bullish or bearish consensus signals. Set

Indicator v4 TrendOscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of Bulk Notification

BTC MA Accumulation v1

by yalili8521
2 stars

BTC MA Accumulation v1 is a scalping strategy designed primarily for 1-minute Bitcoin charts. It identifies trend continuation by requiring a triple moving average stack alongside steady price accumulation or distribution. The script counts consecutive rising

Strategy v6 TrendMoving averages
Updated 8 days ago · None stated GitHub repository of BTC MA Accumulation v1

Sell-Only Strategy

by karma659
2 stars

This short-only strategy identifies sell setups by combining a 3-period RSI overbought condition with a bearish engulfing candlestick pattern. It triggers short entries when the open RSI exceeds 70 and momentum turns downward alongside a bearish engulfing bar.

Strategy v5 Oscillators & momentumCandlestick patterns
Updated 10 days ago · None stated GitHub repository of Sell-Only Strategy

Crypto Trading Strategy

by AmjadSaidam
2 stars

Crypto Trading Strategy identifies breakout setups on the price chart by combining Bollinger Bands with daily cumulative volume delta. It computes a standard Bollinger Band envelope alongside a daily resetting cumulative volume series normalised into z-scores.

Indicator v6 BreakoutVolume
Updated 5 weeks ago · MIT GitHub repository of Crypto Trading Strategy
2 stars

Crypto Intermarket Correlation calculates rolling Pearson correlation for Bitcoin and Ethereum against a user-selected benchmark symbol, such as stock indices or gold. Displayed in a separate pane, the indicator plots individual crypto correlations along with

Indicator v6
Updated 8 weeks ago · MPL-2.0 GitHub repository of Crypto Intermarket Correlation
2 stars

This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of EMA20/50 ATR Trail Spot

QTrade MACD

by Can3299
2 stars

QTrade MACD is a trend-following momentum strategy that enters positions on MACD histogram crossovers. Entry signals are filtered using SuperTrend direction alignment, zero-line position rules, and zero-line distance tolerance checks. Stop loss levels are esta

Strategy v6 TrendOscillators & momentum
Updated 5 months ago · AGPL-3.0 GitHub repository of QTrade MACD

BTC Pattern Breakout Final

by Yashiine-code
2 stars

This indicator detects chart structure setups on the price chart, including W-bottom and convergence breakouts, M-top and convergence breakdowns, and false breakout alerts. Signals are filtered using moving average volume expansion, ATR momentum growth, and ex

Indicator v6 BreakoutSupport & resistance
Updated 5 months ago · None stated GitHub repository of BTC Pattern Breakout Final

This indicator analyzes Bitcoin trends and their effect on altcoins using multiple timeframes and exchanges. It plots up to four EMAs and one SMA on the price chart with customizable colors and optional extension lines. Two trend detection modes compare BTC cl

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Indicador de Tendências do BTC e Altcoins

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