Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 22)

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

This statistical arbitrage strategy uses matrix algebra to calculate dynamic Ordinary Least Squares regression parameters between the chart symbol and a secondary asset. It constructs a synthetic spread and calculates its Z-score. The strategy enters a long po

Strategy v6 Mean reversionScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Matrix OLS Stat Arb Sovereign v6

SlimTrades 1m

by tseitz
1 stars

A Pine v4 strategy that plots the previous four-bar highest high and lowest low in green and red on the price chart. It uses MACD and RSI turning points and candle body size to time entries, and applies a trailing stop set as a percentage of the close for both

Strategy v4 Oscillators & momentumScalping Repaints
Updated 4 years ago · None stated GitHub repository of SlimTrades 1m
114 stars

Chop and Explode for XBTUSD, etc calculates a relative strength index (RSI) applied to price data scaled via a minimax normalization function over a specified lookback period. It plots the custom RSI line in a separate pane with horizontal reference bands and

Indicator v4 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chop and Explode for XBTUSD, etc

Ruckard AndresAristizibal Joya D003 is an automated crypto trading strategy that evaluates entry and exit signals using a combination of Trend Indicator A-V2, Supertrend, and QQE Mod, alongside customizable Curie closing moving average filters. The script exec

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya D003

DEPV2 DEBUG S37

by YuceSezar89
1 stars

DEPV2 DEBUG S37 is a separate-pane indicator that watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs. It forms directional signals from four method classes: trend, momentum, volatility, and volume. Modes use one class, requi

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S37
1 stars

A portfolio-style strategy that estimates weights for three assets, Bitcoin, Ethereum and Solana by default, using return covariance matrices over a selectable lookback of 60, 120 or 252 bars and an annual baseline rate input. It solves for tangency weights ev

Strategy v6
Updated 2 months ago · None stated GitHub repository of TN Max Sharpe Sovereign

SlimTrades 2h

by tseitz
1 stars

SlimTrades 2h is an intraday strategy overlaying short-term high and low price channels alongside momentum measurements from MACD and RSI. It tracks local highs and lows over a user-defined lookback period, plotting them directly on the price chart. The script

Strategy v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of SlimTrades 2h

This long-only strategy trades intra-range mean reversion using standard or augmented Bollinger Bands overlayed on the main price chart. It triggers long entries when price dips below the lower band, provided the band spread stays within a defined threshold. E

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of B.Bands | Augmented | Intra-range | Long-Only

This strategy plots on the price chart and combines Trend Indicator A-V2, Supertrend, and QQE Mod to choose long or short entries. Optional start and stop times limit when it trades. Percentage take profit and stop loss are enabled by default, while trailing t

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

DEPV2 DEBUG S39

by YuceSezar89
1 stars

DEPV2 DEBUG S39 is a multi-asset signal evaluation indicator designed to monitor up to twenty cryptocurrency pairs simultaneously. It processes four analytical categories—trend, momentum, volatility, and volume—to evaluate market direction. Users can configure

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S39

SlimTrades 2m

by tseitz
1 stars

A strategy on the price chart tuned in its defaults for a 2 minute chart. It uses RSI zones together with two rolling highest and lowest ranges to open longs and, if allowed, shorts. Exits come from RSI close zones, a minimum percentage move and separate trail

Strategy v4 Oscillators & momentumScalping
Updated 4 years ago · None stated GitHub repository of SlimTrades 2m

Session Statistical Levels

by TamaraKGreen
46 stars

This indicator overlays statistical price range levels across key trading sessions, including Asia, London, NY Morning, and NY Afternoon, as well as an optional custom session. It calculates and plots symmetric percentile range bands such as the median (P50),

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Session Statistical Levels
13 stars

The Ruckard Cuneyt OBVRSI A002 strategy combines On-Balance Volume (OBV) and Relative Strength Index (RSI) thresholds to generate trade entries, DCA rebuys, and exits. Built primarily for crypto automation via Zignaly webhooks, it opens positions when OBV RSI

Strategy v5 Oscillators & momentumVolume
Updated 1 year ago · None stated GitHub repository of Ruckard Cuneyt OBVRSI A002

DEPV2 DEBUG S42

by YuceSezar89
1 stars

This multi-asset indicator evaluates market conditions across four analytical dimensions: trend, momentum, volatility, and volume. Configured for up to twenty cryptocurrency pairs, it generates trade signals through isolated methods, simultaneous multi-method

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S42
1 stars

This strategy calculates rate of change momentum across multiple user-defined symbols and ranks them using arrays. It rotates capital into the highest-performing asset symbol at scheduled bar intervals by closing all existing positions and entering a long trad

Strategy v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Momentum Swarm Sovereign v6

SlimTrades 4h

by tseitz
1 stars

A Pine v4 strategy using a 12/26 MACD, a 14-period RSI, a five-bar SMA and fast and slow rolling high and low lookbacks of five and forty-eight bars. Inputs set trailing-stop percentages for both sides, RSI bottom and top levels, a highest MACD close level, ad

Strategy v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of SlimTrades 4h

