Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 8)

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

BTC MACD Basic Tests

by iamrichardD
57 stars

BTC MACD Basic Tests implements a Pine Script unit-testing framework designed to validate components of a long-only Bitcoin MACD trading system. It constructs structured test cases to evaluate mock functions for MACD crossover calculations, volume threshold ch

Strategy v6 Oscillators & momentumTrend
Updated 1 year ago · Apache-2.0 GitHub repository of BTC MACD Basic Tests

Trading Sessions

by iamc1oud
56 stars

Trading Sessions is an overlay indicator that highlights major market trading sessions such as Tokyo, London, and New York directly on the price chart. It draws customizable session boxes along with optional open and close price lines, average session prices,

Indicator v6 Sessions & time
Updated 2 months ago · None stated GitHub repository of Trading Sessions

BTC Multiples

by readysetcryptocodes
43 stars

BTC Multiples calculates and displays Bitcoin macro valuation metrics in a separate pane, including the Mayer Multiple, Stock-to-Flow Multiple, Difficulty Multiple, and Puell Multiple. Each valuation multiple features configurable overvalued and undervalued th

Indicator v4 Moving averagesSupport & resistance
Updated 2 years ago · None stated GitHub repository of BTC Multiples

This strategy trades 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Binancash Futures Strategy 1M Candles

FVG RSI Strategy (Translated)

by skywalker0803r
42 stars

This strategy overlays two exponential moving averages on the price chart to trade reversals using custom Fair Value Gaps and the Relative Strength Index. It enters long trades when price closes bullishly below both moving averages with an oversold RSI and a g

Strategy v5 SMC / ICT / price actionOscillators & momentum
Updated 2 months ago · None stated GitHub repository of FVG RSI Strategy (Translated)

COT Net Positions

by ChartsLector
41 stars

This indicator fetches and plots weekly Commitment of Traders (COT) net position data in a separate pane using TradingView's official COT library. It displays positioning breakdowns for selected futures markets under either Legacy or Financial (TFF) reporting

Indicator v6 Volume
Updated 3 days ago · None stated GitHub repository of COT Net Positions

NostalgiaForInfinityV2

by viktors1982
36 stars

NostalgiaForInfinityV2 is a multi-timeframe mean-reversion strategy derived from the popular Freqtrade algorithmic trading framework. It evaluates price behavior using dual Bollinger Bands, RSI, exponential moving averages, and ATR volatility metrics sampled a

Strategy v4 TrendOscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of NostalgiaForInfinityV2

Hedge Scalp - Open Profit/Loss

by nikita-doronin
30 stars

This indicator tracks and plots open profit and loss in a separate pane for a custom crypto hedge scalping strategy. It calculates an exponential moving average and establishes four long grid levels and one hedged short grid level at user-defined percentage di

Indicator v5 Moving averagesScalping
Updated 2 years ago · Custom licence GitHub repository of Hedge Scalp - Open Profit/Loss

Scalping Level PRO

by stupenkov
14 stars

Scalping Level PRO identifies key local and global horizontal support and resistance levels across cryptocurrency price charts. It draws level lines based on customizable time periods, calculates Normalized Average True Range (NATR) for volatility assessment,

Indicator v5 Support & resistanceVolatility & bands
Updated 3 years ago · None stated GitHub repository of Scalping Level PRO
13 stars

This strategy generates entry signals using pivot points and uses custom Curie moving average closing lines for exiting positions. It features risk management components including percentage-based stop loss, take profit, trailing stops, and break-even levels,

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BitLa PivotPoints A002
12 stars

This strategy enters long when a fast EMA crosses above a slow EMA and RSI, ADX, and volume all clear their thresholds. It sizes the order from a percentage of equity and an ATR stop distance, then sets a partial profit target at a multiple of that risk. After

Strategy v5 TrendMoving averages
Updated 4 months ago · None stated GitHub repository of BTC 4H Institutional Trend

NFI v6

by koradiyakaushal
12 stars

