Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 17)

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

1 stars

An experimental strategy that buys a fixed BTC size once a day at 00:45 exchange time within a start and end date window, building a dollar-cost-averaged long. When price is below the average cost, it adds a short hedge sized to match the open long. A selector

Strategy v5
Updated 1 year ago · None stated GitHub repository of TeeLek Lab 02 DCA with Hedging
1 stars

This indicator calculates the MACD histogram from the fast and slow exponential moving averages. It plots the MACD line, signal line, and a histogram divergence column on a separate pane. The histogram divergence uses green columns for positive changes and red

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of [Z] MACD Hist Divergence
1 stars

A Pine v4 strategy that plots a 28-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 ETHUSDT EMA Cross Strategy
106 stars

This strategy calculates momentum signals using MACD crossovers filtered by EMA trend filters and an optional RSI indicator. It enters long and short positions directly on the price chart using customizable percentage-based stop loss and take profit targets. T

Strategy v5 Oscillators & momentumMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 5min MACD Scalp by Joel (3commas)
43 stars

This indicator plots a modified Ichimoku set on the price chart. It builds Tenkan, Kijun, Chikou, and both Senkou lines from a ten-bar average of the open rather than the usual high-low midpoint, then fills the cloud between Senkou A and Senkou B. A green tria

Indicator v5 TrendSupport & resistance
Updated 2 years ago · None stated GitHub repository of No Repaint - ICHIMOKU

Divergenced G003

by ruckard
13 stars

Divergenced G003 is a strategy that identifies momentum divergences based on Squeeze Momentum Indicator color transitions to trigger long and short entries. Trades are exited using Curie closing moving average lines or configurable percentage-based stop loss,

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Divergenced G003
10 stars

Calculates long and short entry signals tailored for Bitcoin on the 15-minute timeframe using a combination of the Relative Strength Index (RSI), Traders Dynamic Index (TDI) bands, and TD Sequential counts. It triggers long signals when RSI falls below 21 and

Indicator v4 Oscillators & momentumSupport & resistance
Updated 5 years ago · None stated GitHub repository of WE:TDI-TD L/S BTC 15min

Ultimate Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Ultimate Oscillator in a separate pane from buying pressure and true range over fast, medium, and slow lengths, combined with a four-two-one weighting. It enters long when the oscillator crosses above the oversold level while remai

Strategy v5 Oscillators & momentumDivergence
Updated 7 months ago · MIT GitHub repository of Ultimate Oscillator - Eterna MCP
6 stars

This indicator classifies price action into four distinct market regimes: Trend, Expansion, Compression, or Mean Reversion. It determines states using a simplified Hurst exponent estimate, ADX slope thresholds, and realized volatility measurements. Based on th

Indicator v6 TrendVolatility & bands
Updated 2 months ago · MIT GitHub repository of Capital41 Regime Matrix v3

Mini Screener

by jayadevrana
1 stars

Mini Screener is a multi-asset monitoring dashboard that displays price data and trend status for five user-selected symbols in an on-chart table. It calculates single-bar percentage price changes and checks whether each asset trades above or below an exponent

Indicator v6 Screeners & dashboardsTrend
Updated 4 days ago · MPL-2.0 GitHub repository of Mini Screener
1 stars

A long-only strategy for crypto spot that builds support zones from pivot lows on a higher timeframe, 15 minutes by default, and watches the chart timeframe for a liquidity sweep below a swing low followed by a reclaim and a higher low. Reclaim confirmation ca

Strategy v6 Mean reversionSMC / ICT / price action

[Z] Moving Average

by zhuzp98
1 stars

This indicator calculates and plots eight separate moving averages directly on the price chart. It provides seven Simple Moving Averages with default periods of 5, 10, 20, 30, 60, 120, and 200, alongside one 20-period Exponential Moving Average. Each moving av

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of [Z] Moving Average

Fast EMA

by tseitz
1 stars

A Pine v4 strategy that plots a very fast two-period EMA of the close in orange on the price chart. It goes long whenever the EMA is above its previous value and short whenever it is below, closing the opposite side, so it flips direction as the slope changes

Strategy v4 Moving averagesScalping Repaints
Updated 4 years ago · None stated GitHub repository of Fast EMA

Zen ATH Bands

by Zen-Tim
29 stars

Zen ATH Bands calculates the all-time high or current price of an asset and projects horizontal reference lines representing percentage pullback levels. It draws up to seven user-defined drawdown thresholds below the baseline, complete with custom price and pe

Indicator v5 Support & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen ATH Bands

Divergenced H002

by ruckard
13 stars

Divergenced H002 is an automated trading strategy designed to identify divergence setups using transitions in the Squeeze Momentum Indicator combined with Curie moving average closing lines for exit conditions. It detects bearish divergence when momentum weake

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced H002

WE:TDI/STOCH

by davro
10 stars

