Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 134)

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

NO.1 V3 Dual-Regime Router

by vedkanani123
1 stars

A price-chart indicator that classifies the market into trend, range, transition or shock regimes using an adaptive core, ATR, ADX, choppiness and efficiency measures. Each regime has its own sleeve: trend-following on structure and momentum, range-edge revers

Indicator v6 TrendBreakout
Updated 2 months ago · None stated GitHub repository of NO.1 V3 Dual-Regime Router

KC Combo Bear v4.6

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 Bear v4.6
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. A lookback setting decides when a zone is invalidated, a tolerance margin allows small breaches, and a long term mode keeps more zones. Algorithm modes range from looser to strict

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

HighLowTest

by ivansoft
1 stars

A test indicator in a separate pane that exercises an imported period high and low library. It detects session, day, week, month and year changes, with extra handling for Moscow Exchange futures sessions, and plots the change markers as lines so the period det

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of HighLowTest

FARO-tracker

by Allen1212
303 stars

This indicator plots ARK Invest trade marks for FARO on the price chart. It places dated labels above bars for recorded sales, including a sell mark on 17 January 2020 labeled as one ETF. The only input is an ETF selector whose sole option is ALL, so it does n

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

My Script

by ricardosantos79
261 stars

This indicator uses array operations to track recent high and low values. It defines helper functions to insert values into a fixed-size array. On each bar it calculates the 10-bar highest high and lowest low, then checks for the formation of a new high or low

Indicator v4 Support & resistanceMean reversion
Updated 4 years ago · None stated GitHub repository of My Script
114 stars

This indicator measures normalized buying and selling volume pressure in a separate pane. It rescales volume, open, and close prices over a selected lookback period using min-max normalization. Volume is categorized into bullish or bearish pressure based on ba

Indicator v4 VolumeMoving averages
Updated 1 year ago · None stated GitHub repository of Volume Flow v3 (Rescaled Update)

This indicator plots John Ehlers' truncated bandpass filter beside a standard infinite-impulse-response bandpass in a separate pane. It passes cycles near a chosen center period, with bandwidth setting how wide the passband is and length setting the finite tru

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Truncated Bandpass Filter (TBF)

History referencing

by be-thomas
65 stars

This indicator demonstrates history referencing on a one-element float array. On every bar it creates a new array, stores the current close in its only element, and reads that element one bar back. It also reads the previous close directly from the price serie

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of History referencing

Weighted Close (HLCC4)

by mihakralj
47 stars

This indicator calculates the classic weighted close, also called HLCC4, as one quarter of the high plus the low plus twice the close. It calls a small helper that multiplies the four price terms by 0.25 and plots the result as a yellow line of width two direc

Indicator v6
Updated 8 months ago · MIT GitHub repository of Weighted Close (HLCC4)

Parabolic SAR

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the standard Parabolic Stop and Reverse directly on the price chart using cross markers. It tracks potential trend direction and reversal points as price moves, plotting dots above or below the price candles. The main input

Indicator v5 Trend
Updated 3 years ago · MIT GitHub repository of Parabolic SAR

Vein: Pullback identifies temporary counter-trend retracements and signals when they end versus when structure breaks. It calculates a multi-layer confluence score from 0 to 10 based on trend quality, move weakness, structure preservation, and Fibonacci retrac

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

Session Dominance Profile [Pointalgo] is an overlay indicator that calculates a volume profile broken down by global trading sessions over a specified lookback period. It divides the historical high-low range into price bins and categorizes volume into Asian,

Indicator v5 VolumeSessions & time
Updated 3 months ago · None stated GitHub repository of Session Dominance Profile [Pointalgo]

Key Trading Levels Pro

by alboogycOdR
6 stars

Key Trading Levels Pro plots previous-day high and low, Asia and London session ranges, and new daily, weekly, and monthly opening gaps on the price chart. It can mark candles whose wicks touch a level while the body closes on the other side. Users toggle each

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of Key Trading Levels Pro

Dominance Pie Chart

by regalouisei
2 stars

This indicator draws a pie chart of cryptocurrency market-cap dominance in a separate pane. It requests CRYPTOCAP close values for Bitcoin, Ethereum, several major altcoins, Tether, and the others bucket, then accumulates those shares into wedge angles. Precom

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Dominance Pie Chart