Ruckard Curie B004

by ruckard
13 stars

Ruckard Curie B004 is a trend-following strategy designed for cryptocurrency trading. It generates signals by combining fast and slow moving averages calculated from high and low source prices with directional strength filtering using ADX and DI indicators. Th

Strategy v5 Moving averagesOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard Curie B004

CRT Bias Scanner v4

by alboogycOdR
6 stars

This overlay indicator presents a multi-asset CRT bias scanner as a table on the price chart. It watches up to sixteen symbols, grouped by preset lists or custom slots, and refreshes the scan at a user-set interval in minutes. Optional alerts can fire for stro

Indicator v5 Screeners & dashboards
Updated 7 months ago · None stated GitHub repository of CRT Bias Scanner v4

This strategy detects EMA crossovers on the price chart using 9 and 21 period EMAs. It sets pending long signals on fast EMA cross above slow EMA and pending exit on cross below. Entries and exits trigger only on confirmed bars via barstate.isconfirmed. Long e

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF barstate-magnifier probe 01a - isconfirmed ON

DEPV2 DEBUG S43

by YuceSezar89
1 stars

Monitors up to twenty cryptocurrency perpetual contracts across four analytical dimensions: trend, momentum, volatility, and volume. The indicator evaluates signals using single-method triggers, simultaneous confluence thresholds, sequential execution chains w

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S43
1 stars

This indicator tracks Tom DeMark TD Sequential setup counts in a separate pane. It compares the current close to the close four bars earlier, accumulating positive counts during upward momentum and negative counts during downward momentum. The values display a

Indicator v5 TrendMean reversion
Updated 1 year ago · None stated GitHub repository of TD Sequential Number

SlimTrades 5m

by tseitz
1 stars

A strategy on the price chart with defaults aimed at a 5 minute chart. It reads RSI levels and rolling highest and lowest ranges, with MACD and RSI history helpers, to open long positions and optionally shorts. Positions close on RSI close zones, a minimum per

Strategy v4 Oscillators & momentumScalping
Updated 4 years ago · None stated GitHub repository of SlimTrades 5m

Ruckard Eve A011

by ruckard
13 stars

This strategy evaluates trend reversals using fast-paced high and low closing moving averages combined with Directional Movement Index (ADX, DI+, and DI-) strength filters. It executes long, short, or reverse entries when signal criteria and strength threshold

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Eve A011

This strategy plots EMAs on the price chart. It signals long entries when the fast EMA crosses above the slow EMA on a barstate.isconfirmed bar and exits on opposite cross when barstate.isconfirmed. It uses fixed position sizing of 1 with no stop loss. The mai

Strategy v6 Moving averagesTrend
Updated 6 days ago · Apache-2.0 GitHub repository of PF barstate-magnifier probe 01b isconfirmed OFF

DEPV2 DEBUG S44

by YuceSezar89
1 stars

DEPV2 DEBUG S44 is a multi-asset signal and confluence indicator designed for cryptocurrency pairs. It monitors up to twenty Binance perpetual contracts across four distinct analytical dimensions: trend, momentum, volatility, and volume. The script supports mu

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S44
1 stars

This indicator calculates TD Sequential setups by comparing the current close price to the close four bars ago. It increments or decrements a setup count and tracks direction to identify progression in trend. The setup count is plotted as a status line on the

Indicator v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of TD Sequential OnChart
1 stars

A long-focused strategy on the price chart for 5 minute data. It draws rolling highest and lowest levels over two lookbacks and uses RSI zones, with MACD and RSI history, to decide when to buy and when to close. Inputs set the RSI open and close zones, a minim

Strategy v4 Oscillators & momentumSupport & resistance
Updated 4 years ago · None stated GitHub repository of SlimTrades 5m Longs Only
13 stars

This strategy uses a 100-period RSI to generate long and short signals with 5% pre-entry buffers. Long entries trigger at RSI 45 and shorts at RSI 55. Exits occur at RSI 55 for longs and 47 for shorts, with emergency stops at RSI 10. Higher-timeframe EMA confi

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Fiery RSI A008
3 stars

Farid Makram Custom Levels is a multi-signal indicator for TradingView that combines RSI momentum analysis with MOBO oscillator signals based on the DPO. It generates buy and sell signals when RSI crosses its moving average or when DPO crosses zero, with confi

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Farid Makram Custom Levels

DEPV2 DEBUG S46

by YuceSezar89
1 stars

DEPV2 DEBUG S46 is a Pine Script v6 indicator that draws in a separate pane. It tracks up to twenty user-selected crypto perpetual symbols and combines four signal classes: trend, momentum, volatility, and volume. The signal mode can use one class, require sev

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S46
1 stars

A template for a Pine v4 SMA strategy where the name, SMA length and short-selling switch are unfilled placeholders, so it needs editing before it compiles. It plots the SMA in orange, goes long when a green candle opens above it, and goes short when a red can

Strategy v4 Moving averages
Updated 4 years ago · None stated GitHub repository of SMA Cross Strategy Template
13 stars

