Pine Library · 1,372 open-source scripts

Free Crypto Pine Scripts for TradingView (page 10)

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

Chaikin Oscillator - Eterna MCP

by EternaHybridExchange
9 stars

This strategy calculates the Chaikin Oscillator by taking the difference between fast and slow exponential moving averages of the Accumulation/Distribution line. It generates long and short entries when the oscillator crosses the signal threshold with directio

Strategy v5 Oscillators & momentumVolume
Updated 7 months ago · MIT GitHub repository of Chaikin Oscillator - Eterna MCP

Capital41 ADX Filter

by damianpitt
6 stars

This indicator calculates the Average Directional Index alongside positive and negative directional movement lines to assess market trend strength and direction. Displayed in a separate pane, it plots the ADX line, directional lines, and horizontal threshold l

Indicator v6 Trend
Updated 8 weeks ago · MIT GitHub repository of Capital41 ADX Filter

This indicator calculates 1-hour Bollinger Bands and overlays them directly on lower timeframe price charts, such as M15. It fetches hourly middle, upper, and lower band values and locks them until the next hourly bar opens to provide higher-timeframe volatili

Indicator v6 Volatility & bandsSupport & resistance Repaints
Updated 1 year ago · MIT GitHub repository of H1 Bollinger Bands on M15 (Forward Shifted)

Edge 60

by subos2008
6 stars

Edge 60 is a breakout indicator that identifies new extremes over a configurable lookback period. It calculates and plots the highest high and lowest low of the preceding bars on the price chart. When the current bar makes a new high above the lookback channel

Indicator v5 BreakoutSupport & resistance
Updated 2 years ago · Custom licence GitHub repository of Edge 60

This strategy calculates and plots up to four Simple Moving Averages (SMAs) and four Exponential Moving Averages (EMAs) directly on the price chart. It generates trading signals based on price crossing over or under a selected baseline moving average, which ca

Strategy v4 TrendMoving averages
Updated 6 years ago · LGPL-3.0 GitHub repository of 4 SMA + 4 EMA + Buy&Sell Cross (EMA or SMA) Strategy [d3nv3r]
4 stars

This indicator plots directional trade signals, ATR-based target and stop-loss boxes, and SuperSmoother reversal bands directly on the price chart. It evaluates market conditions across selectable technical strategies, displaying confidence scores alongside an

Indicator v6 Screeners & dashboardsTrend Repaints
Updated yesterday · None stated GitHub repository of Elton's Predictions Decision Engine

Crypto Cap

by InNoobWeTrust
4 stars

Crypto Cap estimates and plots the individual market capitalization of a cryptocurrency asset in a separate pane. It queries the aggregate cryptocurrency market cap index along with the specific base currency dominance percentage, multiplying them together to

Indicator v6
Updated yesterday · None stated GitHub repository of Crypto Cap
4 stars

The script is a Pine Script v4 strategy that generates buy and sell signals from crossovers of fast EMA (period 5) and slow EMA (period 10). It overlays signals directly on the price chart for cryptocurrency trading. Additional filters check for hammer candles

Strategy v4 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of EMA Cross Crypto Strategy

Stella's Smart Money Proxy

by stella-entry
3 stars

This indicator detects institutional or large-scale market activity using candle body size and trading volume. It compares current candle bodies against a 20-period simple moving average and checks for volume spikes above an adjustable moving average filter. I

Indicator v6 VolumeCandlestick patterns
Updated 8 months ago · MIT GitHub repository of Stella's Smart Money Proxy

Spot Buy Marker + PnL

by shitcoding
3 stars

The Spot Buy Marker + PnL indicator tracks manual spot trading positions directly on the price chart. Users specify a buy price, entry timestamp, and either coin quantity or total USD investment. The script computes real-time profit and loss as a percentage of

Indicator v6 Support & resistanceScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of Spot Buy Marker + PnL

Scalp Agiota - By H7

by leocairos
3 stars

The Scalp Agiota strategy calculates RSI and MFI values to identify overbought and oversold conditions for cryptocurrency scalping trades. It plots upward triangles on the price chart below the bar when RSI drops to 20 or lower and MFI to 10 or lower, signalin

Strategy v5 Oscillators & momentumScalping Repaints
Updated 2 years ago · MIT GitHub repository of Scalp Agiota - By H7

Cross SMA - DataCrypto Analytics

by datacrypto-analytics
3 stars

This overlay indicator plots a 30-period and a 100-period simple moving average of close on the price chart and fills the space between them. It marks a sell label when the slower average crosses above the faster one and a buy label when it crosses below, and

Indicator v4 Moving averages
Updated 3 years ago · Apache-2.0 GitHub repository of Cross SMA - DataCrypto Analytics
3 stars

Plots Donchian Channels and identifies trading setups based on price testing the channel extremes during high volume spikes. In long mode, it places limit buy orders when the low touches the lower Donchian band with volume exceeding a volume moving average mul

