Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 135)

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

Varip Period Tracker

by ivansoft
1 stars

Experimental overlay that tracks high and low points for several period types such as session, five and ten minutes, day, week, month and year using varip objects. It draws dashed lines for the current period extremes and writes debugging labels with times on

Indicator v5 Support & resistanceSessions & time Repaints
Updated 1 year ago · None stated GitHub repository of Varip Period Tracker

FBRT-tracker

by Allen1212
303 stars

FBRT-tracker is an overlay indicator that marks recorded ARK Invest activity in FBRT with labels on the price chart. With the ETF input set to ALL, it draws red downward labels above bars on fixed dates, each reading as a sell with a count of X1. The only sett

Indicator v4
Updated 2 years ago · None stated GitHub repository of FBRT-tracker

Tables-001

by ricardosantos79
261 stars

This indicator builds a TradingView table in a separate pane and fills its cells with fixed placeholder text according to whether each row and column index is even or odd. Users set the table position, the number of rows and columns, and the background, frame,

Indicator v4 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Tables-001
114 stars

This indicator overlays a Renko-style brick channel on the price chart. It sets brick size as a fraction of the previous close, choosing that fraction from the chart timeframe, then steps two brick levels when price moves beyond that size. It colors the fill g

Indicator v4 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of ZigZag via Renko Emulator

This indicator calculates John Ehlers' Ultimate Smoother Filter, a two-pole infinite impulse response filter designed to reduce market noise while minimizing lag. It computes filter coefficients using exponential decay and trigonometric functions, then applies

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Ultimate Smoother Filter (USF)

Last Bar Close 1

by be-thomas
65 stars

This Pine Script indicator creates a single dynamic label above the active price bar to display its closing price. The label is colored lime green when the bar close is greater than or equal to the open price, and red when the close is below the open. By delet

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Last Bar Close 1

Z-Score

by mihakralj
47 stars

The Z-Score indicator computes the standardized deviation of a source series from its mean and variance over a specified lookback period. It plots the resulting Z-Score values in a separate pane on the chart. Users adjust the period length and select the sourc

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of Z-Score

This indicator plots calendar-spread context for commodity futures on the price chart. It maps the chart symbol to front and next month contracts automatically, or uses manual symbols, then calculates the spread as a difference or ratio. Fast and slow EMAs, a

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Spread Context [WavesUnchained]
7 stars

This indicator identifies and projects Wyckoff schematic structures directly on the main price chart. It automatically detects price action phases (Phases A through E), key events, support and resistance levels, and volume spikes. The script features customiza

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Wyckoff Schematic by Kingshuk Ghosh
6 stars

This indicator identifies support and resistance levels using the Malaysian Support and Resistance technique based on pivot high (A) and pivot low (V) close prices. It plots support, resistance, and price gap lines directly on the main chart pane. Traders can

Indicator v5 Support & resistance
Updated 7 months ago · None stated GitHub repository of Malaysian SnR OPTIMIZED by KF
3 stars

The Krypton Indicator overlays trend analysis, buy and sell zones, and sentiment tracking directly onto the price chart. It calculates a dual moving average trend filter, renders supply and demand zones, and plots a sentiment line to identify market momentum.

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

Ehlers Loops [BigBeluga]

by regalouisei
2 stars

Ehlers Loops is a separate-pane indicator that tracks up to five symbols. It requests each symbol's prior close and volume, with low-pass and high-pass periods as the main filter settings. Enabled symbols are drawn with colored labels and lines, and label size

Indicator v5 VolumeScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Ehlers Loops [BigBeluga]
1 stars

The Interactive Three Points Curve is an overlay indicator that fits a quadratic curve through three user-selected chart points. Point 2 acts as the apex, while Points 1 and 3 serve as boundary anchors. Outside these anchors, the script extends linearly based

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Interactive Three Points Curve

P&P Cloud Professional

by vedkanani123
1 stars

A price-chart indicator that plots a fast and slow EMA cloud, defaulting to 9 and 21 periods, in green when bullish and red when bearish. The cloud can be locked to a chosen timeframe, with a wait-for-close option that is off by default, so locked higher-timef

Indicator v6 Moving averagesTrend Repaints
Updated 2 months ago · None stated GitHub repository of P&P Cloud Professional