This Pine v4 study ports early NostalgiaForInfinity V6 conditions onto the price chart. It computes two Bollinger setups, several EMAs and SMAs, RSI, MFI, a percent SMA spread labeled EWO, a 14-period choppiness value, and short and longer volume medians. Fixe

Indicator v4 Moving averagesVolatility & bands
Updated 5 years ago · MIT GitHub repository of NFI v6

This indicator identifies and visualizes key support and resistance heatmap zones directly on the price chart. Using closed one-hour price data, it evaluates multi-scale pivots, liquidity clusters, relative volume, and round-number resonances to score structur

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · MIT GitHub repository of 加密货币1小时关键价位热力图 V2
10 stars

This indicator plots three sets of multi-timeframe moving averages on the price chart to assist with top-down macro trend analysis. It renders two configurable fast and slow moving averages on a 610-minute timeframe, a 21-period weekly ribbon comparing EMA and

Indicator v4 Moving averagesTrend Repaints
Updated 5 years ago · None stated GitHub repository of Magicks (e)mas Indicator

CCI Strategy - Eterna MCP

by EternaHybridExchange
9 stars

This strategy plots the Commodity Channel Index in a separate pane and enters long or short only when flat. A long opens when CCI crosses above the oversold level or rebounds from an extreme oversold zone; a short uses the opposite conditions. It closes the po

Strategy v5 Oscillators & momentum
Updated 7 months ago · MIT GitHub repository of CCI Strategy - Eterna MCP

Setup 9.2 - Larry Willians

by rodrigo-brito
9 stars

This strategy plots a 9-period exponential moving average and a 20-period simple moving average on the main price chart. It executes long entries based on the Larry Williams 9.2 setup when price breaks above a trigger bar high while the 9 EMA is rising above t

Strategy v4 TrendMoving averages
Updated 5 years ago · MIT GitHub repository of Setup 9.2 - Larry Willians
8 stars

This indicator detects contrarian inflection points and potential market reversals by combining sentiment, volume, and price action metrics directly on the price chart. It evaluates overbought and oversold conditions with the RSI and Stochastic oscillators, hi

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 weeks ago · None stated GitHub repository of GCR Inflection Point Scanner

This strategy plots a 90-period simple moving average from the daily and four-hour charts plus a daily session VWAP on the price chart. It enters long when VWAP is above the daily average and the four-hour VWAP crosses above its average, and short in the oppos

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

C41 Oscillator

by damianpitt
6 stars

The C41 Oscillator is a separate pane composite momentum indicator designed to companion the C41 Core Strategy. It combines a moving average trend filter with RSI and Williams %R overbought or oversold reversal conditions into a normalized 0 to 100 score. The

Indicator v6 Oscillators & momentumTrend
Updated 8 weeks ago · MIT GitHub repository of C41 Oscillator

This indicator calculates daily 90-period Bollinger Bands and plots them directly on a lower timeframe chart, such as M15. It queries higher-timeframe daily data using request.security and updates the upper, middle, and lower band values at the start of each n

Indicator v6 Volatility & bandsMoving averages Repaints
Updated 1 year ago · MIT GitHub repository of D1 Bollinger Bands (Period 90) on M15 (Forward Shifted)

Edge 60

by subos2008
6 stars

This strategy executes a classic Donchian-style breakout system on the price chart. It calculates the highest high and lowest low over a user-defined lookback period offset by one bar. A long position is opened when the price breaks above the previous period h

Strategy v5 BreakoutTrend
Updated 2 years ago · Custom licence GitHub repository of Edge 60

My Cipher v2

by Following-BTC
5 stars

My Cipher v2 plots a combined oscillator in a separate pane. It calculates a WaveTrend-style stochastic from Heikin Ashi prices, a volume-based money flow histogram, smoothed RSI, MACD-style lengths, and a Z-VWAP. Crosses mark WaveTrend turns; colored dots mar

Indicator v4 Oscillators & momentumDivergence
Updated 2 years ago · None stated GitHub repository of My Cipher v2

