Pine Library · 7,612 open-source scripts

Free TradingView Indicators

Open-source Pine Script indicators that draw on your TradingView chart or in their own pane. Copy one and paste it into the Pine Editor.

Pine scripts7,612
Code shown here3,783open licence
Updated in a year5,283
No repaint flag6,673

About Indicators Scripts

An indicator reads price and volume and draws something from them: a line, a band, zones, labels or a coloured background. It never places trades. Some sit on the price chart (overlays), others in a pane below it, such as RSI or MACD.

Most indicators here come with their source code, so you can see exactly how each value is calculated. Read the Risk Notes on each page: an indicator that repaints can show signals on past bars that were never there in real time.

939 of these 7,612 scripts are marked Repaints, or read higher-timeframe data with lookahead on.

Before You Use One

Indicators: All

Chandelier Exit

by everget
947 stars

This indicator plots an ATR-based Chandelier Exit trailing stop on the price chart. It tracks a long stop under recent highs and a short stop above recent lows, then switches direction when price crosses the opposite stop. Buy and sell labels mark those flips.

Indicator v6 Volatility & bandsTrend Repaints
Updated 11 days ago · GPL-3.0 GitHub repository of Chandelier Exit
575 stars

The indicator plots ICT displacement candles on the price chart and can switch to retracement scanning. Displacement requires a move larger than a set share of the 14-bar average high-low range, lasting at least a chosen number of bars, with optional close, pr

Indicator v6 SMC / ICT / price actionCandlestick patterns
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Indicator
550 stars

Range Volume Change compares volume inside a chosen session window with the same window on the previous day and plots that change as a percentage. It accumulates volume during the window and, when enabled, volume outside it, drawing growing columns in a separa

Indicator v5 VolumeSessions & time Repaints
Updated 10 months ago · None stated GitHub repository of Range Volume Change

Beep Boop

by magic8bot
409 stars

This indicator calculates a modified MACD oscillator and signal line alongside a trend EMA filter, plotting the output as a stylized column histogram in a separate pane. Instead of plotting true MACD distance, it quantifies positive and negative histogram mome

Indicator v4 Oscillators & momentumTrend
Updated 3 years ago · MIT GitHub repository of Beep Boop
330 stars

This indicator plots five custom moving averages on the price chart, using EMA, SMA or WMA types with periods of 10, 55, 200, 20 and 100. It highlights multiple crossovers between the MAs including MA1-MA2, MA1-MA3, MA1-MA4, MA1-MA5, MA2-MA3, MA2-MA4, MA2-MA5,

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of 5 EMA SMA WMA + Cross [Alorse]

[TVT] VIX Squeeze

by namuan
318 stars

Calculates the standard deviation of VIX high prices across a configurable lookback period. It plots the resulting volatility metric in a separate pane alongside upper and lower threshold horizontal levels. When the standard deviation falls below the lower thr

Indicator v6 Volatility & bands
Updated 2 months ago · MIT GitHub repository of [TVT] VIX Squeeze

1833 Tracker

by Allen1212
303 stars

1833 Tracker is an overlay indicator that visualizes historical buy and sell transactions executed by ARK Invest ETFs for the stock on the main price chart. It displays trade dates using green buy and red sell labels positioned relative to price bars, indicati

Indicator v4
Updated 2 years ago · None stated GitHub repository of 1833 Tracker

iondv Signals

by akumidv
297 stars

This indicator plots external buy and sell signals directly on the price chart. It reads comma-separated timestamp strings for buy and sell events, checks whether the current chart matches the specified ticker symbol, and displays green upward triangles below

Indicator v4
Updated 11 days ago · GPL-3.0 GitHub repository of iondv Signals

All Candlestick Patterns

by shunjizhan
292 stars

All Candlestick Patterns detects and highlights a wide range of bullish, bearish, and neutral candlestick patterns directly on the price chart. It features optional trend filtering using either a 50-period simple moving average or a combination of 50-period an

Indicator v4 Candlestick patternsTrend
Updated 3 years ago · None stated GitHub repository of All Candlestick Patterns

NVDA Trend Ribbon

by longsurf-ai
280 stars