KC Combo Bull v4

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, split into two zone types: one where price breaks the zone high or low, and one where only the open is broken. Each type has its own maximum count, and a tolerance margin allows s

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

Varip Test

by ivansoft
1 stars

Debugging script that reproduces a varip behaviour in Pine. Two versions of a context type track the running high of a five-minute period, one with varip fields on a chart point and one using a typed object, and add labels showing when the high changes. The la

Indicator v5 Repaints
Updated 1 year ago · None stated GitHub repository of Varip Test

FLIR-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of FLIR on the price chart. It places green buy labels below bars and red sell labels above bars on hardcoded dates, with text showing the trade side and a same-day ETF count. An ETF settin

Indicator v4
Updated 2 years ago · None stated GitHub repository of FLIR-tracker
261 stars

This indicator plots the RSI oscillator on the main chart and displays its value distribution in a table positioned at the top right. The script calculates the relative strength index using the input source and length, then plots horizontal lines at 0, 50, and

Indicator v4 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Tables-003 Oscillator Distribution
99 stars

The Ehlers Ultimate Strength Index (USI) calculates a symmetric RSI replacement using the UltimateSmoother filter instead of Wilder's exponential smoothing. It plots the USI value in a separate pane, bounded between -1 and +1, with bullish signals above 0 and

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Ultimate Strength Index USI

Last Bar Close 2

by be-thomas
65 stars

Displays a text label showing the close price of the most recent bar directly on the price chart. The label updates on each bar, deleting the previous label so that only the latest bar displays its closing price. The label color changes dynamically based on wh

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Last Bar Close 2

Pivot Points High Low

by TWODS-CAPITAL
37 stars

Pivot Points High Low calculates and plots swing highs and swing lows directly on the price chart. It uses left and right bar offset lengths to confirm local price extremes using built-in pivot functions. When a pivot high or low is detected, a text label disp

Indicator v5 Support & resistance
Updated 3 years ago · MIT GitHub repository of Pivot Points High Low

Vein Structure & Zones 4H combines market structure event detection with automated support and resistance zone mapping directly on the price chart. It calculates micro and major swing pivots, break of structure (BOS), equal highs and lows, and Wyckoff heuristi

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Vein: Structure & Zones 4H [WavesUnchained]
7 stars

This script combines Smart Money Concepts including Break of Structure, Optimal Trade Entry Fibonacci levels, Fair Value Gaps, and Order Blocks to identify setup entries on the price chart. It tracks 15-minute higher timeframe structure, restricts trades to th

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of 15m BOS + OTE + FVG + OB (Prop Firm)

MSG Enhanced LEGO System

by alboogycOdR
6 stars

The MSG Enhanced LEGO System plots customizable time-based market structure gap ranges and trading sessions as colored boxes on the price chart. Users can configure independent session intervals, such as New York, London, and Asia, along with options to displa

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System
3 stars

LC Signal Generator measures market breadth and alignment across three configurable symbol groups, including European stock indices, S&P 500 futures, and the VIX volatility index. It calculates daily percentage changes for each asset using daily close data. Wh

Indicator v5 Sessions & timeScreeners & dashboards Repaints
Updated 5 months ago · None stated GitHub repository of LC Signal Generator

Electrocardiogram Chart

by regalouisei
2 stars

This indicator reimagines price action as an electrocardiogram wave directly on the main chart pane. It converts standard bar data into heartbeat-style paths using custom data structures, plotting interconnected line segments that link open, internal swing, an

Indicator v5 Candlestick patterns
Updated 8 months ago · None stated GitHub repository of Electrocardiogram Chart

Phantom Trend Cloud

by vedkanani123
1 stars

A trend indicator on the price chart that draws a 21-period ribbon with a cloud whose width is an ATR multiple, 1.618 by default. A trend flip changes the cloud direction, and retest signals appear when price pulls back to the cloud, filtered by volume, RSI an

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Phantom Trend Cloud

KC Combo Bull v4.1

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4.1
1 stars

An overlay indicator that tracks swing highs and lows with pivots on the chart timeframe and on a one-hour context, which it reads from a Heikin Ashi version of the symbol. It labels the trend direction on each, reports when the two agree as bullish or bearish

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Tn Sovereign MTF Swing

