Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 138)

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

KC Combo SR EXT v1.0

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. This extens

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR EXT v1.0

Rakesh Level

by mikeyhu70
1 stars

A Pine Script v4 indicator, credited to LonesomeTheBlue, that draws a set of manually entered horizontal levels on the price chart, ten above and ten below, labelled as seller and buyer levels. The default prices are fixed numbers for ES or NQ futures, chosen

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of Rakesh Level

security() Revisited

by ivansoft
1 stars

An educational Pine Script v4 indicator that shows reliable higher timeframe requests with a choice of repainting or non-repainting output. It plots a plain repainting request for reference, a single-call helper function that switches repainting on or off, a t

Indicator v4 Repaints
Updated 1 year ago · None stated GitHub repository of security() Revisited

GLMD-tracker

by Allen1212
303 stars

GLMD-tracker overlays dated ARK Invest trade labels on the GLMD price chart. The visible code places red downward labels above bars on specific calendar dates, each marked as a sell with a count of one. An ETF setting is present but only offers ALL, so it does

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

Test 022 Copy

by ricardosantos79
261 stars

This test indicator demonstrates Pine Script v4 array operations and array copying behavior. It initializes two integer arrays, updates the primary array elements using a loop structure on every bar, and creates a duplicate array using array.copy(). The script

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test 022 Copy
99 stars

Calculates the Cumulative Distribution Function (CDF) of an F-distribution for a normalized price series. It normalizes the source input over a configurable lookback period using min-max scaling, then computes the CDF values bounded between zero and one via La

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of F-Distribution CDF (FDIST)

My Script

by be-thomas
65 stars

This indicator stores the difference between close and open for the current bar and the five preceding bars in a float array. It then plots the value at array index four, which is the close-minus-open difference from four bars ago. The study draws that single

Indicator v4 Candlestick patterns
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

Rising Window - Bullish

by TWODS-CAPITAL
37 stars

This indicator detects a bullish Rising Window, a two-candle pattern in which the current low is above the previous high during an uptrend. It plots an RW label below price, tints the background, and fires an alert when the pattern appears. Trend context can u

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

Dollar Normalized Volume v2

by eddiebelaval
7 stars

Dollar Normalized Volume v2 calculates dollar volume by multiplying the closing price of each bar by the bar volume. It renders the computed traded value as gray columns in a separate pane, providing a measure of total currency turnover rather than raw unit vo

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of Dollar Normalized Volume v2
6 stars

Plots smart money concepts and session visuals directly on the price chart. It highlights trading killzones with session boxes, draws trend lines, and marks upper or lower wick rejections. Additionally, it identifies Order Blocks (OB), Fair Value Gaps (FVG), C

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone
3 stars

Linear Regression Slope is a momentum and trend strength indicator that calculates the mathematical slope of a linear regression line using weighted and simple moving averages. It plots the resulting slope oscillator alongside a reference zero line in a separa

Indicator v5 Oscillators & momentumTrend
Updated 5 months ago · None stated GitHub repository of Linear Regression Slope

This indicator retrieves and displays fundamental financial metrics across up to fourteen selected symbols in a separate pane. It queries financial statements including income statement and balance sheet data such as basic EPS, revenue, EBIT, and debt metrics

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Fundamentals Graphing [Kioseff Trading]
1 stars

This indicator measures real-time tick height movements on a chosen higher timeframe overlay. It accumulates upward and downward tick price distances using tick step precision, then computes directional probability percentages based on recent historical bars.

Indicator v5 VolumeScreeners & dashboards Repaints
Updated 7 weeks ago · None stated GitHub repository of Live Tick Height Counter MTF

Smart Breakout Targets

by vedkanani123
1 stars

A squeeze breakout indicator on the price chart. It detects consolidation when Bollinger Band width and ATR are both compressed for a minimum number of bars, draws a range box with a centerline, and signals a breakout when an impulse candle leaves the range. E

Indicator v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Smart Breakout Targets

KC Combo SR v5.0

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.0

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR v5.0
1 stars

Detects pivot points and draws horizontal support and resistance lines on the price chart. The pivot length, the accuracy tolerance and the timeframe used for assessment can each be automatic or manual. Line widths for active and broken lines can be set, broke

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of Support and Resistance (k)

Using varip Variables

by ivansoft
1 stars

