Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 11)

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

RSC Trend Trading Study

by readysetcryptocodes
43 stars

This indicator plots Donchian Channels alongside fast and slow simple moving averages directly on the price chart. It generates bullish breakout signals when the high reaches the upper channel while the close is above the 50 SMA (and optionally the 200 SMA). B

Indicator v4 TrendBreakout
Updated 2 years ago · None stated GitHub repository of RSC Trend Trading Study

This strategy overlays the price chart to execute long and short trades on BTCUSDT. It requests multi-timeframe data across daily, 3-minute, 5-minute, 8-minute, and 10-minute periods to generate signals alongside VWMA volatility bands and smoothed moving avera

Strategy v5 Volatility & bandsMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of BTCUSDT 10M - No Repaint v1.1 2023

OTT + EMA20 分批出場策略

by skywalker0803r
42 stars

This strategy draws on the price chart and trades both directions. It enters long when a variable moving average crosses above the Optimized Trend Tracker while price is above a fast EMA, and short on the opposite cross below a slower EMA. Entries are blocked

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of OTT + EMA20 分批出場策略
24 stars

This indicator maps Smart Money Concepts (SMC) market structure directly onto the price chart. It detects internal and swing structure breaks (BOS and CHoCH), tracks bullish and bearish order blocks, identifies fair value gaps (FVG), highlights equal highs and

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 11 days ago · Custom licence GitHub repository of Smart Money Concepts [LuxAlgo] Test B

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy builds Bollinger bands from a simple moving average and the standard deviation of the close. It opens a short when price crosses above the upper band and the 14-period RSI is above 80, and opens a long when price crosses below the lower band and

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

Serializer

by stupenkov
14 stars

This Pine Script library encodes string data into numeric byte arrays and RGB color objects. It maps characters against standard ASCII symbol sets and packs groups of three bytes into red, green, and blue color channels. Designed as an optical data transfer ut

Library v5
Updated 3 years ago · None stated GitHub repository of Serializer

NFI v7.2

by koradiyakaushal
12 stars

NFI v7.2 is a Pine Script adaptation of the popular NostalgiaForInfinity algorithmic trading strategy originally built for Freqtrade. It analyzes price action and exponential moving average metrics across both base and higher informative timeframes, incorporat

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

This separate-pane indicator plots a custom relative strength index whose length and overbought and oversold bands change with the chart timeframe, or uses a length the user sets. A configuration mode can hide the RSI and, on BTCUSD daily, weekly, or monthly c

Indicator v4 Oscillators & momentum Repaints
Updated 5 years ago · None stated GitHub repository of My Relative Strength Index

Chandelier Exit - Eterna

by EternaHybridExchange
9 stars

This strategy calculates volatility-based Chandelier Exit bands using the Average True Range and high/low extremes, paired with an optional exponential moving average trend filter. It enters long when the close crosses above the long Chandelier line while abov

Strategy v5 TrendVolatility & bands
Updated 7 months ago · MIT GitHub repository of Chandelier Exit - Eterna

This indicator overlays the previous 1-hour candlestick onto lower timeframe charts, such as the 15-minute timeframe. It requests the open, high, low, and close prices of the prior completed 60-minute bar using security calls and renders them directly on the p

Indicator v6 Candlestick patterns
Updated 1 year ago · MIT GitHub repository of H1 Candle as True Shadow on M15

Edge 71

by subos2008
6 stars

Edge 71 plots prior-window extremes on the price chart and marks breakout entries. It takes the highest high over a long lookback and the lowest low over a short lookback, both excluding the current bar. A green arrow appears when the bar high exceeds that pri

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

Elton's Predictions Decision Engine synthesizes thirty selectable strategy algorithms or an auto-detect mode into unified buy, sell, or wait verdicts directly on the price chart. It calculates higher-timeframe trend alignment, confidence scores, and ATR-based

Indicator v6 TrendOscillators & momentum Repaints
Updated yesterday · None stated GitHub repository of Elton's Predictions Decision Engine
4 stars

This strategy identifies Bitcoin price trends using fast and slow EMA crossovers filtered by RSI and a 200 EMA. It plots the EMAs and entry signals on the price chart. Bullish crossovers open long positions with ATR-based stop loss and take profit. Bearish cro

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Bitcoin BTC Strategy [trugurpala]
3 stars

This Pine Script v5 library exports detectYinYangCrown, which builds a standard MACD from close using caller-supplied fast, slow, and signal lengths. It tracks histogram color and a small state machine: a green histogram that rises to a peak, then declines, th

Library v5 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of YZM YinYang Crown Library

Stella's SuperTrend Basic

by stella-entry
3 stars

Stella's SuperTrend Basic is a trend-following strategy that calculates the SuperTrend indicator directly on the price chart. It enters long positions when the price crosses above the SuperTrend line and switches to short positions when the price crosses below

Strategy v6 Trend
Updated 8 months ago · MIT GitHub repository of Stella's SuperTrend Basic
3 stars

