Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 12)

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

NFI v7.2.1

by koradiyakaushal
12 stars

This strategy is a Pine Script implementation of the NostalgiaForInfinity crypto strategy. It calculates indicator metrics across multiple timeframes and compares price action against a master pair such as BTC/USDT. Settings allow traders to configure informat

Strategy v4 TrendMoving averages
Updated 5 years ago · MIT GitHub repository of NFI v7.2.1
10 stars

This indicator calculates custom Traders Dynamic Index (TDI) conditions on the price chart using a 30-period Relative Strength Index (RSI), volatility bands, and fast/slow RSI moving averages. It plots green buy labels below bars and red sell labels above bars

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of My TDI B/S BTC 1D

Donchian Channel Breakout - Eterna

by EternaHybridExchange
9 stars

This strategy plots Donchian Channel bands, a middle line, and breakout signals directly on the price chart. It opens long positions when price breaks above the upper band and short positions when price breaks below the lower band, evaluated after confirmation

Strategy v5 TrendBreakout
Updated 7 months ago · MIT GitHub repository of Donchian Channel Breakout - Eterna
6 stars

Capital41 Confluence Core plots an EMA or SMA on the price chart and combines its direction with RSI, Williams %R, and a liquidity-sweep check into long and short confluence signals. Signal strictness is Strict, Standard, or Loose, which changes how far the os

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of Capital41 Confluence Core

Edge 71

by subos2008
6 stars

This strategy plots prior high and low breakout levels on the price chart and trades a long breakout. It goes long when the bar high exceeds the previous bar's highest high over a user-set lookback, and it closes that long when the bar low breaks the previous

Strategy v5 BreakoutSupport & resistance Repaints
Updated 2 years ago · Custom licence GitHub repository of Edge 71
4 stars

This strategy is a multi-strategy backtesting engine that draws entries and exits on the price chart. The user picks one approach, including Connors RSI-2, z-score mean reversion, EMA and MACD momentum, Bollinger squeeze, VWAP reversion, Supertrend, Ichimoku,

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01 CURSOR [Elton Engine]
3 stars

Stella's Support/Resistance Levels automatically identifies and plots horizontal support and resistance lines on the price chart based on pivot highs and lows. It draws green lines at confirmed pivot lows for support and red lines at confirmed pivot highs for

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Stella's Support/Resistance Levels

Ultimate Trading System

by EngineeredSuccess
3 stars

The Ultimate Trading System is an integrated indicator that combines multiple analysis methodologies—including Pi Cycle Top, SPX/Gold ratio, Elliott Wave, and multi-source market signals—into a composite oscillator scored from 0 to 100. Plotted in a separate p

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · Custom licence GitHub repository of Ultimate Trading System
2 stars

MasterTrader V1 is an indicator that plots two exponential moving averages (fast length 9, slow length 21) and RSI (length 14) on the close price chart. It generates long entry signals when the fast EMA crosses above the slow EMA, RSI stays between 30 and 70,

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of MasterTrader V1 Master Trader
2 stars

Lakshmi v1 Institutional Flow Engine indicator calculates a Magic Line using ATR(14) multiplied by golden ratio 1.618 anchored to daily midpoint close. It plots demand and supply zones derived from volume profile bins and fair value gaps on 4H and daily charts

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Lakshmi Institutional Flow Engine

Breakout Strategy

by Web3Degenerate
2 stars

This strategy detects price breakouts beyond the high or low of a higher timeframe (default Daily) on an intraday chart. When the close crosses above the higher-timeframe high or below its low, it enters long or short, limiting execution to one breakout per di

Strategy v5 BreakoutSupport & resistance
Updated 2 years ago · None stated GitHub repository of Breakout Strategy

Market-Neutral Pairs

by nvolpe2007-cell
1 stars

Calculates a z-score of the log price ratio between two crypto pairs, chosen from three Kraken combinations, and shows it in a separate pane. Over a lookback of 168 bars it flags entry when the absolute z-score passes 2, exit when it falls to 0.5, a stop at 3.

Indicator v6 Mean reversion
Updated 2 days ago · None stated GitHub repository of Market-Neutral Pairs
1 stars

A Pine v6 research strategy for crypto charts that scores several modules, namely RSI, Fibonacci Bollinger Bands, a trend moving average with higher timeframe filter, Ichimoku, candlestick patterns and chart patterns, then enters when a weighted score passes a

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro v6 Megalithic Research

MTF Confluence Spot Strategy

by MuhammadMuhamid
1 stars

A long-only spot strategy where each filter has its own timeframe and on/off switch, and a trade needs every enabled filter to pass. Gates include Supertrend, RSI and Volume Flow Indicator, with structure filters such as support zones, supply and demand, liqui

Strategy v6 SMC / ICT / price actionTrend
Updated 13 days ago · None stated GitHub repository of MTF Confluence Spot Strategy
1 stars

This indicator provides a comprehensive toolkit for crypto chart analysis. It calculates and plots Volume Profile boxes with value area and acceptance bars, VWAP with standard deviation bands, multiple EMAs for trend filtering including HTF bias, lower timefra

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v4 Safe LTF