An educational Pine Script v4 indicator that demonstrates varip variables, which keep their values across live updates of the same bar. Part one raises up and down alerts when the close stays above or below a 10-bar moving average for a set number of seconds,

Indicator v4 Repaints
Updated 1 year ago · None stated GitHub repository of Using varip Variables

GM-tracker

by Allen1212
303 stars

GM-tracker plots ARK Invest purchase and sale activity for General Motors on the price chart. It marks buy and sell events with share volume and the stock's weight in the selected ETF. A setting chooses one ARK ETF or all of them, and same-day activity across

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

Test 025 K-Means

by ricardosantos79
261 stars

This script demonstrates an experimental implementation of the K-means clustering algorithm in Pine Script using array structures and a custom pseudo-random number generator. It partitions a dataset into a specified number of clusters based on Euclidean distan

Indicator v4 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Test 025 K-Means
99 stars

This indicator calculates the dominant cycle period of the input source using a Radix-2 Fast Fourier Transform. It builds a windowed array from the source data, performs an in-place iterative FFT, and identifies the peak magnitude within the specified frequenc

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of FFT Dominant Cycle (Radix-2 FFT)

My Script

by be-thomas
65 stars

This script plots candlesticks on the price chart using open, high, low, and close values. It colors the candle body green if close exceeds open and red otherwise, with black wicks and orange borders. The script uses the study function to define it as an indic

Indicator v4 Candlestick patterns
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

This indicator plots a Williams %R oscillator normalized from the native negative range onto a 0–100 scale in a separate pane. It smooths the core with a selectable average, draws a signal line, and marks midline and overbought or oversold crosses. Optional st

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Williams %R Advanced [WavesUnchained]

DX with Price-Aligned Color

by eddiebelaval
7 stars

This indicator calculates the Directional Index from plus and minus directional movement and true range, then plots the DX line in a separate pane. Line color is lime when DX is rising and price is up, red when DX is rising while price is down or when DX is fa

Indicator v5 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of DX with Price-Aligned Color
6 stars

This indicator draws six New York killzone boxes on the price chart, covering morning, afternoon, and opening windows plus their extended ranges. It detects order blocks, fair value gaps, and change-in-state-of-delivery marks on a selectable timeframe, and dra

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Multi-Killzone

LinReg Bands

by g-moe
3 stars

LinReg Bands calculates a linear regression channel and multiple deviation bands over a user-defined length directly on the price chart. It determines the linear regression slope using weighted and simple moving averages, then projects three configurable upper

Indicator v5 TrendVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of LinReg Bands

Gann Square of 144

by regalouisei
2 stars

This indicator overlays a Gann Square of 144 grid on the price chart for technical analysis. Users define a starting date, manual min and max price levels, and can enable automatic price and bar adjustments. The grid features vertical divisions, optional extra

Indicator v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Gann Square of 144
1 stars

This indicator projects price and time levels using Fibonacci golden ratio scaling from an interactively selected anchor candle. Once a user selects a starting time, the script identifies its mid-price and plots vertical time lines into both the past and futur

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Magical Ruller by BITMOON618
1 stars

A price-chart indicator that tracks market structure at two swing scales, internal and external, with an EMA trend ribbon and optional structure-shift arrows. A dashboard lists modules such as trend strength, swing direction, internal and external structure, p

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Smart Market Structure Matrix Pro

KC Combo SR v5.1

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.1

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR v5.1
1 stars

Calculates a VWAP-based pivot on a higher timeframe, either chosen automatically or set by the user, and extends it with up to fifteen Fibonacci multiples as horizontal levels on the price chart. Settings cover VWAP length, how many past periods to plot, line

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of VWAP Expanded Pivots Alt2

GOOG-tracker

by Allen1212
303 stars

GOOG-tracker plots historical purchase and sale transactions of GOOG (Alphabet Inc.) conducted by ARK Invest funds directly on the price chart. The script generates chart labels at specific historical timestamps, indicating buy or sell events along with the co

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

Test 026 Lvl2

by ricardosantos79
261 stars

Test 026 Lvl2 is an experimental overlay indicator designed to plot dynamic structural trend lines. It tracks local extreme high and low price points based on candle relationships and direction shifts, dynamically updating pre-allocated line drawings on the ma

Indicator v4 Support & resistanceTrend
Updated 4 years ago · None stated GitHub repository of Test 026 Lvl2
99 stars