This indicator calculates multi-source analysis signals based on The Trading Parrot methodology, combining SOPR proxy calculations, custom volume-weighted RSI, liquidity support and resistance levels, volume spike detection, and pattern recognition. It outputs

Indicator v6 Oscillators & momentumVolume
Updated 1 year ago · Custom licence GitHub repository of Trading Parrot Multi-Source Analysis

Poison Rat v2.1 - DataCrypto Analytics

by datacrypto-analytics
3 stars

This indicator tracks multi-timeframe moving average crosses directly on the price chart. It evaluates three Running Moving Averages (RMA lengths 4, 9, and 16) fetched from a user-selected secondary timeframe alongside 100-period and 200-period Simple Moving A

Indicator v4 Moving averagesTrend Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of Poison Rat v2.1 - DataCrypto Analytics
3 stars

Greeffer's Long Study calculates Donchian Channels alongside a volume moving average filter to generate trade signals. When price touches the lower or upper channel boundaries combined with volume exceeding a custom moving average multiplier, the indicator tri

Indicator v4 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Long Study

BOT A-SLP DEMATRON 2H

by danielvm-git
2 stars

This strategy calculates up to three Double Exponential Moving Averages (DEMA) to generate buy and sell signals based on crossover and crossunder conditions. It plots the moving average lines directly on the price chart. The indicator includes input controls f

Strategy v4 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of BOT A-SLP DEMATRON 2H

Three Brothers Strategy

by sassiz-root
2 stars

This strategy looks for three prior bars moving the same way with successively smaller bodies, followed by a current bar that closes the other way. It enters long when those prior bars are bearish and the current bar is bullish. A short entry is present only a

Strategy v5 Candlestick patterns Repaints
Updated 3 years ago · MIT GitHub repository of Three Brothers Strategy

Leveraged Perp Arm

by nvolpe2007-cell
1 stars

A simulated leveraged perpetual futures strategy with three modes in one script. Direction comes from a 50-bar SMA or a 21 and 55 EMA cross, and exits use either a fixed take profit and hard stop or an ATR chandelier trail. Leverage is capped, with maintenance

Strategy v6 TrendVolatility & bands
Updated yesterday · None stated GitHub repository of Leveraged Perp Arm
1 stars

Correlation Matrix & Effective Bets is an indicator that computes pairwise correlations of log returns across six user-defined symbols over a configurable length and displays the results as a colored table in a separate pane. It also calculates an effective be

Indicator v6 Screeners & dashboardsSupport & resistance
Updated 3 days ago · MPL-2.0 GitHub repository of Correlation Matrix & Effective Bets

Hash Momentum Strategy

by kanylbullen
1 stars

Calculates normalized momentum against a threshold and combines it with an exponential moving average trend filter. It triggers trades in the direction of the EMA trend when momentum surges, subject to optional session, weekend, and cooldown filters. Exits are

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · None stated GitHub repository of Hash Momentum Strategy

A Pine v6 strategy for crypto charts that looks for an RSI oversold setup together with a Fibonacci-spaced Bollinger Band setup, then waits for a reclaim as confirmation. Optional filters include a trend moving average on the chart and a higher timeframe, a vo

Strategy v6 Mean reversionOscillators & momentum
Updated 11 days ago · MIT GitHub repository of Crypto TA Pro RSI + Fibonacci BB Regime

MTF Confluence Lean

by MuhammadMuhamid
1 stars

A long-only spot strategy that enters when all enabled gates agree, each on its own timeframe, 15 minutes by default: Supertrend bullish, RSI above a threshold and below a cap, Volume Flow Indicator above a level, and a support check. One reward-to-risk stop a

Strategy v6 TrendOscillators & momentum
Updated 12 days ago · None stated GitHub repository of MTF Confluence Lean
1 stars

An overlay toolkit for crypto charts that combines a volume profile with value area, an anchored VWAP with deviation bands, EMA 50 and 200 trend lines, a higher-timeframe EMA bias, and an order flow proxy built from lower-timeframe delta, relative volume and c

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v3 Precision

Trend Pullback Indicator

by Chovy-King
1 stars

An overlay that looks for pullbacks within an established trend using three EMAs (20, 60 and 144) that must be stacked in order and spread apart by an ATR multiple, with a rising or falling fast EMA and no recent crossover between the fast and middle lines. A

Indicator v6 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of Trend Pullback Indicator
1 stars

A long-only calendar strategy for Bitcoin. At a chosen hour on Sunday it compares price with the price recorded at a chosen hour the previous Friday, and enters long when the weekend gain exceeds a minimum percentage. The position is closed at the Friday hour.

Strategy v6 Sessions & time
Updated 7 months ago · None stated GitHub repository of BTC Weekend Strategy

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy overlays technical indicators and staged dip-buying logic designed for Bitcoin market cycles. It incorporates a geometric mean indicator, multi-timeframe EMA bands, a customizable range filter, and supply and demand zones directly onto the price

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle

Trend-Filtered Reversal

by caizongxun
1 stars