This indicator plots three exponential moving averages and ATR volatility envelopes on the price chart. It compares the fast and slow EMAs to shade a trend ribbon and marks confirmed upward and downward crossovers with triangle labels. Settings change the thre

Indicator v6 TrendMoving averages
Updated 2 days ago · MIT GitHub repository of NVDA Trend Ribbon
257 stars

This indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES
228 stars

Confluence of Alerts is an overlay indicator that combines up to three user-defined conditions on the price chart. Each condition watches a price source for crossing, crossing up or down, greater than, less than, rising, or falling events against a numeric val

Indicator v6
Updated 3 months ago · None stated GitHub repository of [TradersPost] Confluence of Alerts

Body Mass Indicator

by harryguiacorn
220 stars

The Body Mass Indicator highlights candles with exceptionally large body ranges relative to recent price movement. It calculates the absolute distance between open and close prices. When enabled, it identifies bars where the body range achieves a new high over

Indicator v5 Volatility & bandsCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Body Mass Indicator

60K均線

by TaichiS
219 stars

This multi-timeframe indicator calculates and plots 20-period and 60-period simple moving averages from the 60-minute timeframe directly onto the price chart. The 20-period average displays as a green line, while the 60-period average appears in blue. It serve

Indicator v4 Moving averagesTrend Repaints
Updated 5 years ago · None stated GitHub repository of 60K均線
200 stars

Storm Gauge calculates annualized realized volatility and compares it against a historical percentile lookback window to classify market volatility regimes into calm, normal, or storm conditions. Based on a target volatility input, it calculates dynamic positi

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 3 months ago · MIT GitHub repository of Storm Gauge — Vol Regime + Position Size

Open Source Fractal

by cantolab
183 stars

This indicator implements the Fractal Model concept to plot market structure shifts, liquidity sweeps, and Change in State of Delivery (CISD) levels. It overlays custom higher-timeframe candle previews, open prices, and time markers directly on the price chart

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MIT GitHub repository of Open Source Fractal

Swing Failure Signals

by Ganador1
154 stars

This indicator calculates pivot highs and pivot lows to detect liquidity sweeps and Swing Failure Patterns. It identifies when price breaks past recent key swing highs or lows within a configurable historical window, then looks for a quick reversal or change i

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Apache-2.0 GitHub repository of Swing Failure Signals
147 stars

This indicator combines Bollinger Bands, RSI, Stochastic RSI, and volume spike detection to identify mean-reversion conditions during range-bound market regimes. It calculates Bollinger Band width to identify low-volatility states and triggers buy or sell sign

Indicator v5 Oscillators & momentumVolatility & bands
Updated 6 weeks ago · MIT GitHub repository of BTC Dec 2025 — Range + Gamma Flush
145 stars

TriexDev - SuperBuySellTrend is an ATR-based trend indicator that plots dynamic trailing bands and trend direction directly on the main price chart. It calculates trend levels using customizable ATR multipliers to identify trend direction and potential reversa

Indicator v5 TrendVolatility & bands
Updated 2 years ago · Custom licence GitHub repository of TriexDev - SuperBuySellTrend

KamaFama

by Mastaaa1987
141 stars

KamaFama is an indicator that translates a Freqtrade trading strategy into Pine Script for visualization. It combines Kaufman Adaptive Moving Average (KAMA), MAMA/FAMA calculations derived via Hilbert Transform, Williams %R, and correlation trend filters to ev

Indicator v6 Moving averagesOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of KamaFama

Unicorn Model

by fxraptor-alpha
138 stars

The Unicorn Model indicator identifies liquidity sweeps across multiple higher timeframes and highlights breaker blocks on the price chart. When Unicorn Mode is enabled, it filters setups where breaker blocks overlap with Fair Value Gaps. It draws breaker boxe

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · Custom licence GitHub repository of Unicorn Model

Tester

by rapmd73
123 stars

Generates simulated order signals and tracks dollar-cost averaging (DCA) cycles to test webhook execution software. It marks buy signals on bearish candles and sell signals on bullish candles, with optional DCA logic that requires lower consecutive entries and

Indicator v5 Candlestick patterns
Updated 2 months ago · LGPL-2.1 GitHub repository of Tester

8zz反指標v2

by hansai-art
121 stars

