Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 119)

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

Indicators: All

Variable Declarations

by Web3Degenerate
2 stars

Educational script demonstrating how to declare and persist variables using the var keyword in Pine Script. It calculates a running count of bullish candles where the close exceeds the open and plots the cumulative counter in a separate pane. It marks each bul

Indicator v5
Updated 2 years ago · None stated GitHub repository of Variable Declarations

P_syn_matrix_map

by GammaExpansion
1 stars

P_syn_matrix_map is an indicator script that demonstrates and validates matrix and map data structures in Pine Script v6. It initializes a two-by-two floating-point matrix, modifies its elements, transposes it, and computes matrix sums and averages. Additional

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_syn_matrix_map

DEPV2 Debug S48

by YuceSezar89
1 stars

DEPV2 Debug S48 is a multi-symbol crypto indicator that monitors up to 20 cryptocurrency pairs across four analytical categories: trend, momentum, volatility, and volume. It evaluates trading conditions using several signal modes, including single-dimension tr

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug S48

EMA Trend Ribbon

by vedkanani123
1 stars

A simple price-chart indicator that plots five exponential moving averages, defaulting to 8, 13, 21, 34 and 55 periods, as a ribbon with a shaded fill between the fastest and slowest. The ribbon is green when the averages are stacked in bullish order, red when

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of EMA Trend Ribbon

First Bar Fable v3

by nishpa800
1 stars

A composite detection indicator that marks fifteen or more toggleable signals on the price chart, each labelled S1 onward. They include relative volume setups combined with displacement and a pullback-and-jump pattern, plus named patterns such as Typhoon, Musa

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of First Bar Fable v3
1 stars

This early indicator uses the Goertzel algorithm to estimate a dominant cycle from the chosen price source, then projects the cycle forward for a set number of periods. Projected prices and dates are shown in a dashboard table on the price chart. The cycle len

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Price and Date Forecast V1

Var Keyword Example

by ivansoft
1 stars

Teaching script that shows how the var keyword keeps values between bars. It plots the first bar's close, the close of the first green bar and the close of the tenth green bar on the price chart. The comments explain which value each variable holds. It has no

Indicator v6
Updated 1 year ago · None stated GitHub repository of Var Keyword Example
1 stars

An older Pine version 4 indicator that implements the Bitcoin stock to flow model. It requests total coins mined and the Bitcoin price from external blockchain data series, derives yearly flow from monthly, weekly or daily bars, and computes a model value and

Indicator v4
Updated 1 year ago · None stated GitHub repository of Bitcoin Stock to Flow

Trimean

by everget
947 stars

The Trimean indicator calculates Tukey's trimean measure of central tendency over a user-defined lookback period. It determines the 25th percentile, median, and 75th percentile of the selected source series to output a robust, outlier-resistant smoothed curve

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Trimean

MACD

by Alorse
330 stars

This indicator calculates and plots the standard Moving Average Convergence Divergence oscillator in a separate pane. It computes the difference between a fast and slow moving average, derives a signal line through smoothing, and plots a histogram representing

Indicator v4 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of MACD

CAT-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell events for Caterpillar (CAT) on the price chart. It places green buy labels below bars and red sell labels above bars at fixed calendar dates, with text that records the trade side and how many ARK ETF

Indicator v4
Updated 2 years ago · None stated GitHub repository of CAT-tracker
114 stars

This indicator projects a simple-mean forecast on the price chart. It estimates the forecast as the previous price plus the simple moving average of price change over a lookback window. A solid blue line is drawn from the current bar time and close toward a fu

Indicator v4 Moving averages
Updated 1 year ago · None stated GitHub repository of Forecasting Simple Mean Method

This indicator calculates John Ehlers' 2-Pole Butterworth Filter, an infinite impulse response (IIR) second-order lowpass filter designed to remove high-frequency market noise with minimal phase lag. It processes price data using trigonometric functions and hi

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers 2-Pole Butterworth Filter (BUTTER2)

Colored fill

by be-thomas
65 stars

This indicator plots two simple moving averages of close, one over five bars and one over twenty bars, in a separate pane. It shades the area between the two plots green when the shorter average is above the longer average and red when it is below. There are n

Indicator v4 Moving averagesTrend
Updated 6 days ago · GPL-3.0 GitHub repository of Colored fill
47 stars