This strategy plots an eight-line exponential moving average ribbon spanning lengths 20 to 55 alongside a separate signal EMA directly on the price chart. It executes a long entry when price crosses above the signal EMA and enters short when price crosses belo

Strategy v4 TrendMoving averages
Updated 6 years ago · LGPL-3.0 GitHub repository of 35EMA Cross BuyAndSell Strategy + RIBBON [d3nv3r]

Antigravity Elite

by eltonaguiar
4 stars

Antigravity Elite is an overlay indicator that screens price with seven selectable components: Mercury Fear, Connors RSI-2, volatility-spike reversal, EMA stack, Supertrend, multi-sigma bands, and an optional funding proxy. Auto-Detect chooses one method, whil

Indicator v6 Oscillators & momentumMoving averages
Updated yesterday · None stated GitHub repository of Antigravity Elite

VolTargeting

by Robot-Wealth
4 stars

VolTargeting is a Pine Script v5 library of functions for volatility-based position sizing. ewmaVol estimates exponentially weighted annualised volatility from squared simple returns and scales it by the square root of 365 days for crypto or 252 days otherwise

Library v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of VolTargeting
4 stars

This strategy implements a dollar-cost averaging (DCA) trading framework using Volume-Weighted Moving Average (VWMA) values and price percentage changes. It enters an initial base order and places up to a configurable number of safety orders as price declines

Strategy v5 Moving averagesScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of SRP Strategy [ZCrypto]
3 stars

ATD+ST+T3 Kripto Tarama is a chart overlay indicator and cryptocurrency scanner that combines AlphaTrend, SuperTrend, and T3 moving average signals. It plots trend lines, fills, and buy/sell label shapes directly on the main price chart while providing configu

Indicator v5 TrendVolatility & bands
Updated yesterday · None stated GitHub repository of ATD+ST+T3 Kripto Tarama
3 stars

This long-only strategy draws on the price chart. It uses MACD with the 21- and 52-period exponential moving averages. While the signal line is above zero and the faster average is above the slower one, it marks a histogram pullback and enters long on a bullis

Strategy v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of MACD能量柱跳空策略
3 stars

Stella's RSI + EMA Crossover is a momentum strategy that plots exponential moving averages directly on the price chart. It generates long signals when RSI turns up from oversold levels while price trades above the fast EMA and optional 200-period trend filter

Strategy v6 TrendOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Stella's RSI + EMA Crossover
3 stars

This overlay indicator recreates short-setup conditions and audits their later outcomes on the price chart. It scores optional percent-surge, RSI overbought rollover, Bollinger exhaustion, volume spike, and EMA trend filters, then marks BASE or STRONG signals

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Hedge Short Setup Outcome Auditor

Pi Cycle Top Indicator

by EngineeredSuccess
3 stars

The Pi Cycle Top Indicator calculates a 111-period simple moving average alongside a scaled 350-period simple moving average to detect potential market cycle highs, historically utilized for Bitcoin analysis. It identifies crossovers between the moving average

Indicator v6 Moving averagesTrend
Updated 1 year ago · Custom licence GitHub repository of Pi Cycle Top Indicator

This indicator plots the Relative Strength Index and Money Flow Index together in a separate pane. It calculates both oscillators using user-defined lookback lengths and price source inputs. Horizontal reference lines mark standard levels at twenty, fifty, and

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · MIT GitHub repository of Relative Strength Index And Money Flow Index

The Bitcoin Wallet Transaction Volume indicator plots Bitcoin on-chain wallet transaction volume from Quandl BCHAIN/MWTRV in a separate pane. It calculates BWTV and colors volume bars lime when above EMA(periodo)*fator on up days or red on down days. An option

Indicator v4 VolumeMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of Bitcoin Wallet Transaction Volume (QUANDL:BCHAIN/MWTRV)
3 stars

Greeffer's Hedge Mode Study is an indicator that plots multiple EMAs along with Donchian channels directly on the price chart. It calculates EMAs from 8, 17 and 72 periods using higher timeframe data from 240 minutes. The script monitors price action against t