The 8zz Contrarian Indicator plots reverse sentiment trading signals directly on the price chart based on tracked retail post activity. It generates bullish signals during retail panic and bearish signals during market euphoria. The indicator features adjustab

Indicator v6 Moving averagesOscillators & momentum
Updated 3 months ago · None stated GitHub repository of 8zz反指標v2

Chop and Explode

by capissimo
114 stars

This indicator measures market consolidation and breakout phases by computing a scaled Relative Strength Index (RSI) on normalized price data. It identifies chop zones when the RSI oscillates between 40 and 60, highlighting tight consolidation between 45 and 5

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chop and Explode

Aberration (ABERR)

by mihakralj
99 stars

The Aberration indicator calculates channel bands based on the absolute deviation of a price source from a central moving average. Traders can choose between SMA, EMA, WMA, RMA, or HMA for the baseline, then apply a multiplier to the smoothed deviation to form

Indicator v6 Volatility & bandsMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Aberration (ABERR)
92 stars

This indicator plots horizontal liquidation heatlines directly on the price chart, highlighting estimated Bitcoin liquidation levels for long and short positions. It renders color-coded lines and descriptive labels showing position sizes, leverage, and distanc

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Liq Lines — BTC

Strat Assistant

by rickyzcarroll
90 stars

The Strat Assistant indicator identifies candlestick patterns from the STRAT methodology on the price chart. It detects inside bars, 2-candle directional bars, 3-candle outside bars, and sequences like 212 and 222 for continuations and reversals. Shapes such a

Indicator v4 Candlestick patternsSupport & resistance
Updated 5 years ago · None stated GitHub repository of Strat Assistant

Machine Learning: Lorentzian Classification

by artificial-intelligence-edge
75 stars

An overlay indicator that applies a k-nearest-neighbors machine learning classifier using Lorentzian distance to predict price movement. It evaluates historical market features, such as RSI, WaveTrend, CCI, and ADX, to identify similar price-time patterns and

Indicator v6 AI / machine learningOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Machine Learning: Lorentzian Classification

D/W/M VWAPs

by cryptorife
75 stars

This indicator plots daily, weekly, and monthly volume-weighted average prices on the price chart, using a selectable source that defaults to hlc3. For each enabled period it also draws two standard-deviation bands around the VWAP, with multipliers defaulting

Indicator v4 VolumeVolatility & bands
Updated 3 years ago · GPL-3.0 GitHub repository of D/W/M VWAPs

Signal Strategy 15m

by tripolskypetr
72 stars

This indicator generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem

Indicator v5 TrendMoving averages
Updated 4 days ago · MIT GitHub repository of Signal Strategy 15m

OTT Test

by ysdede
72 stars

OTT Test is an indicator designed to map custom price series or test values directly onto the price chart. The script evaluates specific date and hour timestamps from October 2021 to assign hardcoded numeric values to a synthetic series variable. It serves as

Indicator v4
Updated 4 years ago · CC0-1.0 GitHub repository of OTT Test

This indicator plots the 20-period RSI on the chart along with a horizontal line at 50. It detects crossovers above 50 for long signals and crossunders below 50 for short signals. Entries are controlled by two input booleans allowing longs and shorts separatel

Indicator v5 Oscillators & momentum
Updated 5 days ago · GPL-3.0 GitHub repository of alertcondition() on multiple conditions

Forex Sessions

by PythonForForex
64 stars

Forex Sessions highlights specific global trading hours directly on the main price chart using background colors. It tracks three major market sessions using predefined time ranges: Tokyo, London, and New York. Active session hours are distinguished by distinc

Indicator v5 Sessions & time
Updated 4 years ago · None stated GitHub repository of Forex Sessions

Session Edge Probabilities

by TraderOracle
61 stars

Session Edge Probabilities tracks eight session-based trading rules using statistical probabilities evaluated on historical chart data. It utilizes a fixed calculation timeframe to evaluate opening ranges, midnight levels, afternoon reversal windows, and price

Indicator v6 Sessions & timeScreeners & dashboards
Updated 10 days ago · None stated GitHub repository of Session Edge Probabilities

Minimal Fill Examples

by frizLabz-FFriZz
59 stars