BTCDOM Strategy

by AlanGuo
1 stars

A long-only strategy that reads Bitcoin daily closes through request.security and compares them with a 30-day simple moving average widened by a slippage percentage. It buys when Bitcoin falls below the lower offset line and closes the position when Bitcoin ri

Strategy v6 Mean reversionMoving averages
Updated 7 months ago · None stated GitHub repository of BTCDOM Strategy

BTC ATH Golden Cycle

by ymlee1104
1 stars

BTC ATH Golden Cycle is a Bitcoin-focused strategy script that plots time-based halving cycles, supply and demand zones, a ZigZag indicator, a Rainbow ribbon, and an Ichimoku Cloud directly on the main price chart. The script models historical and projected BT

Strategy v6 TrendSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle
1 stars

An indicator for four-hour charts that builds a rolling VWAP with standard deviation bands. A long signal appears when one bar closes below the lower band and the next closes back above it, and the reverse for shorts. Filters skip trades when ATR volatility is

Indicator v6 Mean reversionVolatility & bands
Updated 7 months ago · None stated GitHub repository of V21 VWAP Mean Reversion
1 stars

A separate-pane indicator that studies how volume behaves around potential reversals. It measures volume relative to its average and its short-term trend, a delta volume proxy from candle colour, rate-of-change velocity and deceleration, and volume-price diver

Indicator v5 VolumeDivergence
Updated 8 months ago · MIT GitHub repository of Volume-Price Reversal Filter
1 stars

The Multi-Symbol Dashboard indicator overlays a customizable panel on the price chart to monitor up to six cryptocurrency symbols at once. It displays RSI, MACD histogram, EMA values, percentage price change and volume data fetched via request.security for sym

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 9 months ago · MIT GitHub repository of Multi-Symbol Dashboard

Lab-Doi-04

by theteelek
1 stars

This strategy plots on the price chart and uses daily EMA crossovers to generate signals for opening long positions in crypto trading. It activates between user-defined start and end dates and enters long trades when the fast EMA exceeds the slow EMA with bar

Strategy v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Lab-Doi-04

TOTAL MTPI

by Mikelkulla
1 stars

This strategy calculates the TOTAL MTPI using a combination of multiple indicators including Trend Sniper, EMA, MAMA, Kijun Sen, Supertrend and others to determine the overall direction of the cryptocurrency market cap index. It signals long entries when the c

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of TOTAL MTPI
1 stars

This indicator detects a selectable set of candlestick patterns and plots them on the price chart. Fast and slow simple moving averages provide a trend context for pattern interpretation. Users can turn individual formations on or off, including doji variants,

Indicator v5 Candlestick patternsMoving averages
Updated 1 year ago · None stated GitHub repository of Candlestick Patterns
1 stars

A Pine v4 strategy that plots a session VWAP with an upper and lower band offset by a percentage of the high and low. It opens a long when a bar opens above the upper band, optionally only on green candles, and a short below the lower band on red candles, clos

Strategy v4 VolumeScalping
Updated 4 years ago · None stated GitHub repository of BTC USDT Binance 1m

Hash Ribbons

by DT021
1 stars

This indicator plots daily Bitcoin hash-rate short and long simple moving averages in a separate pane. It marks capitulation when the short average crosses under the long average, miner capitulation while it stays below, recovery while the short average rises,

Indicator v4 Moving averagesOscillators & momentum Repaints
Updated 6 years ago · GPL-3.0 GitHub repository of Hash Ribbons

Test Request Security

by agutinbaigo28
147 stars

This indicator serves as a test script for verifying multi-timeframe and multi-symbol data requests using the request.security function. It fetches the one-hour closing price for the BINANCE:BTCUSDT trading pair and compares it alongside the current chart's cl

Indicator v5
Updated 6 weeks ago · MIT GitHub repository of Test Request Security

This indicator trains a single-neuron artificial neural network (perceptron) on each bar to classify price movement and plot an adaptive moving average on the main chart. It evaluates historical sample data to iteratively adjust weights using a step activation

Indicator v5 AI / machine learningMoving averages
Updated 1 year ago · None stated GitHub repository of Machine Learning: Perceptron-Based Strategy

3Commas Bot

by hasnocool
106 stars

This strategy overlays moving averages on the price chart to generate long and short trade signals compatible with 3Commas bot automation. It sets stop losses relative to recent swing pivots buffered by an ATR multiplier, while exits are handled by a risk-to-r

Strategy v5 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of 3Commas Bot
43 stars

This strategy calculates support and resistance pivot levels based on short-term open price extremes and combines them with multi-timeframe open prices and MACD indicators. It executes trades with user-defined percentage-based stop-loss and take-profit targets

Strategy v5 Support & resistanceOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Futures - New Script

Greeffer BB Strategy

by SammyEnigma
18 stars

Greeffer BB Strategy is a mean-reversion strategy that combines Bollinger Bands with the Relative Strength Index. It enters long positions when price crosses below the lower band with RSI above 30, and enters short positions when price crosses above the upper

Strategy v4 Oscillators & momentumVolatility & bands
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy
10 stars

