Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 96)

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

Vector Candles

by TamTH-Dev
2 stars

Vector Candles is an overlay indicator that recolors price bars according to relative trading volume and volume spread. It compares current volume against a 10-bar moving average and evaluates volume spread relative to recent highs. Bars are categorized and hi

Indicator v5 VolumeCandlestick patterns
Updated 6 weeks ago · None stated GitHub repository of Vector Candles

This indicator plots Fair Value Gaps, Order Blocks and Threeple patterns on the price chart based on ICT concepts. It draws boxes and lines for potential supply and demand zones using higher-timeframe data across multiple charts. Users set box size (open/close

Indicator v6 SMC / ICT / price actionSupport & resistance

Market Sessions & Viewer Panel tracks and visualizes major global trading sessions, such as Tokyo, London, New York, and Sydney, on the main price chart. It highlights active market intervals using customizable box shapes, background colors, and labels, while

Indicator v6 Sessions & timeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Market Sessions & Viewer Panel [MUQWISHI]

Elder's Force Index (EFI)

by mushroom-men-Trading
2 stars

The Elder's Force Index indicator calculates buying and selling pressure using price changes and volume. It computes a raw force as the difference in price multiplied by volume, then applies exponential moving average smoothing. The primary input is the length

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Elder's Force Index (EFI)

Double Mm With Hhll

by WISEPLAT
2 stars

Double Mm With Hhll is an indicator that plots two separate ZigZag lines on the price chart using different periods. It calculates swing highs and lows for each period and connects them into trend lines with customizable colors for up and down moves, line styl

Indicator v4 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Double Mm With Hhll

Session Filter

by jayadevrana
1 stars

Session Filter is an overlay indicator that plots a fast and a slow exponential moving average on the price chart. It marks a buy when the fast average crosses above the slow average only during a user-defined trading session, and it marks crossovers outside t

Indicator v6 TrendMoving averages
Updated 5 days ago · MPL-2.0 GitHub repository of Session Filter

P_err_positional_after_named

by GammaExpansion
1 stars

This indicator serves as a minimal syntax test fixture designed for parser validation in Pine Script version 6. It executes in a separate pane and plots the current close price using a named argument structure. Because it is a basic test script, it does not ca

Indicator v6
Updated 8 days ago · MIT GitHub repository of P_err_positional_after_named

DEPV2 DEBUG S1

by YuceSezar89
1 stars

This multi-asset crypto indicator monitors up to twenty symbols using four distinct analytical pillars: trend, momentum, volatility, and volume. It generates trade signals based on configurable modes including single-pillar execution, simultaneous confluence,

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 2 weeks ago · None stated GitHub repository of DEPV2 DEBUG S1
1 stars

This indicator plots a dynamic trend level on the main price chart based on an interactively chosen anchor time and price level. It calculates the vertical offset between the selected price level and a moving average at the anchor time, projecting this dynamic

Indicator v6 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Moving Average Trend Line
1 stars

A simple exponential moving average crossover indicator drawn on the price chart. It plots a fast EMA and a slow EMA, 20 and 50 periods by default, and colors the fast line green when it is above the slow one and red when below. BUY and SELL labels mark the cr

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Trend Direction Buy/Sell Signals
1 stars

Finds volume order blocks, zones built from heavy volume around moving average crossovers, and draws them on the price chart. This multiples-only edition focuses on combined events: strict ladder patterns across six sensitivity tiers, multi-zone coincidences,

Indicator v6 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB v11 Multiples HW Coincidence

GitLemon Con

by GreyssonEnterprises
1 stars

GitLemon Con is an overlay indicator that looks for W and M formations on price and optional confirming series. Users can include on-balance volume, Williams %R, money flow index, RSI, and directional movement, each with a strict mode and a shared maximum widt

Indicator v4 Oscillators & momentumVolume
Updated 3 months ago · MIT GitHub repository of GitLemon Con
1 stars

VCP Volume Contraction is an indicator designed to identify Volatility Contraction Pattern setups by measuring both volume and price volatility tightness. It calculates a volume ratio by comparing current volume against its moving average, alongside an ATR-bas

Indicator v5 Volatility & bandsVolume
Updated 4 months ago · None stated GitHub repository of VCP Volume Contraction

Swing Trade ATR

by rubbermetal
1 stars

Swing Trade ATR is an indicator that marks Swing L and Swing S labels when a 9-period EMA crosses a 21-period EMA, with a fill between them. After each signal it draws stop loss and take profit lines at ATR multiples from the signal close and clears them when

Indicator v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of Swing Trade ATR
1 stars

This indicator marks swing highs and lows from pivot bars on the price chart and projects dates ahead using Gann and Hurst cycle timing ideas. Tables show the pivot dates and nearby future dates, with colours for bullish and bearish pivots. The left and right

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Gann Hurst Pivot HL 2024 V1.2

V5 Combination by yzz

by webcrack4
1 stars

This script combines a Volume Profile / Market Profile (TPO) tool with an overlay MACD indicator directly on the price chart. It calculates volume or time-at-price distributions across customizable ranges (Visible Range, Anchored Range, or All Range) to identi

Indicator v5 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of V5 Combination by yzz
1 stars

Educational example based on the Pine documentation that estimates an empirical cumulative distribution of a source over a rolling window. It keeps a queue of recent values, computes the share of values below each of a chosen number of steps, and shows the res

Indicator v6
Updated 1 year ago · None stated GitHub repository of Empirical Distribution

Indicator Template

by zhuzp98
1 stars

An empty Pine Script v5 indicator template that sets up an overlay indicator with price formatting, two-decimal precision and timeframe gap handling. The visible code contains only section headers for parameters and indicators, with no inputs, calculations or

Indicator v5
Updated 1 year ago · None stated GitHub repository of Indicator Template
1 stars

This indicator computes the Z-Score of a user-selected moving average or smoothed price series. It provides numerous smoothing modes such as SMMA, EMA, JMA, ALMA, and others to customize the base calculation. The Z-Score uses a chosen length and generates sign

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of VQZL Z Score + MA Options

RSI with ATR Bands

by nvFede
1 stars

A Pine v4 indicator in a separate pane, titled Parabolic SAR in the code, though the visible logic plots the 14-period RSI together with two bands. The upper band is the highest RSI over 22 bars minus the ATR, and the lower band is the lowest RSI plus the ATR.

Indicator v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · None stated GitHub repository of RSI with ATR Bands

Price Oscillator

by JohnsonHsiao
1 stars

The Price Oscillator calculates the difference between two simple moving averages applied to close prices: a fast SMA using fast_len (default 20) and a slow SMA using fast_len plus slow_len_factor (default 60). It plots this oscillator value as a green line in

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of Price Oscillator
947 stars

Dividends per Share (DPS, Yearly) calculates and displays annual dividend payment totals retrieved from FactSet fundamental data feeds. It accumulates historical dividend payouts and estimates on a yearly basis, plotting them as styled columns in a separate in

Indicator v4 Repaints
Updated 13 days ago · GPL-3.0 GitHub repository of Dividends per Share (DPS, Yearly)

ALTR Tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest transaction records directly onto the ALTR price chart. It plots green and red labels at precise historical timestamps corresponding to past buy and sell transactions executed by ARK funds, displaying transaction c

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of ALTR Tracker

Function Polynomial Regression

by ricardosantos79
261 stars

This indicator fits a quadratic polynomial regression through recent fractal pivot highs and lows and plots the result as a channel on the price chart. A reusable function returns fitted values plus maximum, minimum, and average absolute deviations from the cu

Indicator v5 TrendSupport & resistance
Updated 4 years ago · None stated GitHub repository of Function Polynomial Regression
257 stars

Marks intraday swing tops and bottoms on the price chart with labels and short horizontal lines. After a morning session reset in the UTC-8 time zone, it tracks the running high and low, measures how far price has moved away from the extreme, and prints a labe

Indicator v5 Support & resistanceSessions & time
Updated 7 weeks ago · None stated GitHub repository of High Low Live Super
114 stars

This indicator applies Learning Vector Quantization (LVQ), a supervised neural network competitive learning algorithm, to classify normalized market features. It determines winning prototype vectors using Euclidean distance and continuously updates weights acr

Indicator v4 AI / machine learningTrend Repaints
Updated 1 year ago · None stated GitHub repository of Machine Learning: LVQ-based Strategy
99 stars

The Bilateral Filter indicator calculates an edge-preserving smoothed price line based on bilateral filtering principles. It combines spatial domain distances across past bars with range domain price amplitude differences using dual Gaussian weighting function

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bilateral Filter (BILATERAL)
55 stars

This indicator draws diagonal trendlines from confirmed swing points on the price chart. It detects pivot highs and pivot lows using a fixed 15-bar lookback on each side. When a new pivot confirms, it connects the last two highs with a solid red line and the l

Indicator v5 TrendSupport & resistance
Updated 6 months ago · Apache-2.0 GitHub repository of Auto Diagonal Trendlines

This indicator builds a momentum score from the rate of change of close, using a lookback that expands or contracts with ATR relative to its standard deviation. It divides that rate of change by price standard deviation, scales the result, and weights it by vo

Indicator v5 Oscillators & momentumVolatility & bands Repaints
Updated 8 weeks ago · None stated GitHub repository of Adaptive Volatility-Adjusted Momentum Score
47 stars

This indicator calculates John Ehlers' Sine Wave cycle indicator and plots it in a separate pane. It detrends the chosen input price using a two-pole high-pass filter, smooths the result with a two-pole Super-Smoother filter, and resolves the cycle into in-pha

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Ehlers Sine Wave (SINE)

Zen-DAX GX

by Zen-Tim
29 stars

This indicator calculates and plots session ranges and key breakout levels for DAX futures directly on the price chart. It defines the overnight Globex session, the Frankfurt pre-market range, and the regular trading hours open using European timezone settings

Indicator v5 Sessions & timeBreakout
Updated 2 weeks ago · MIT GitHub repository of Zen-DAX GX

This indicator plots Fibonacci retracement levels anchored to a confirmed structural reference swing and scores them based on historical internal price reactions. Instead of relying purely on geometric levels, it detects ATR-weighted micro-pivots inside the sw

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 4 days ago · MIT GitHub repository of Fib Reaction Memory [WavesUnchained]
7 stars

This indicator identifies market displacement, structure breaks, and Fair Value Gaps (FVGs) directly on the main price chart. It highlights displacement candles using an average range lookback and multiplier factor, with optional structure break filtering usin

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of [CT] Displacement FVG Toolkit
7 stars

This indicator overlays two Bollinger Band sets from two timeframes on the price chart. It centers RSI on zero and classifies the second timeframe as up, sideways, or down. A buy appears when that trend is down or sideways and the first timeframe percent B is

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 months ago · None stated GitHub repository of RSI + BB Signal Alert
6 stars

The 2AM-Gold Swing Strategy+hist indicator plots Smart Money Concepts (SMC) elements for gold trading overlayed directly on the price chart. Starting at a user-defined session hour (default 2:00 AM UTC+2), it tracks liquidity sweeps, market structure shifts, o

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of 2AM-Gold Swing Strategy+hist
5 stars

This indicator plots volume-weighted deviation bands on the price chart. It computes a volume-weighted mean of the selected source over a lookback length, then a volume-weighted standard deviation or average deviation around that mean. Optional log-space mode

Indicator v4 Volatility & bandsVolume
Updated 8 months ago · None stated GitHub repository of Volume Weighted Deviations

MACD Breakout

by jerryinyang
5 stars

This indicator plots a higher-timeframe MACD breakout setup on the price chart and combines it with linear regression channels. It marks support and resistance zones from MACD histogram sensitivity, then filters them with the MACD zero line, a linear regressio

Indicator v4 Oscillators & momentumBreakout
Updated 2 years ago · None stated GitHub repository of MACD Breakout
5 stars

Fear + Greed Reversal Projection measures market sentiment extremes by comparing price source values against historical highs and lows using standard deviation bands. It calculates fear and greed zones through simple or weighted moving averages. When market co

Indicator v4 Volatility & bandsMean reversion
Updated 3 years ago · Apache-2.0 GitHub repository of Fear + Greed Reversal Projection

Simpleton Stepfun

by eltonaguiar
4 stars

This indicator plots signals on the price chart for crypto trading. It computes RSI-2, MACD crossover, Bollinger Band squeeze, volume spikes, Triple EMA alignment and Ichimoku Cloud to produce confluence signals. Each indicator can be toggled with adjustable w

Indicator v5 Oscillators & momentumVolatility & bands
Updated 3 days ago · None stated GitHub repository of Simpleton Stepfun

MACD + ATR13

by jash-git
3 stars

This indicator plots a standard MACD oscillator alongside an average true range line in a separate pane. It calculates the MACD line, signal line, and histogram using customizable fast, slow, and smoothing periods. It also computes a 13-period ATR plotted with

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of MACD + ATR13

CSW Indicators

by g-moe
3 stars

CSW Indicators combines eight technical analysis tools into a single overlay plotted directly on the main price chart. It features automated power support and resistance levels derived from pivot points, distance perimeter bands, a linear regression channel, R

Indicator v5 TrendSupport & resistance Repaints
Updated 5 months ago · None stated GitHub repository of CSW Indicators

This indicator estimates realized volatility in a separate pane. It computes log returns from the current price and the previous daily close, then annualizes the standard deviation over short, medium, and long lookbacks. It also plots a quicker estimate that m

Indicator v5 Volatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Volatility Oscillator with Quick Estimate and Forecast

Calculates a Zero Lag Exponential Moving Average (ZLEMA) combined with Average True Range volatility bands to determine market trends. It plots the ZLEMA basis line, volatility bands, trend reversal labels, and entry signals directly on the price chart. Additi

Indicator v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Zero Lag Trend Signals (MTF) [AlgoAlpha]
2 stars

This indicator builds a pairwise similarity matrix for a user-supplied list of assets, defaulting to major stock indices. It collects a rolling window of returns or volume-modified returns for each ticker, then applies a selected distance or similarity functio

Indicator v6 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Multi Asset Similarity Matrix

Exponential Moving Average (EMA)

by mushroom-men-Trading
2 stars

This indicator plots an exponential moving average of a chosen price source on the price chart. It calculates the average with exponential smoothing and applies a warmup compensator so a value is available from the first bar instead of waiting through a long s

Indicator v6 Moving averages
Updated 9 months ago · None stated GitHub repository of Exponential Moving Average (EMA)
2 stars

Trend Direction Helper calculates overall trend direction by combining customized range filters, Williams %R, and multi-period threshold logic to plot directional buy and sell labels. It also features optional percentage-reversal ZigZag lines, pivot-based supp

Indicator v4 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Trend Direction Helper

Session Stats

by jayadevrana
1 stars

Session Stats highlights Asia, London, and New York trading sessions on the chart with distinct background colors while tracking performance metrics. It plots session high and low lines directly on price action and presents a summary table displaying average s

Indicator v6 Sessions & timeScreeners & dashboards
Updated 5 days ago · MPL-2.0 GitHub repository of Session Stats

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