Yang-Zhang Volatility (YZV)

by mushroom-men-Trading
2 stars

This indicator calculates Yang-Zhang historical volatility from open, high, low, and close prices, including overnight gaps. It estimates daily variance, smooths it with a bias-corrected RMA, and plots the square root of that smoothed variance as a single line

Indicator v5 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Yang-Zhang Volatility (YZV)

Icosahedron

by morindok
1 stars

Icosahedron is a chart overlay that draws a wireframe icosahedron between two user-chosen time and price points. It scales fixed fractional coordinates by the time span and price difference of those points, then connects the resulting vertices with thin blue p

Indicator v5
Updated 7 weeks ago · None stated GitHub repository of Icosahedron
1 stars

A price-chart indicator that extends a three-regime signal engine (trend, range edge reversal, breakout) with higher-timeframe context and a transparent confidence score. The higher timeframe uses the previous completed bar, either auto-selected or set manuall

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 V4 MTF Confidence Fusion

KC Combo Bear v4.7

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 Bear v4.7
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, in a version labelled stable by its file name. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance ma

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

FATTAL-tracker

by Allen1212
303 stars

This indicator overlays dated ARK Invest buy and sell labels on the FATTAL price chart. It places a green buy label below the bar and a red sell label above the bar at fixed historical timestamps, with text marking the direction and a count of one. An ETF inpu

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

My Script

by ricardosantos79
261 stars

This indicator implements a one-dimensional function minimizer in a separate pane, based on golden-section search combined with successive parabolic interpolation. A sample function of cosine plus one is evaluated inside a rolling log of the latest ten results

Indicator v4
Updated 4 years ago · None stated GitHub repository of My Script
114 stars

Volume Weighted Distance applies statistical and machine learning distance metrics between source prices and their rolling mean, weighted by volume, to identify local trend reversals. Users can select from Manhattan, Euclidean, Mahalanobis, Cosine Similarity,

Indicator v4 Oscillators & momentumVolume Repaints
Updated 1 year ago · None stated GitHub repository of Volume Weighted Distance
99 stars

This indicator plots Ehlers Ultimate Bands on the price chart. It smooths the selected source with an Ehlers ultrasmooth filter, measures the root-mean-square of residuals over the lookback, and draws upper and lower bands as that smooth line plus or minus the

Indicator v6 Volatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Ultimate Bands (UBANDS)
47 stars

This indicator calculates the Williams Gator Oscillator derived from Bill Williams Alligator lines and plots dual histograms in a separate pane. The upper histogram displays the absolute difference between the Jaw and Teeth moving averages, while the lower his

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of Williams Gator Oscillator
9 stars

The script calculates a two-layer reversal scoring system designed to identify potential market turning points. Layer A evaluates momentum, overextension, volume, and candle metrics to establish a setup score, while Layer B confirms structural events such as m

Indicator v6 Oscillators & momentumSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Vein: Reversal Score 4H

Jerry MACD

by g-moe
3 stars

Jerry MACD is a momentum oscillator indicator displayed in a separate pane. It calculates a standard Moving Average Convergence Divergence line, signal line, and histogram using fast, slow, and signal lengths. The indicator features symbol-specific entry thres

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Jerry MACD

Dynamic Money Flow

by regalouisei
2 stars

This indicator calculates volume-weighted money flow across price action, plotting in a separate pane. It combines close-to-range and close-to-close metrics using dynamic or static weighting. Users can toggle between an index mode smoothed by RMA or a cumulati

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Dynamic Money Flow
1 stars

A price-chart indicator that combines trend, range edge reversal and transition breakout sleeves, with shock conditions blocking new signals. It uses an adaptive core, causal trail, completed ranges and a previous completed higher-timeframe filter. Presets suc

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 V5 Ultimate Adaptive Engine

KC Combo Bull

by nishpa800
1 stars

Time-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

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

Draws supply and demand zones on the price chart from engulfing candle patterns. Settings set how many bars back removal of invalidated zones begins, how much history is kept after invalidation, and a tolerance margin. A long term mode keeps more zones. Algori

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