This indicator implements a Traders Dynamic Index (TDI) calculation tailored for Bitcoin on four-hour charts, plotting signals directly on the price chart. It calculates a Relative Strength Index (RSI), moving averages, and volatility bands around the RSI line

Indicator v4 Oscillators & momentumVolatility & bands
Updated 5 years ago · None stated GitHub repository of My TDI B/S BTC 4H

EMA Ribbon (9/21/55) - Eterna

by EternaHybridExchange
9 stars

EMA Ribbon (9/21/55) is a TradingView strategy that calculates three exponential moving averages with periods 9, 21 and 55. It plots the EMAs on the price chart and colors the background ribbon according to bullish or bearish alignment. The strategy enters lon

Strategy v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of EMA Ribbon (9/21/55) - Eterna

BTC Arbitrage

by suyons
7 stars

This indicator tracks and displays Bitcoin price premiums across different exchanges in a dashboard table on the price chart. It calculates the spread and percentage difference between CME Bitcoin futures and Binance BTCUSDT, as well as the Korean kimchi premi

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of BTC Arbitrage

This strategy overlays a 90-period simple moving average from the one-hour and four-hour charts with a daily session VWAP on the price chart. It buys when VWAP is at or above the four-hour average and crosses above the one-hour average, and sells short in the

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · MIT GitHub repository of 4h Bullish Buy 1h Bearish Sell Session
6 stars

This indicator detects market stress in cryptocurrency perpetual futures by measuring the spot-to-perp basis, open interest impulses, and liquidation wicks. It signals long-squeeze risks, short-squeeze risks, cascade starts, and market reset completions when b

Indicator v6 Volatility & bandsVolume
Updated 2 months ago · MIT GitHub repository of Capital41 Crypto Perp Stress
6 stars

Institutional Bias Scanner draws a multi-symbol dashboard on the price chart together with optional session overlays. It watches sixteen user-selected symbols that default to major forex pairs, gold, the dollar index, equity indices, oil and crypto. Theme and

Indicator v6 Screeners & dashboardsSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional Bias Scanner

Simpleton v0.01_Claude is a multi-strategy trading engine designed for crypto markets that plots directly on the main price chart. It allows traders to execute individual strategies or combine signals into a multi-consensus model from up to twelve systems, inc

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Simpleton v0.01_Claude [12-Strategy Engine]

BTC Trend Pullback

by trugurpala
4 stars

This strategy enters long when price and a fast EMA sit above a slower trend EMA and RSI crosses back above a pullback level. Shorts use the opposite RSI cross only when long-only mode is off. It sizes each order as a percentage of equity and places an ATR-bas

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of BTC Trend Pullback
4 stars

This indicator identifies liquidity sweeps and stop hunts on price charts by detecting candles that breach recent high or low levels before closing back inside the previous range. Users can filter signals using lookback windows, minimum wick size relative to c

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · Custom licence GitHub repository of Liquidity Sweep Detector [Lab]

MATIC 2H ZEGUELA DEMABOT

by danielvm-git
2 stars

This strategy calculates up to three Double Exponential Moving Averages (DEMA) to determine trade entries directly on the price chart. It generates long signals on DEMA crossovers and short signals on crossunders, with conditional logic depending on active len

Strategy v4 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of MATIC 2H ZEGUELA DEMABOT

Lakshmi Strategy v1

by voletiramu
2 stars

This strategy draws supply and demand zones on the price chart based on manual inputs. It executes trades when price reaches zone levels and fires decoded signals from the Ghost Trade Pro methodology. Entries use percent-of-equity position sizing with a defaul

Strategy v6 Support & resistanceSMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of Lakshmi Strategy v1

CTC Comet Strategy 7.2024.1

by wynnforthework
2 stars

This strategy executes trades based on dual exponential moving average trend alignment, customizable Bollinger Bands, and normalized ATR volatility thresholds. It enters positions in the direction of the moving average trend and manages risk using a dynamic st

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of CTC Comet Strategy 7.2024.1

Rebalanced Allocation

by nvolpe2007-cell
1 stars

Simulates a portfolio of ten crypto assets, a gold-backed token and cash that is rebalanced on a fixed schedule, and plots the resulting equity curve against buy and hold in a separate pane. Target weights are 50 percent crypto, 25 percent gold and the rest ca

Indicator v6 Screeners & dashboards
Updated 2 days ago · None stated GitHub repository of Rebalanced Allocation

Kinetic Kalman Breakout

by kanylbullen
1 stars

A strategy that fits a two-state Kalman filter, tracking position and velocity, to the close price, then builds bands around the filtered price using a multiple of the mean absolute error. It goes long when the close crosses above the upper band and short when

Strategy v6 TrendBreakout
Updated 8 days ago · None stated GitHub repository of Kinetic Kalman Breakout
1 stars

An overlay toolkit for crypto charts that mixes a volume profile and value area, a daily, weekly or monthly anchored VWAP with bands, EMA trend lines, a higher-timeframe EMA bias, and an order flow proxy from lower-timeframe delta, relative volume and cumulati

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v5 Signal Engine

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