This indicator plots three stochastic oscillators and a Traders Dynamic Index in a separate pane. Stochastic periods of 15, 32 and 50 each draw a K and D line that turns green below 18 and red above 82. A background band turns green when all six lines are over

Indicator v4 Oscillators & momentum
Updated 5 years ago · None stated GitHub repository of WE:TDI/STOCH

VWAP Bounce - Eterna

by EternaHybridExchange
9 stars

This strategy overlays volume-weighted average price deviation bands and an exponential moving average trend filter directly on the price chart. It enters long positions during an uptrend when price recovers above the lower band, and enters short positions in

Strategy v5 Mean reversionTrend
Updated 7 months ago · MIT GitHub repository of VWAP Bounce - Eterna
6 stars

This indicator plots session boxes, high-low ranges, and optional open lines for Asia, London, and New York sessions on the price chart. It detects breakouts when price crosses the prior session range. Inputs let users toggle visibility of boxes, open lines, b

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Capital41 Session Flow Simple v2
4 stars

This strategy identifies breakout entries confirmed by elevated trading volume and trend direction. It triggers long entries when the close crosses above the recent highest high, provided volume exceeds its moving average by a multiplier and price remains abov

Strategy v6 BreakoutVolume
Updated 2 months ago · MIT GitHub repository of ETH Momentum Breakout [trugurpala]

Super 8 - 30m BTCUSDT.P

by wynnforthework
2 stars

Super 8 is a trend-following and momentum strategy designed for 30-minute cryptocurrency charts. It evaluates entries using dual EMAs, ADX strength filtering, Parabolic SAR direction, MACD or Z-VWAP calculations, and Bollinger Band width expansion alongside vo

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Super 8 - 30m BTCUSDT.P

Pivot Point SuperTrend

by kanylbullen
1 stars

This Pine Script strategy plots pivot points and a SuperTrend-style trailing line based on ATR and center line derived from pivots. It calculates trend direction and generates buy and sell signals on trend reversals. Signals are filtered by a user-selected mov

Strategy v5 TrendVolatility & bands Repaints
Updated 8 days ago · None stated GitHub repository of Pivot Point SuperTrend
1 stars

This indicator tracks relative divergence among five user-selected crypto perpetual symbols and plots the result in a separate pane. It scores each symbol from a twelve-bar log return scaled by ATR, assigns long or short direction, and requires RSI above 40 be

Indicator v6 DivergenceOscillators & momentum
Updated 13 days ago · None stated GitHub repository of DEPV2 C4 · Ayrışma Takibi
1 stars

Corpus Correlation Rotation is a cross-asset quantitative strategy that compares the price performance of the chart symbol against a user-selected benchmark asset. It measures five-bar price changes for both symbols, computes a 20-period statistical correlatio

Strategy v5 Oscillators & momentumMoving averages
Updated 4 months ago · MIT GitHub repository of Corpus Correlation Rotation

SMC Production Confluence Engine

by shubhamtaywade82
1 stars

Combines smart money concepts with a multi-timeframe stack on the price chart. A 4-hour EMA bias, 1-hour liquidity sweeps and 15-minute order blocks and fair value gaps feed a confidence score, with a minimum score, signal cooldown and an entry mode setting. O

Indicator v6 SMC / ICT / price action Archived
Updated 5 months ago · None stated GitHub repository of SMC Production Confluence Engine
1 stars

This price-chart indicator simulates dollar-cost averaging between a start date and an end date. It builds a five-bar Hull moving average, smooths it with an exponential average, and colors the line by direction. Inside the window, every bar adds a fixed BTC s

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of TeeLek Lab 03 DCA and Pause

ATR Ratio To BTC

by zhuzp98
1 stars

An indicator that compares the volatility of the current symbol with Bitcoin. It computes the ATR of each as a fraction of its own moving average, then plots their ratio as a single line in a separate pane. A value above one means the chart symbol is moving mo

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Ratio To BTC
1 stars

A Pine v4 strategy that plots a 12-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 FILBTC EMA Cross Strategy

Divergenced I002

by ruckard
13 stars

Divergenced I002 is a trading strategy that identifies entry points using Squeeze Momentum Indicator divergences across price and momentum structure. Long positions trigger on bullish momentum divergences, while short positions trigger on bearish divergences.

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced I002

Williams %R Reversal - Eterna MCP

by EternaHybridExchange
9 stars

This strategy tracks the Williams %R oscillator to trade mean-reversion bounces from overbought and oversold extremes. It opens long or short positions when a reversal signal occurs alongside confirming price direction, while generating JSON-formatted alert pa

Strategy v5 Oscillators & momentumMean reversion
Updated 7 months ago · MIT GitHub repository of Williams %R Reversal - Eterna MCP
6 stars

This indicator plots a session volume-weighted average price on the price chart and resets the cumulative price-volume totals when a new session begins. It uses typical price and volume, and can draw optional standard-deviation bands around the VWAP. A corner

Indicator v6 Sessions & timeVolume
Updated 2 months ago · MIT GitHub repository of Capital41 Session VWAP v2
4 stars