A separate-pane indicator for counter-trend reversal setups that are filtered by a baseline EMA trend. A bearish setup needs price at a wide upper Bollinger Band, high volume or an overbought RSI, and a rejection wick; the bullish setup mirrors this. In a stro

Indicator v5 Mean reversionVolatility & bands
Updated 8 months ago · MIT GitHub repository of Trend-Filtered Reversal

Crypto Trading Bot Pro

by KirstonKK
1 stars

A chart-overlay indicator that combines RSI, a fast and slow EMA cross, Bollinger Bands, volume spikes, MACD and stochastic into alert conditions. Individual alert groups can be switched on or off, and a weighted confidence score must reach a minimum before an

Indicator v5 Oscillators & momentumVolatility & bands
Updated 10 months ago · None stated GitHub repository of Crypto Trading Bot Pro
1 stars

This strategy looks for pullbacks to a 15-period EMA. A long needs price to touch or dip under the EMA, close back above it on a sufficiently large green candle, with the EMA above a 100-period EMA and a minimum pullback percentage. Shorts mirror this. Optiona

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of NakInvest EMA Pullback Strategy

Lab-Doi-03

by theteelek
1 stars

Lab-Doi-03 is a price-chart strategy that compares a 12-period and a 26-period exponential moving average requested from the daily timeframe. While the chart time is inside the start and end dates and the fast average is above the slow average, it records an i

Strategy v6 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Lab-Doi-03

SOLETH MTPI

by Mikelkulla
1 stars

This strategy detects relative performance between Solana and Ethereum using a liquidity-weighted supertrend (LWST) derived from fast and slow weighted moving averages of liquidity times close. It plots the Tsl2 trend line in a separate pane and issues buy sig

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

Candle Strategy

by zhuzp98
1 stars

This Pine Script strategy identifies candlestick patterns such as engulfing, doji, hammer and star formations on the price chart. It applies SMA trend filters with fast and slow periods to confirm direction before plotting labels for bullish and bearish signal

Strategy v5 Candlestick patternsMoving averages
Updated 1 year ago · None stated GitHub repository of Candle Strategy

Min-Max Strategy

by creatidy
1 stars

A strategy that trades breakouts of a rolling high and low channel, filtered by a long moving average adjusted for relative strength. Stop orders are placed at the upper channel for longs when the channel low is above the adjusted level, and at the lower chann

Strategy v4 BreakoutTrend
Updated 3 years ago · GPL-3.0 GitHub repository of Min-Max Strategy
1 stars

An indicator on the price chart that shades the background green when a possible dip bottom forms. It looks for RSI turning up from a local low while the earlier RSI reading sits below a buy threshold, combined with MACD either flattening its decline or turnin

Indicator v4 Oscillators & momentumMean reversion
Updated 4 years ago · None stated GitHub repository of Binance Buy The Dip
330 stars

This strategy divides a fixed price range between an upper and a lower limit into equally spaced grid levels and plots them on the price chart. It marks a buy when price crosses down through a grid and a sell when price crosses up through a grid, using either

Strategy v5 Support & resistanceMean reversion Repaints
Updated 2 months ago · None stated GitHub repository of Grid Bot Simulator [Alorse]

3C QFL Mean Reversal

by hasnocool
106 stars

3C QFL Mean Reversal is a strategy based on the Quickfinger Luc (QFL) trading methodology. It identifies breakdown buying opportunities below established price base levels and enters mean-reversion trades. The strategy includes multi-safety order DCA scaling,

Strategy v5 Mean reversionSupport & resistance Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 3C QFL Mean Reversal

BTC True Scalp

by iamrichardD
57 stars

This strategy runs an ultra-fast MACD in a separate pane to capture short-term momentum scalps. It filters trade entries using micro-trend direction, volume spikes, and candle body strength within specified session hours. Positions default to two percent of eq

Strategy v6 Oscillators & momentumScalping Repaints
Updated 1 year ago · Apache-2.0 GitHub repository of BTC True Scalp

This strategy overlays the ETHUSDT perpetual price chart and is labeled for the five-minute timeframe. It calculates a smoothed stochastic oscillator from the open, high, and low, with adjustable K, D, and smoothing lengths plus overbought and oversold levels.

Strategy v5 Oscillators & momentumTrend Repaints
Updated 2 years ago · None stated GitHub repository of ETHUSDTPERP-5M - No repaint 2023

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter

Greeffer BB Strategy

by SammyEnigma
18 stars

Greeffer BB Strategy is a volatility-based mean reversion system that calculates Bollinger Bands using price and standard deviation. It generates long and short signals when price crosses the upper and lower bands respectively. Entries are filtered with RSI(14

Strategy v4 Volatility & bandsOscillators & momentum Repaints
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy

Lazarus3 Backtest

by ysdede
12 stars

This strategy executes a fixed sequence of buy and sell orders on the BTC-USD pair at predetermined timestamps on the 2-hour chart. It uses an initial capital of 10000 with 0.2 percent commission to calculate position sizes. Orders are placed with specific qua

Strategy v4 ScalpingSessions & time
Updated 5 years ago · None stated GitHub repository of Lazarus3 Backtest

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