Minimal Fill Examples is an educational reference script demonstrating five basic implementations of the fill function in Pine Script. It calculates simple moving averages and plots price lines alongside horizontal reference levels. The script showcases variou

Indicator v6 Moving averagesSupport & resistance
Updated 1 year ago · MIT GitHub repository of Minimal Fill Examples

Momentum Rider Alerts

by greenpeas007
58 stars

Momentum Rider Alerts is an indicator overlay designed to generate momentum signals on the price chart. It visualizes price momentum dynamics and triggers real-time alerts when momentum conditions are met. Users can apply this tool across various markets to id

Indicator v6 Oscillators & momentumTrend
Updated 4 months ago · Custom licence GitHub repository of Momentum Rider Alerts

Calculates higher-timeframe volume profiles to identify Value Area High (VAH), Value Area Low (VAL), and Point of Control (POC) levels directly on the price chart. It flags potential reversal setups and Change in State of Delivery (CISD) patterns relative to v

Indicator v6 VolumeSupport & resistance
Updated 2 months ago · None stated GitHub repository of CandelaCharts - Value Area Reversals
56 stars

Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas

Indicator v5 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Double Screened Decision
55 stars

This Pine Script indicator overlays institutional liquidity levels on the price chart. It identifies order block levels using pivot highs and lows, then draws mean reversion lines from the 20 and 50 period simple moving averages, a volatility range midpoint pr

Indicator v6 Support & resistanceSMC / ICT / price action Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of AAPL Institutional Liquidity Grid
53 stars

Apex Trend & Liquidity Master calculates a trend cloud using customizable moving averages expanded by a volatility multiplier directly on the main price chart. It identifies dynamic support and resistance liquidity zones from swing high and low pivots, extendi

Indicator v6 TrendSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Apex Trend & Liquidity Master

Copilot

by milocaetano
48 stars

Copilot is an order flow range-reversal indicator designed to overlay trading setups directly on the price chart. It evaluates four criteria: market context (sideways vs trending regime based on ATR height), structure (double top or double bottom retests), abs

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Copilot

Aberration (ABBER)

by mihakralj
47 stars

This indicator plots Aberration bands on the price chart around a central moving average. It measures the absolute deviation of the source from that average, smooths the deviation with a simple moving average, and offsets the center by a multiplier to form upp

Indicator v6 Moving averagesVolatility & bands
Updated 8 months ago · MIT GitHub repository of Aberration (ABBER)

Profit Maximizer (PMax)

by oguzhandilber
47 stars

Profit Maximizer (PMax) is a trend-following overlay indicator that combines moving averages with an ATR-based trailing stop mechanism. It calculates a selected moving average—supporting types such as EMA, SMA, ZLEMA, VAR, and TSF—and constructs a trailing ban

Indicator v4 TrendMoving averages
Updated 5 years ago · None stated GitHub repository of Profit Maximizer (PMax)

4H Candle Curves

by TamaraKGreen
46 stars

4H Candle Curves highlights 4-hour trading sessions based on New York time by overlaying customizable colored boxes directly on the main price chart. It divides 4-hour sessions with quarter separator lines at one-hour intervals and places name labels at the mi

Indicator v6 Sessions & timeScreeners & dashboards
Updated 7 weeks ago · None stated GitHub repository of 4H Candle Curves
46 stars

This overlay indicator plots a SuperTrend using a 10-period ATR with a multiplier of 3, drawing up and down stop lines and a faint trend fill on the price chart. It compares a 9-period EMA with an 18-period EMA and a 12/26/9 MACD against its signal, and it req

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of SuperTrend + MACD + EMA

Trap Longs

by ProfHamzaNaveed
43 stars

This indicator tracks and visualises cryptocurrency derivatives positioning data across major perpetual exchanges, including Binance, BitMEX, and Kraken. It calculates net longs, net shorts, delta, or position ratios and plots them in a separate pane as candle

Indicator v5 VolumeDivergence
Updated 9 months ago · None stated GitHub repository of Trap Longs

More Pine Script Categories

Browse the whole Pine Library

Related on ForexR

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.

Trade Your Charts With a Regulated Broker

Compare regulated brokers on platforms, spreads, minimum deposit and leverage.

Compare brokers