This indicator presents a separate-pane dashboard that looks up stored figures for a chosen crypto pair and a named strategy. It does not calculate RSI, MACD, bands, or other indicators from live prices. Inputs select the pair and strategy and toggle metric an

Indicator v5 Screeners & dashboards
Updated 2 days ago · None stated GitHub repository of Crypto Pair Selector STEPFUN
4 stars

This strategy trades Ethereum with a fast and slow exponential moving average crossover filtered by a 200-period EMA. It enters long when the fast EMA crosses above the slow EMA and price is above the 200 EMA. Shorts stay off by default and open only when that

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Ethereum ETH Strategy [trugurpala]

Volume Breakout Strategy

by kanylbullen
1 stars

This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter. It triggers long entries when price crosses above the upper channel and short entries

Strategy v5 BreakoutTrend Repaints
Updated 8 days ago · None stated GitHub repository of Volume Breakout Strategy
1 stars

A long-only strategy for one-minute spot charts that uses two Bollinger Bands, a standard 20-period band on close and a short 4-period wide band on open, to classify entries into three cases. Entries can be limited to the first two hours of the Asian, European

Strategy v5 Volatility & bandsScalping
Updated 13 days ago · None stated GitHub repository of Double Bollinger Band 1M Scalper

BTC Delta MTF v3 Enhanced

by Focal-QuantAI
1 stars

An indicator on the price chart that estimates order flow from lower-timeframe sub-candles. It combines delta from a main 5 minute and a secondary 1 minute timeframe with weights, and can scale by a 60 minute trend filter. Added modules score delta exhaustion,

Indicator v5 VolumeOscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of BTC Delta MTF v3 Enhanced

Heikin Ashi Trend

by Basant1Saini
1 stars

Heikin Ashi Trend is a trend-following strategy that calculates Heikin Ashi candle values and moving averages directly on the main price chart. It generates long and short entry signals when a user-defined number of consecutive Heikin Ashi bars align with fast

Strategy v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Heikin Ashi Trend

Turtle Trading Rules

by webcrack4
1 stars

Turtle Trading Rules is an indicator based on the classic Turtle Trading Channels system, customized to generate JSON payloads for the OKX Signal Bot. It calculates price breakout channels using configurable entry and exit lengths (defaulting to 20 and 10 peri

Indicator v5 TrendBreakout
Updated 9 months ago · None stated GitHub repository of Turtle Trading Rules
1 stars

This indicator simulates and compares standard daily dollar-cost averaging against HMA-filtered long and short DCA execution models. It tracks accumulated position sizes, average cost prices, and accumulated or unrealized profit within a user-specified date wi

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of TeeLek Lab 03 DCA and Pause X

His/Lows

by tseitz
1 stars

A Pine v4 strategy that combines rolling highest and lowest values over fast, medium and slow lookbacks with a 12/26 MACD and a 14-period RSI. Inputs set the three lookbacks, an RSI level for closing longs in a short zone, whether shorts are allowed, and two M

Strategy v4 Oscillators & momentumBreakout Repaints
Updated 4 years ago · None stated GitHub repository of His/Lows

Divergenced J001

by ruckard
13 stars

Divergenced J001 is a price-chart strategy that finds squeeze-momentum divergences and can send Zignaly alert messages. It shorts when a light-green to dark-green squeeze section shows a smaller value while price is higher, and longs on the opposite red-sectio

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced J001
9 stars

This indicator plots a heuristic volume-balance oscillator in a separate pane. It estimates signed volume from the close location inside each bar, multiplies that by volume, and sums the proxy over a rolling window. The sum is scaled between minus one and plus

Indicator v6 VolumeOscillators & momentum
Updated 3 days ago · MIT GitHub repository of CVD Bias [WavesUnchained]
6 stars

The Capital41 Structure Swings v3 indicator tracks market structure on the main price chart using pivot detection. It identifies swing highs and swing lows based on a user-defined pivot length, plotting labels and horizontal dotted level lines at active swing

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · MIT GitHub repository of Capital41 Structure Swings v3
4 stars

This indicator is a live strategy scanner for cryptocurrency pairs. It runs six strategies on the current chart, tracks their wins and losses, and rates them to show the best one for this pair and timeframe. It uses ATR for adaptive TP/SL, auto-scales based on

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of Crypto Pair Selector v2 STEPFUN

RSI Window

by rubbermetal
1 stars

RSI Window shows a relative strength index in a separate pane with a color gradient and overbought and oversold zone fills. It can also draw a faster RSI and a histogram of the gap between the fast and standard RSI. Up to five exchange symbols, defaulting to B

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of RSI Window
1 stars

An indicator on the price chart that filters price with a range-based line. The smoothed average absolute price change over a sampling period, 100 by default, is multiplied by a range multiplier to give a band size. The filter only moves when price leaves the

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Range Filter Buy and Sell 5min

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