This indicator tracks and projects session-based price retracement levels directly onto the main price chart. Users can configure up to five distinct time sessions alongside specific evaluation windows to measure price retracement targets calculated from open

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Time Based Retracement - Stats

LRSI: Laguerre RSI

by mihakralj
47 stars

This indicator calculates a Laguerre RSI oscillator using four cascaded Laguerre filter stages applied to closing prices. It measures momentum with reduced time lag compared to a traditional RSI. The script plots the bounded values in a separate pane alongside

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of LRSI: Laguerre RSI

Harami Cross - Bearish

by TWODS-CAPITAL
37 stars

This indicator identifies the bearish Harami Cross candlestick pattern on the price chart. The pattern consists of a long bullish candle followed by a Doji whose entire high-to-low range is contained within the real body of the preceding candle. Trend directio

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Harami Cross - Bearish

Oscillator Topology analyzes the structural shape of a WaveTrend oscillator rather than just its price level or crossover. It evaluates curvature, peak width, asymmetry, and flatness around pivot extremes to categorize oscillator movements into V-Spikes, Round

Indicator v6 Oscillators & momentumScreeners & dashboards
Updated 3 days ago · MIT GitHub repository of Oscillator Topology [WavesUnchained]
2 stars

This indicator identifies and visualizes swing liquidity levels directly on the main price chart. It detects pivot highs and lows, filtering them according to normalized volume strength relative to recent standard deviation. Active liquidity levels are drawn a

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Liquidity Zones [BigBeluga]

Quadruple EMA (QEMA)

by mushroom-men-Trading
2 stars

The Quadruple Exponential Moving Average (QEMA) indicator calculates a smoothed, low-lag moving average by cascading four exponential moving average stages with dynamic warmup compensation. It plots directly on the price chart as an overlay line. Users can adj

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Quadruple EMA (QEMA)

Volume (RVOL)

by Web3Degenerate
2 stars

This indicator calculates relative volume (RVOL) by dividing current bar volume by its simple moving average. It plots standard volume columns in a separate pane along with the volume moving average and an RVOL trigger threshold line. Volume columns are highli

Indicator v5 Volume
Updated 2 years ago · None stated GitHub repository of Volume (RVOL)

P_syn_operators

by GammaExpansion
1 stars

The P_syn_operators indicator, written in Pine Script version 6, calculates and plots a series of values based on arithmetic expressions, logical operators, ternary operators, and string functions. Variables a through j are defined with operations including ad

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_syn_operators

An overlay indicator that looks for the Wyckoff upthrust after distribution pattern. It requires a prior advance measured in ATR, detects a trading range with a minimum duration and boundary tests, and flags a terminal breakout attempt that fails back inside w

Indicator v6 BreakoutVolume
Updated 8 days ago · GPL-3.0 GitHub repository of Upthrust After Distribution + Entry Alerts

DEPV2 DEBUG S5

by YuceSezar89
1 stars

DEPV2 DEBUG S5 monitors a multi-ticker basket of up to twenty cryptocurrency pairs across four analytical dimensions: trend, momentum, volatility, and volume. It evaluates market signals using customizable modes, including individual method triggers, simultane

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S5

Cylinder

by morindok
1 stars

The Cylinder indicator projects a geometric 3D cylinder shape directly onto the price chart using Pine Script polylines. The user defines two anchor points on the chart via interactive price and time selection inputs. The script calculates relative time and pr

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Cylinder

Evasive SuperTrend

by vedkanani123
1 stars

A SuperTrend variant for the price chart based on ATR bands around the midpoint of each bar. When price comes closer to the active band than a noise threshold measured in ATRs, the band is pushed away by an expansion amount instead of tightening, which reduces

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Evasive SuperTrend

First Bar Fable v5

by nishpa800
1 stars

A larger release of a composite detection indicator with many toggleable numbered signals drawn on the price chart. They cover relative volume setups with displacement and a pullback-and-jump pattern, plus named patterns such as Typhoon, Musashi, Whale, Dynami

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of First Bar Fable v5
1 stars

This indicator combines three dominant cycle lengths, pivot highs and lows, and candlestick pattern matching to project future turning prices and dates. Bollinger Band, Keltner Channel and volatility lengths are also available as inputs. Projected values appea

Indicator v5 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Price and Date Forecast V3

Varip With Types

by ivansoft
1 stars

Teaching script on the varip keyword inside a user-defined type. A bar counter increments once per bar and a tick counter increments on every real-time update, and both are plotted in a separate pane. Because the tick counter changes with each update on the li