Strategy v4 Mean reversionVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Long Strategy

Alertatron-Link Demabot 2H

by danielvm-git
2 stars

This strategy calculates up to three Double Exponential Moving Averages (DEMA) to generate trading signals based on moving average crossovers and crossunders. When configured, an optional third DEMA acts as a directional trend filter. It opens positions upon c

Strategy v4 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of Alertatron-Link Demabot 2H

Momentum Breakout Strategy

by adminalphabots
2 stars

This strategy plots on the price chart and enters when price closes beyond the prior lookback high or low and also beyond a shorter confirmation range. Long, short, or both directions can be enabled. Optional filters require volume above a volume average or a

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of Momentum Breakout Strategy

SassizStocEMA-Lazy Bear

by sassiz-root
2 stars

SassizStocEMA-Lazy Bear is a Pine Script strategy that plots on the price chart and combines a stochastic oscillator with near and far exponential moving averages. It is aimed at crypto markets. Long and short directions can be enabled separately, and crosses

Strategy v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of SassizStocEMA-Lazy Bear
1 stars

A long-or-cash strategy using the same entry rule as a plain trend filter: the close must be above a 100-bar simple moving average and above the close 20 bars earlier. Position size scales with momentum strength, from a minimum fraction of equity to a maximum

Strategy v6 TrendOscillators & momentum
1 stars

Market Lab is a static market workbench for inspecting OHLCV paths, cost anchors, volatility bands, formula research outputs, and candidate order plans in one compact interface. It features three-panel layout with instrument navigation, main chart, and facts a

Indicator v6 Support & resistanceVolatility & bands
Updated yesterday · AGPL-3.0 GitHub repository of DEPRECATED - use canonical Market Lab

A SuperTrend breakout strategy for crypto perpetual futures. An auto-adapt option picks the DEMA period, ADX threshold and take-profit multiple based on whether the symbol is Bitcoin or Ethereum, or manual values can be used. Position size comes from a fixed o

Strategy v5 BreakoutTrend Repaints
Updated 3 days ago · MIT GitHub repository of ST Breakout V10.0 Multi-Asset Strategy

A Pine v6 strategy for crypto charts that evaluates RSI, a trend moving average with higher timeframe filter, Fibonacci Bollinger Bands and Ichimoku in a fixed order. Each indicator can be switched on for visuals, for backtesting or both, and entry and exit si

Strategy v6 Oscillators & momentumTrend
Updated 11 days ago · MIT GitHub repository of Crypto TA Pro Phase 1 Weighted Indicators

Master Trading Strategy

by MuhammadMuhamid
1 stars

A heavily modular long strategy for crypto spot pairs in which every filter and exit has its own switch. Entries centre on pivot-based support and resistance across several timeframes with retest confirmation, plus optional moving average, volume, ATR spike, s

Strategy v6 Support & resistanceTrend
Updated 12 days ago · None stated GitHub repository of Master Trading Strategy

Ultimate 5 EMA Quant Engine

by Pr-ashant-pawar
1 stars

A Pine v6 indicator that plots a 5-period EMA and runs a multi-step short-setup tracker on the price chart using data from a chosen timeframe. Signals are filtered by volume against its average and an RSI threshold, then graded A to D. Each grade has its own t

Indicator v6 TrendBreakout
Updated 7 weeks ago · None stated GitHub repository of Ultimate 5 EMA Quant Engine

Stock Stats

by peterdmv
1 stars

Stock Stats displays a customizable single-row chip dashboard directly on the price chart. It presents key fundamental and technical metrics including market capitalization with size categorization, shares float, ADR%, ATR, low-of-day distance, 52-week high, V

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 2 months ago · MPL-2.0 GitHub repository of Stock Stats
1 stars

This indicator plots Solana options Max Pain strike levels from Deribit directly on the price chart. It renders horizontal dashed lines extending from the current bar to each contract's settlement time at 08:00 UTC. Line thickness dynamically scales with total

Indicator v6 Support & resistance
Updated 3 months ago · MIT GitHub repository of SOL Max Pain (Deribit)

Fusion Cipher SR Scalper

by shahzaib-574
1 stars

This indicator plots intraday support and resistance tools on the main price chart. It calculates a daily-reset VWAP with ATR bands, daily high/low/mid levels, previous day extremes, and pivot-based support/resistance zones. It also identifies long or short da

Indicator v6 Support & resistanceScalping
Updated 3 months ago · None stated GitHub repository of Fusion Cipher SR Scalper
1 stars

An all-in-one Smart Money Concepts indicator that identifies market structure breaks and higher-timeframe bias. It calculates Break of Structure (BOS) and Change of Character (CHoCH) using pivot swing detection, auto-draws Supply and Demand zones based on ATR

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · Custom licence GitHub repository of Market Structure & Daily Bias SD Pro v2

Crypto AMT Toolkit v2

by latifangren
1 stars