Indicator v5 Moving averagesSupport & resistance
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Hedge Mode Study
2 stars

Qtus SMC-Sniper System v2 is a comprehensive chart overlay indicator combining Smart Money Concepts (SMC), ICT elements, price action, and momentum filters. It identifies and plots Fair Value Gaps (FVG), Order Blocks, Breaker Blocks, Liquidity Zones, and Marke

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Qtus SMC-Sniper System v2
2 stars

SMC Toolkit detects core Smart Money Concepts on the price chart, including market structure breaks (BoS and CHoCH), Order Blocks, Fair Value Gaps (FVGs), and liquidity levels such as equal highs and lows. Active zones project forward and freeze or stop extend

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MPL-2.0 GitHub repository of SMC Toolkit [btankutt]
2 stars

Ghost Zone v9 GTI Signals v18 is an overlay technical indicator designed to replicate Ghost Trade Pro methodology. It calculates anchored Supertrend channels, previous weekly close levels, fair value gaps, and volume profile high-volume nodes. The script evalu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Ghost Zone v9 GTI Signals v18
2 stars

This strategy is written for Bitcoin and draws on the price chart. It combines moving averages, an SSL channel, ADX, RSI, stochastic, and a volume oscillator with high-volume thresholds to generate buy and sell signals. Users can limit testing to a date range

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TLC_STRATEGY_EMARSIADX for BTC
2 stars

Calculates higher timeframe Exponential Moving Averages, Average True Range, and optional RSI momentum filters to determine market regimes. Enters long positions during bullish regimes and allows scaling in through pyramiding as price advances by a user-define

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Bitcoin Regime Pyramid Strategy

Sassiz Ichimoku

by sassiz-root
2 stars

This overlay strategy plots a full Ichimoku set on the price chart: Tenkan, Kijun, displaced Chikou, and Senkou Spans A and B with a colored cloud. It marks a long when a confirmed Tenkan cross above Kijun occurs with price and Chikou above the lines and cloud

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · MIT GitHub repository of Sassiz Ichimoku
2 stars

This strategy implements an automated dollar-cost averaging (DCA) trading system inspired by Market Cipher indicators. It calculates WaveTrend oscillator crossovers and a volume-weighted Money Flow index to trigger initial base orders, supporting both long and

Strategy v4 Oscillators & momentumMean reversion
Updated 5 years ago · None stated GitHub repository of MC Strategy - Aggressive

Calm Kamaz

by Va3elina
1 stars

A one-minute strategy for perpetual crypto contracts that buys sharp drops. Entry needs a low RSI on three-minute candles, a price a set percentage below the hourly high, and a fall over two hours. Up to six larger buys can follow lower down a fixed ladder, an

Strategy v5 Mean reversionScalping Repaints
Updated yesterday · None stated GitHub repository of Calm Kamaz

Intraday Regime Follower

by nvolpe2007-cell
1 stars

A long and short trend strategy that compares a 50-bar and 200-bar EMA with price position and EMA slope. It goes long in an uptrend, short in a downtrend and flat otherwise. A hysteresis band must be broken before the state flips, and an ATR-versus-cost gate

Strategy v6 TrendMoving averages
Updated yesterday · None stated GitHub repository of Intraday Regime Follower
1 stars

This script is a deprecated compatibility stub for the Market Lab indicator. It intentionally plots no data on the price chart and emits no formulas, signals, or alerts. The purpose of this stub is to direct users toward the canonical Market Lab script. The as

Indicator v6 Screeners & dashboardsSupport & resistance
Updated yesterday · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab

RCCE v2.2

by cianfru
1 stars

A price-chart indicator that classifies each symbol into a market regime using a long-period Z-score, volatility and fast versus slow energy readings, with thresholds for blow-off, trim and capitulation. It sets the asset class automatically as BTC, ETH, altco

Indicator v6 TrendScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of RCCE v2.2

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