This strategy executes trades based on a smoothed Stochastic oscillator inspired by FieryTrading's Stochastic Trend concept, specifically tailored for automated crypto execution via Zignaly alerts. It opens positions when Stochastic values cross configured tri

Strategy v5 Oscillators & momentumScalping
Updated 1 year ago · None stated GitHub repository of Ruckard Fiery Stoch A004

DEPV2 DEBUG S47

by YuceSezar89
1 stars

This indicator is a multi-symbol debug panel that plots signal state in a separate pane. It watches up to twenty configurable symbols, defaulting to Binance USDT perpetual contracts, and classifies direction with trend, momentum, volatility, and volume methods

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S47

SMA Strategy

by tseitz
1 stars

A Pine v4 strategy that plots a simple moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing the opposite side. Inputs set the SMA length, long and

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of SMA Strategy

Ruckard Irene A003

by ruckard
13 stars

Ruckard Irene A003 is an overlay strategy that combines fast moving averages with Directional Movement Index (ADX, DI+, DI-) filters to execute trades. It evaluates price momentum relative to high and low moving averages while checking ADX strength thresholds.

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard Irene A003

PF IES probe 01 - adx regime

by pineforge-4pass
1 stars

PF IES probe 01 is a Pine Script v6 strategy that calculates ADX with a custom DI chain using ta.rma smoothing and manual plus/minus DM flow. It applies an ATR-ratio volatility gate comparing current ATR to its 42-period SMA to classify regimes into four categ

Strategy v6 TrendVolatility & bands
Updated 6 days ago · Apache-2.0 GitHub repository of PF IES probe 01 - adx regime

DEPV2 Debug S48

by YuceSezar89
1 stars

DEPV2 Debug S48 is a multi-symbol crypto indicator that monitors up to 20 cryptocurrency pairs across four analytical categories: trend, momentum, volatility, and volume. It evaluates trading conditions using several signal modes, including single-dimension tr

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 Debug S48
1 stars

An older Pine version 4 indicator that implements the Bitcoin stock to flow model. It requests total coins mined and the Bitcoin price from external blockchain data series, derives yearly flow from monthly, weekly or daily bars, and computes a model value and

Indicator v4
Updated 1 year ago · None stated GitHub repository of Bitcoin Stock to Flow
1 stars

A Pine v4 strategy that plots a 21-period exponential moving average of the close in orange on the price chart. It goes long when a green candle opens above the average and short when a red candle opens below it, closing each position when the opposite signal

Strategy v4 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of SNXBTC EMA Cross Strategy
13 stars

Ruckard Kayseri A003 is a trend-following trading strategy based on moving average crossovers using a primary smoothed moving average and a fast moving average. It features built-in date filtering and integrated Zignaly webhook alert message formatting for aut

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Kayseri A003

Volume (RVOL)

by Web3Degenerate
2 stars

This indicator calculates relative volume (RVOL) by dividing current bar volume by its simple moving average. It plots standard volume columns in a separate pane along with the volume moving average and an RVOL trigger threshold line. Volume columns are highli

Indicator v5 Volume
Updated 2 years ago · None stated GitHub repository of Volume (RVOL)
1 stars

This strategy builds a directional bias from three exponential moving averages drawn on the price chart. It scores bullish and bearish alignment of the fast, slow, and trend averages, plus whether price is above or below that structure, and treats a score at o

Strategy v6 TrendMoving averages
Updated 6 days ago · Apache-2.0 GitHub repository of PF IES probe 02 - three-ema bias

DEPV2 DEBUG S5

by YuceSezar89
1 stars

DEPV2 DEBUG S5 monitors a multi-ticker basket of up to twenty cryptocurrency pairs across four analytical dimensions: trend, momentum, volatility, and volume. It evaluates market signals using customizable modes, including individual method triggers, simultane

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S5
13 stars

Ruckard Kayseri B003 is a trend-following strategy designed to generate trade entries based on the interaction between a fast moving average and a main smoothed moving average. It incorporates customizable position management features, including fixed percenta

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Kayseri B003
1 stars

This strategy scores bullish and bearish momentum from three conditions: RSI above or below adjustable levels, RSI compared with its value three bars earlier, and a MACD histogram that is positive or negative and moving further that way. It enters long when th

Strategy v6 Oscillators & momentum
Updated 6 days ago · Apache-2.0 GitHub repository of PF IES probe 03 - rsi+macd momentum

DEPV2 DEBUG S50

by YuceSezar89
1 stars

This indicator is a debug pane for a multi-symbol signal model. It watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs, and combines four method classes: trend, momentum, volatility, and volume. Signal mode selects a single c

Indicator v6 TrendOscillators & momentum Repaints
Updated 12 days ago · None stated GitHub repository of DEPV2 DEBUG S50
1 stars

A strategy that watches correlation between assets in a separate pane. It builds a correlation matrix for four symbols, defaulting to BTC, ETH, SOL and BNB, and shows it as a colour-shaded table. The first two symbols form the main pair, and when their correla

Strategy v6 Screeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Multilateral Sovereign Corr

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