An indicator that draws a box on the price chart for each higher timeframe period, showing that period's range as one candle-like block. The timeframe is chosen automatically from the chart timeframe or set by hand. Box height can be based on the high-low rang

Indicator v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Multi-Time Period Charts

FB Tracker

by Allen1212
303 stars

This indicator plots ARK Invest buy and sell trade labels directly on the price chart for Facebook stock. Labels show buy quantities with green "Buy Xn" text and sell quantities with red "Sell Xn" text at exact bar times. The etf_type input changes the ETF fil

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of FB Tracker

Tables 002 Matrixscreen

by ricardosantos79
261 stars

This visual script displays a digital matrix screen effect using TradingView tables. It generates pseudo-random character displays across a customizable grid of rows and columns. Users can configure the table dimensions, controlling row and column counts to ad

Indicator v4 Screeners & dashboards
Updated 4 years ago · None stated GitHub repository of Tables 002 Matrixscreen
99 stars

Ehlers Ultimate Channel calculates volatility bands around an adaptive smoothed centerline based on John Ehlers' smoothing algorithm. It applies a specialized infinite impulse response filter to both price and True Range, constructing an upper, middle, and low

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Ultimate Channel (UCHANNEL)

Holiday Candles

by be-thomas
65 stars

Holiday Candles is a visual demonstration script from TradingView documentation that renders price candlesticks with randomized colors. For each bar, it generates pseudo-random values for red, green, blue, and transparency levels to construct a dynamic RGB col

Indicator v4 Candlestick patterns
Updated 6 days ago · GPL-3.0 GitHub repository of Holiday Candles
47 stars

This indicator plots a winsorized mean moving average of the close on the price chart. Over a lookback window it sorts values, replaces the lowest and highest percentage of samples with the values at the trim boundaries, and averages the full window so outlier

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of WINS: Winsorized Mean Moving Average

Piercing - Bullish

by TWODS-CAPITAL
37 stars

Identifies the two-candle bullish Piercing Line reversal pattern during a downtrend directly on the price chart. It checks for a long bearish candle followed by a bullish candle opening at or below the prior low and closing above its midpoint. Users can filter

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Piercing - Bullish

This indicator draws support and resistance zones on the price chart from reversal bars that later reach ATR-based targets. Weak and strong labels depend on travel distance, adverse move, and how quickly the target is hit. Nearby same-direction zones merge, a

Indicator v6 Support & resistanceOscillators & momentum Repaints
Updated 3 days ago · MIT GitHub repository of Vein: Reversal Zones [WavesUnchained]

Vdubus Pattern Gen V2

by eddiebelaval
7 stars

Vdubus Pattern Gen V2 is a TradingView indicator that identifies and plots chart patterns, harmonic shapes, and structural reversals based on multi-scale ZigZag structures and smoothed momentum physics. It draws fast entry structures, slow macro context struct

Indicator v5 TrendSupport & resistance Repaints
Updated 3 months ago · None stated GitHub repository of Vdubus Pattern Gen V2
6 stars

This indicator plots Malaysian-style support and resistance on the price chart. It marks A levels from pivot highs and V levels from pivot lows, using a user-set lookback, and can also mark gap levels. Fresh and previously touched levels can be shown or hidden

Indicator v5 Support & resistance
Updated 7 months ago · None stated GitHub repository of Malaysian SnR [by DanielM]

Earnings Price Move Cheat Sheet [Kioseff Trading] is an overlay indicator designed to quantify price movements around earnings announcements. It calculates percentage returns across earnings periods and uses historical simulation to estimate Value at Risk (VaR

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Earnings Price Move Cheat Sheet [Kioseff Trading]

OBV Signal Confluence

by vedkanani123
1 stars

An On-Balance Volume oscillator in a separate pane. It plots an OBV histogram against a moving average chosen from SMA, RMA, WMA or VWMA and marks regular and hidden divergence from pivots. Optional filters use a higher-timeframe confirmation, ADX and a volume

Indicator v6 VolumeDivergence
Updated 2 months ago · None stated GitHub repository of OBV Signal Confluence

KC Combo Bull Tick

by nishpa800
1 stars

Tick-chart bullish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bull Tick
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

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