Volume Spike Analysis

by ivansoft
1 stars

An indicator in a separate pane that judges whether the current bar's volume is unusual by comparing it with the history of earlier high-volume bars rather than with a moving average. It finds how long ago volume last reached the current level, ranks that gap

Indicator v5 Volume
Updated 1 year ago · None stated GitHub repository of Volume Spike Analysis

FSLY-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of Fastly (FSLY) on the price chart. It places green buy labels below bars and red sell labels above bars at fixed dates, with text showing the trade side and how many ARK ETFs acted that d

Indicator v4
Updated 2 years ago · None stated GitHub repository of FSLY-tracker

Test 006 Initarray

by ricardosantos79
261 stars

The script initializes a color array with black and white colors if it has no elements, then plots two horizontal lines using the colors at array indices 0 and 1. It demonstrates array.push, array.size, and array.get in Pine Script v4. The lines appear directl

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test 006 Initarray
99 stars

This indicator calculates the Ehlers Universal Oscillator by extracting white noise through two-bar price differencing, smoothing the series with a two-pole Super Smoother filter, and normalizing values using automatic gain control peak tracking. It plots a co

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Universal Oscillator (UO)

Last Bar Close 3

by be-thomas
65 stars

This indicator plots the last bar close price in a label drawn on the price chart. The label text shows the close value and is colored green if close is greater than or equal to open, otherwise red. The label updates every bar with the current close price and

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Last Bar Close 3

Pivot Points Standard

by TWODS-CAPITAL
37 stars

This indicator draws a central pivot and up to five support and resistance levels on the price chart. It offers Traditional, Fibonacci, Woodie, Classic, DM, and Camarilla calculation types. The user selects a pivot timeframe from automatic through multi-year p

Indicator v5 Support & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Pivot Points Standard
9 stars

Vein: Trend is a signal aggregator indicator that plots directional markers on the main price chart based on a weighted composite confluence score. It evaluates technical conditions across three layers: momentum setup using RSI, MFI, and Bollinger Bands; confi

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Trend [WavesUnchained]

MSG Enhanced LEGO System

by alboogycOdR
6 stars

MSG Enhanced LEGO System is a session mapping indicator that overlays configurable time ranges and market sessions directly on the price chart. It tracks independent session ranges, including major trading periods such as New York, London, and Asia. The indica

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of MSG Enhanced LEGO System

Level Theory

by g-moe
3 stars

This indicator draws extended horizontal lines on the price chart based on psychological rounding levels. It plots whole-number, half, and quarter increments of a configurable rounding value above and below a baseline price. Lines extend across the chart for s

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Level Theory
2 stars

This indicator builds a separate-pane dashboard for the United States and five other countries. It requests open, high, low, and close for each region's currency, two-year yield, and equity index on the chart timeframe. Default symbols cover the dollar index,

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Equity, Bond, Currency Dashboard

This indicator tilts a simple moving average by the slope between two user-chosen price and time points and plots that average, its inverse, and a horizontal midpoint. It also mirrors the average around the midpoint and draws reconstructed candles reflected th

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Interactive Two Points MA Symmetry

Precision Sniper

by vedkanani123
1 stars

A signal indicator on the price chart built on a 9, 21 and 55 EMA ribbon. Buy and sell signals need a minimum confluence score drawn from trend, RSI, volume and other checks, and are graded A plus, A, B or C, with C hidden by default. It plots an ATR or struct

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Precision Sniper

KC Combo Bull v4.3

by nishpa800
1 stars

Overlays a Keltner Channel and an ATR supertrend on the price chart and marks candles where several built-in detectors agree on the same bar. The detectors cover pullback patterns, displacement, relative volume and high-volume bars, shown as lettered markers.

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo Bull v4.3
1 stars

A Pine v4 pane indicator that builds a stack of up to 28 rows of moving average based momentum readings and colors them as a heat map, with greens for positive and reds for negative momentum. The moving average type can be SMA, EMA or WMA, momentum can be smoo

Indicator v4 Oscillators & momentumTrend
Updated 6 months ago · None stated GitHub repository of Angular Momentum Heat Map

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