This indicator calculates the first finite difference, or velocity, of a chosen source series. It subtracts the previous bar's value from the current value and returns zero when the previous value is not available. A single source input selects the series, def

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of First Derivative / Velocity (SLOPE)

My Script

by be-thomas
65 stars

Calculates a simple moving average with a dynamic period based on the location of recent highs and lows. It measures the relative distance of the highest high and lowest low bars within a lookback period, uses that distance to adjust the smoothing length dynam

Indicator v4 Moving averagesTrend
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

Shooting Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator marks a bearish shooting star on the price chart. It looks for a small real body near the low, an upper shadow at least twice the body, and no meaningful lower shadow, and it only confirms the pattern while price is in an uptrend. The trend filt

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Shooting Star - Bearish

This indicator calculates synthetic fear and complacency gauges based on the Williams VIX Fix formula for both bullish and bearish directions. It overlays standard deviation bands, percentile lookbacks, and context moving averages to identify volatility spikes

Indicator v6 Volatility & bandsOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Williams VIX Fix Advanced [WavesUnchained]

Fisher Transformator Index

by eddiebelaval
7 stars

This indicator plots a modified Fisher Transform oscillator alongside an adjustable trigger line in a separate pane. It calculates normalized median price values, applies smoothing and clipping, and transforms the result into Gaussian probability distribution

Indicator v5 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Fisher Transformator Index

LinReg MTF

by g-moe
3 stars

LinReg MTF plots up to three linear regression channels on the price chart, each from its own timeframe. For every enabled timeframe it draws an upper band, lower band, and midline from a chosen price source, regression length, and deviation. Users can show or

Indicator v5 Trend
Updated 5 months ago · None stated GitHub repository of LinReg MTF

Gaps Profile [vnhilton]

by regalouisei
2 stars

Gaps Profile draws boxes on the price chart for price gaps that meet a minimum absolute percentage size. It can place the profile to the left or the right of price and highlight the largest or newest up or down gap, or highlight none. Color themes include a si

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Gaps Profile [vnhilton]

This overlay indicator builds exponential harmonic price levels from a resonance factor that combines the golden ratio, pi and a fractal multiplier. On confirmed bars it maps the close to the nearest level, records upward and downward transitions in a Markov c

Indicator v5 Support & resistanceAI / machine learning

SmartTrend Pro

by vedkanani123
1 stars

A trend indicator on the price chart with an adaptive volatility trend engine controlled by a sensitivity and an ATR period. Signals get a score from 0 to 100, with a minimum score and a strong-only option, and pullback signals can be added. A trend cloud, an

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of SmartTrend Pro

KC Combo SR v5.2

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.2

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR v5.2
1 stars

Calculates a VWAP-based pivot on a higher timeframe, either chosen automatically or set by the user, and extends it with up to fifteen Fibonacci multiples as horizontal levels on the price chart. Settings cover VWAP length, how many past periods to plot, line

Indicator v4 Support & resistance
Updated 6 months ago · None stated GitHub repository of VWAP Expanded Pivots Alt2

GOOGL Tracker

by Allen1212
303 stars

GOOGL Tracker visualizes historical buy and sell transactions made by ARK Invest funds on Alphabet Inc. (GOOGL). The script plots labeled markers directly on the price chart at specific historical timestamps to indicate when ARK funds bought or sold shares, al

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

Test 32 Perlin

by ricardosantos79
261 stars

Test 32 Perlin is an experimental indicator that implements a 2D Perlin noise generation algorithm within Pine Script using native array data structures. It uses a custom pseudo-random number generator to build gradient vector grids, then calculates smoothed n

Indicator v4
Updated 4 years ago · None stated GitHub repository of Test 32 Perlin

Force Index (FI)

by mihakralj
99 stars

This indicator calculates the Force Index as the exponential moving average of the change in close multiplied by volume. It plots the smoothed value in a separate pane and draws a dotted zero line. The period input sets the EMA smoothing length, defaulting to

Indicator v6 Oscillators & momentumVolume
Updated 4 weeks ago · Apache-2.0 GitHub repository of Force Index (FI)

My Script

by be-thomas
65 stars

This indicator is a simple demonstration of Pine Script type casting from official TradingView documentation. It defines a length variable as a float, explicitly casts it to an integer, and uses it to compute a 10-period Simple Moving Average of the closing pr

Indicator v4 Moving averages
Updated 6 days ago · GPL-3.0 GitHub repository of My Script

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