Indicator v6 Repaints
Updated 1 year ago · None stated GitHub repository of Varip With Types

Stocks Buy The Dip

by tseitz
1 stars

An indicator on the price chart that highlights a possible dip entry by shading the background green. The condition is a MACD line crossing above its signal line while MACD is at or below zero and the 14 period RSI sits under a buy threshold, 52 by default. Th

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

True Strength Index

by everget
947 stars

This indicator calculates the True Strength Index (TSI) oscillator by applying double exponential moving average smoothing to price momentum. It plots the TSI line alongside an EMA signal line and an optional difference histogram in a separate pane. Visual ele

Indicator v4 Oscillators & momentum
Updated 12 days ago · GPL-3.0 GitHub repository of True Strength Index

CBMG-Tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell transactions directly onto the price chart for Cellular Biomedicine Group (CBMG). It renders chart labels at explicit historical timestamps corresponding to reported trades, showing transaction type an

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

This indicator plots John Ehlers' two-pole Super Smoother as a line on the price chart. It applies a two-pole IIR Butterworth-style lowpass to the selected source, averaging the current and previous values and mixing them with two prior filter outputs. Length

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers 2-Pole Super Smoother Filter (SSF2)

Compound conditions

by be-thomas
65 stars

This indicator plots the relative strength index in a separate pane and marks a compound bullish state when four conditions hold together. It tests whether RSI is above a bull level, above a prior high channel of RSI, whether that channel has not fallen for a

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of Compound conditions
47 stars

This overlay indicator tracks up to four independent session levels on the price chart. For each level it records the high and low of a chosen range window, then draws an optional box for that range and a horizontal retracement line at a user-set percentage of

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Time-based Range Retracement - Stats
47 stars

This indicator plots Bill Williams' Market Facilitation Index in a separate pane. It calculates the bar's high-low range divided by volume, and it returns zero when volume is zero so inactive bars do not produce a ratio. A blue line shows the index and a dashe

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · MIT GitHub repository of MARKETFI: Market Facilitation Index

Historical Volatility

by TWODS-CAPITAL
37 stars

This indicator calculates historical volatility as the standard deviation of logarithmic close-to-close returns over a user-set length. It annualizes that value with 365 days and a period factor of one on intraday or one-day charts, otherwise seven, then multi

Indicator v5 Volatility & bands
Updated 3 years ago · MIT GitHub repository of Historical Volatility

Pattern Recognition [WavesUnchained] automatically identifies chart patterns including ascending, descending, and symmetrical triangles, rising and falling wedges, and parallel channels. It validates formations through multi-point pivot analysis, volume spike

Indicator v6 BreakoutSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Pattern Recognition [WavesUnchained]

This indicator plots internal and external liquidity zones alongside market structure breaks directly on the price chart. It calculates short-term and long-term pivot points to identify internal and external liquidity levels, including equal highs and lows. Ma

Indicator v6 SMC / ICT / price actionSupport & resistance

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine plots time-based CRT models, session state ranges, and institutional market structure on the main price chart. It detects liquidity sweeps, order blocks, Fair Value Gaps, and volume profile imbalances across specified New York time sessions. T

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine
3 stars

FX Market Sessions highlights distinct trading sessions, such as London, New York, and previous day ranges, directly on the main chart using colored boxes and labels. It tracks session highs, lows, and pip spans, with configurable options for opening ranges, F

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of FX Market Sessions
2 stars

This indicator detects order blocks and breaker blocks on the price chart using swing highs and lows with a configurable lookback length. Bullish order blocks appear as blue boxes and lines while bearish ones use orange coloring. Breaker blocks trigger red and

Indicator v5 SMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Order Blocks & Breaker Blocks
2 stars

Clusters Volume Profile [LuxAlgo] applies K-Means clustering to historical price data using high-low averages and volumes to identify distinct price groups. It then computes volume profiles for each cluster with user-defined rows per cluster and maximum bar wi

Indicator v6 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of LuxAlgo - Clusters Volume Profile

Realized Volatility (RV)

by mushroom-men-Trading
2 stars

This indicator computes realized volatility from intraday price returns. It fetches close prices from a lower timeframe, calculates the sum of squared logarithmic returns, and derives the volatility as the square root of that sum. A simple moving average smoot

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Realized Volatility (RV)

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