This indicator provides a comprehensive crypto trading toolkit on TradingView. It plots Volume Profile boxes using customizable lookback bars, row count, and value area percentage. VWAP lines with standard deviation bands are drawn alongside optional bands. Or

Indicator v6 VolumeVolatility & bands
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v2

Trend Break Indicator

by Chovy-King
1 stars

An indicator version of a trend breakout strategy with BTC, gold and custom presets. It plots 20 and 60 EMAs and marks a triangle when a strong candle breaks the latest swing in the direction of the trend, after filters for higher-timeframe agreement, volume,

Indicator v6 BreakoutTrend
Updated 6 months ago · None stated GitHub repository of Trend Break Indicator

ICT v4-weinkya Strategy

by tndg16-bot
1 stars

This strategy implements an Inner Circle Trader (ICT) framework by identifying order blocks, fair value gaps, liquidity pools, and optimal trade entry (OTE) zones. It computes a confluence score requiring a user-defined minimum threshold alongside 200 EMA and

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya Strategy

Crypto Harami Pattern Detector

by gabriel-klettur
1 stars

Crypto Harami Pattern Detector identifies bullish and bearish Harami and Harami Cross candlestick patterns on the price chart. It checks multi-candle body and range relationships to distinguish standard Harami formations from Harami Cross variants. The script

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Crypto Harami Pattern Detector

BTC ATH Golden Cycle

by ymlee1104
1 stars

This strategy plots a Bitcoin all-time-high cycle model on the price chart. It starts from a chosen date and can show an Ichimoku cloud, a fast and slow geometric mean, and supply and demand boxes. Drop percentage, rise percentage, and a weight set the cycle l

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

An indicator that detects a volatility squeeze when ATR falls to a low percentile of its recent range, tracks the high and low of the squeeze, and signals a long or short when price closes beyond that range as the squeeze ends. It plots EMA lines with a ribbon

Indicator v6 BreakoutVolatility & bands
Updated 7 months ago · None stated GitHub repository of V19 Volatility Squeeze Breakout

A long and short strategy built on a custom momentum index that combines price velocity, log volume and a standardised Bollinger Band width. A trade needs a recent squeeze in band width, the index breaking beyond its own two-deviation band, and price on the co

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of Thermodynamic Volume-Price Resonance (TVPR)
1 stars

The Squeeze Momentum BB Enhanced indicator computes a momentum oscillator from close prices using linear regression or SMA. It identifies squeezes between Bollinger Bands and Keltner Channels to flag potential breakouts. Plots include colored momentum lines, f

Indicator v5 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of Squeeze Momentum BB Enhanced

Lab-Doi-02

by theteelek
1 stars

An experimental strategy lab script that tracks a simulated long position within a date window using a daily EMA 12 and EMA 26 cross as the trend filter. It opens the simulated long when the fast average is above the slow one on a confirmed bar, and closes it

Strategy v6 Trend
Updated 1 year ago · None stated GitHub repository of Lab-Doi-02

SOLBTC MTPI

by Mikelkulla
1 stars

SOLBTC MTPI is a Pine Script strategy designed to gauge whether Solana is outperforming Bitcoin to determine market allocation. It calculates a composite trend signal using liquidity-weighted moving averages with Supertrend logic, DEMA filters, and normalized

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

BTC Bot

by zhuzp98
1 stars

A long-only strategy for Bitcoin-style charts that combines an RSI-based momentum signal with a trend filter using one or two simple moving averages. It buys when the smoothed RSI signal crosses above zero while price is in an uptrend, sizes positions from a s

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of BTC Bot

The Pirate Compass

by yankeexlr
1 stars

An overlay for crypto, stocks and commodities that runs two parallel sets of the same staged logic, each with its own RSI length and 21, 50, 100 and 300-period simple moving averages. The logic flags bearish candles with RSI below 20, tracks crosses above the

Indicator v5 Mean reversionOscillators & momentum
Updated 2 years ago · None stated GitHub repository of The Pirate Compass
1 stars

A long-only strategy designed for the 4-hour chart. It averages open, high, low and close, smooths that with a mid-term SMA and builds a relative strength line from the gap between price and the SMA. When the slope of that line turns positive it places a limit

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · GPL-3.0 GitHub repository of Relative Strength Strategy (4h)
1 stars

This is a minimal test script for an alert-driven trading bot. A single Long input chooses the direction, and on every bar the script fires an alert with a JSON message for a market buy or a market sell of a fixed small Bitcoin amount. It calculates no indicat

Indicator v4
Updated 4 years ago · MIT GitHub repository of Test Azure Functions
1 stars

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

BTC Scalp v1 Tests

by iamrichardD
57 stars

This script serves as a unit testing suite implemented in Pine Script to validate components of a 5-minute Bitcoin scalping strategy. It establishes a custom test runner framework using user-defined types to record and evaluate mock modules. Tested modules inc

Strategy v6 Scalping
Updated 1 year ago · Apache-2.0 GitHub repository of BTC Scalp v1 Tests

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