Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 21)

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

Sovren COT Smart Index

by Eazynesta
1 stars

A separate-pane indicator that reads weekly Commitments of Traders data through a TradingView library and plots net positioning for commercial, non-commercial and non-reportable traders. Each series is normalised to a 0 to 100 scale over a configurable lookbac

Indicator v5 Oscillators & momentum Repaints
Updated 2 years ago · None stated GitHub repository of Sovren COT Smart Index

Genie b

by Hurairahengg
1 stars

This minimal Pine Script indicator plots the closing price directly onto the price chart. Developed as part of the GenieV1 automated scalping project, it serves as a lightweight template or baseline script initialized with expanded allowances for boxes, labels

Indicator v5
Updated 2 years ago · None stated GitHub repository of Genie b

Mi Indicador

by winos
1 stars

Plots a fixed list of hard-coded price values as circles and short line segments, offset forward from the last bar so they appear as a manually entered projected path on the chart. The values are typed directly into the code, so they do not respond to market d

Indicator v5
Updated 2 years ago · None stated GitHub repository of Mi Indicador

Donchian Channel

by JoeTonDev
1 stars

An overlay that plots a Donchian channel from the prior highest high and lowest low over an adjustable length, with an optional midline and fill, plus a fast and a slow EMA. It highlights a breakout bar when the close crosses the channel, sits on the matching

Indicator v5 BreakoutTrend
Updated 2 years ago · None stated GitHub repository of Donchian Channel

An overlay indicator combining several tools. It finds pivot highs and lows and groups them into support and resistance channels, limited by width, count and minimum strength, drawn with a chosen line style and colours. It also plots three smoothed moving aver

Indicator v5 Support & resistanceMoving averages
1 stars

This indicator calculates and plots the Directional Movement Index (DMI), including the Average Directional Index (ADX), Positive Directional Indicator (+DI), Negative Directional Indicator (-DI), and raw Directional Index (DX). It measures directional price m

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Directional Movement Index
1 stars

A smart money concepts toolkit on the price chart that marks market structure with internal and swing structure, order blocks, equal highs and lows, fair value gaps and premium, discount and equilibrium zones. It can colour candles, flag boring candles and sho

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of My Algo Smart Money Concepts

BB_signal1

by subhrapratim07
1 stars

This indicator plots standard Bollinger Bands consisting of an upper band, lower band, and a simple moving average directly on the price chart. It calculates the Relative Strength Index to identify overbought conditions. A bearish signal displays as a red down

Indicator v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of BB_signal1

Chart Viewer

by hsmalvajerdi
1 stars

Chart Viewer overlays user-supplied price data on the chart. It reads a Candle array and plots each bar's open, high, low and close with plotcandle, coloring green when close is above open, gray when they match, and red otherwise. A second Order array draws gr

Indicator v5
Updated 2 years ago · None stated GitHub repository of Chart Viewer

Trend Reversal

by Trader-IKU
1 stars

Combines an ATR-based Supertrend with an On Balance Volume momentum oscillator. The Supertrend bands, with adjustable ATR period, source and multiplier, appear on the price chart with up and down trend highlighting. The OBV momentum compares a short and a long

Indicator v5 TrendVolume
Updated 2 years ago · MIT GitHub repository of Trend Reversal
1 stars

A Pine v5 overlay that plots four EMAs (20, 50, 100 and 200) together with a daily central pivot range, taken from the previous day's values, and a full set of pivot point support and resistance levels. Pivot types include Traditional, Fibonacci, Woodie, Class

Indicator v5 Support & resistanceMoving averages Repaints
Updated 2 years ago · None stated GitHub repository of Scalping EMA and Daily Pivots

Multi Indicator

by ali-rezahashemi
1 stars

This indicator combines four tools on the price chart: three simple moving averages (12, 24 and 50 by default), a SuperTrend with an inner zone band and a slower long-term SuperTrend, NSDT HAMA-style candles with gradient colours, and a UT Bot style trailing s

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Multi Indicator
1 stars

This indicator requests quarterly financial statement data for the current symbol and shows it in a table at the bottom right of the price chart. It groups readings under growth sustainability and solvency, including return on invested capital, reinvestment ra

Indicator v5 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of Table of Fundamental Data & Ratios
1 stars

This indicator combines a squeeze momentum histogram with an ADX line in a separate pane. The squeeze part compares Bollinger Bands with Keltner Channels and marks the squeeze state with coloured crosses on the zero line, while the histogram shows a linear reg

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of ADX + Squeeze Momentum Indicator

LWTI-pro

by 78i87
1 stars

LWTI-pro is a custom momentum oscillator plotted in a separate pane. It computes a normalized line from the difference between current and per-bar-close prices divided by ATR then scaled to center at 50. Optional smoothing applies SMA EMA WMA or RMA to the lin

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 years ago · None stated GitHub repository of LWTI-pro
1 stars

Plots a modified Bollinger setup on the price chart. It draws a 20-bar EMA basis with inner bands at one standard deviation and outer bands at an adjustable multiplier, plus a 13-bar EMA and a 200-bar EMA coloured by price position. Band width is compared with

Indicator v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of Modified Bollinger by Alex
1 stars

A Pine v4 indicator in a separate pane that combines MACD and RSI. It plots the standard MACD line, signal line and a four-colour histogram, with options to use simple instead of exponential averages for the oscillator and the signal. The RSI is rescaled and d

Indicator v4 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of MACD + RSI Robert's Version

Kavi's Custom Indicators

by kavichelvan
1 stars

A chart overlay combining pivot-based support and resistance lines, five smoothed moving averages (10, 21, 50, 100 and 200), and a zigzag with order block and breaker block boxes. Break labels appear when price crosses a pivot level with a volume-oscillator fi

Indicator v5 Support & resistanceMoving averages
Updated 2 years ago · None stated GitHub repository of Kavi's Custom Indicators

ARI wrong gap finder

by alessioricco
1 stars

ARI wrong gap finder is an overlay indicator that searches recent bars for bearish and bullish price gaps. It compares an older low or high range with the current bar and marks a gap only when the percentage difference exceeds the minimum allowed. A qualifying

Indicator v4 Support & resistance
Updated 2 years ago · Apache-2.0 GitHub repository of ARI wrong gap finder
1 stars

A smart money concepts overlay that marks swing pivots, break of structure and change of character events, liquidity sweeps, and liquidation wicks on the price chart. The pivot length and liquidation validity window are adjustable, candles can be coloured by c

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of SMC Market Structure

Señal Compra/Venta

by LucasNatoli
1 stars

This indicator plots buy and sell markers on the price chart using RSI and Bollinger Bands. A buy triangle appears when RSI is at or below the oversold level and the close is at or below the lower band. A sell triangle appears when RSI is at or above the overb

Indicator v4 Oscillators & momentumVolatility & bands
Updated 2 years ago · CC0-1.0 GitHub repository of Señal Compra/Venta
1 stars

An unfinished multi-timeframe envelope script on the price chart. The visible code sets a single input, the SMA period with a default of 25, uses the close as source and defines a helper to compare the current timeframe with a given one. No plots, signals or a

Indicator v5 Moving averages
Updated 2 years ago · None stated GitHub repository of MultiTF Envelope Symbols
1 stars

This indicator overlays two variants of Bollinger Bands and four simple moving averages on the price chart. It plots the Bollinger basis along with upper and lower bands for two adjustable settings using different lengths and multipliers. It also displays MA7,

Indicator v4 Moving averagesVolatility & bands
Updated 2 years ago · None stated GitHub repository of Multi-Indicator Script

SuperBollingerTrend

by eduardofx
1 stars

A price-chart overlay that builds a trailing line from Bollinger Bands calculated on highs and lows. The line follows the lower band while price is above it and the upper band while price is below, flipping colour when price crosses. Each flip can draw a zigza

Indicator v5 TrendVolatility & bands
Updated 2 years ago · None stated GitHub repository of SuperBollingerTrend
1 stars

This indicator scans each bar for a handful of candlestick patterns and marks them on the price chart with small symbols. It checks Doji, Hammer, Inverted Hammer, Shooting Star, Hanging Man, Bullish and Bearish Engulfing, Morning Star and Evening Star. Context

Indicator v5 Candlestick patterns
Updated 2 years ago · MIT GitHub repository of Candlestick Patterns Detector

Engulf Indicator

by theomgdev
1 stars

The Engulf Indicator calculates a custom candlestick metric in a separate pane by evaluating the ratio of candle body size to total candle range, comparing it with the previous bar's body size, and normalizing the result with the Average True Range (ATR). It p

Indicator v5 Candlestick patternsVolatility & bands
Updated 3 years ago · None stated GitHub repository of Engulf Indicator

An overlay indicator that draws Bollinger-style bands around a 20-period simple moving average using four standard deviation multipliers based on Fibonacci ratios: 2, 2.618, 3.618 and 4.618 by default. Upper bands are red and lower bands green, and the outermo

Indicator v5 Volatility & bandsMean reversion
Updated 3 years ago · GPL-3.0 GitHub repository of Bollinger Bands Fibonacci Ratios
1 stars

Wonverine - Lines calculates and plots multiple Simple Moving Averages (SMA) and Exponential Moving Averages (EMA) directly on the main price chart. It features predefined periods including 20, 50, 100, 200, and 500 bars to help identify short-term, medium-ter

Indicator v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of Wonverine - Lines

ROE / PER

by parksb
1 stars

This indicator retrieves fundamental financial metrics and calculates valuation ratios for equity analysis in a separate pane. It fetches return on equity, earnings per share, and book value per share to compute price-to-earnings, price-to-book, and the ratio

Indicator v5
Updated 3 years ago · None stated GitHub repository of ROE / PER

Thange Woodwind Playbook

by govindthange
1 stars

A chart indicator built on Ichimoku-style components, with short-term, mid-term and long-term equilibrium lines, a lagging span and a cloud called the resistance band. It shows entry and exit signals and plans position size from an account size and maximum ris

Indicator v5 TrendSupport & resistance
Updated 3 years ago · Custom licence GitHub repository of Thange Woodwind Playbook

Schaff Trend Cycle

by goki75
1 stars

Schaff Trend Cycle is a trend following indicator that computes a smoothed version of the MACD difference between fast and slow EMAs applied to close prices. It normalizes this difference over a specified length, applies iterative smoothing, and plots the resu

Indicator v5 TrendMoving averages
Updated 3 years ago · None stated GitHub repository of Schaff Trend Cycle
1 stars

An indicator in a separate pane that estimates annualised volatility with a barrier method. It resets a price barrier whenever high or low moves beyond a set fractional distance, records how long each exit took, averages those times over a window, and converts

Indicator v5 Volatility & bands
Updated 3 years ago · GPL-3.0 GitHub repository of Barrier Volatility Estimator
1 stars

This indicator plots three moving averages on the price chart: a 36-period exponential average in red, a 200-period exponential average in yellow and a 200-period simple average in purple. The area between the 200 EMA and the 200 SMA is shaded. Lengths and col

Indicator v5 Moving averagesTrend
Updated 3 years ago · MIT GitHub repository of EMA 36/200 + 200 SMA
1 stars

A separate-pane port of the LazyBear WaveTrend oscillator. It plots a fast and a slow line, overbought and oversold levels, a shaded difference area and circle markers where the lines cross, coloured by direction, and also colours the cross bars. Channel and a

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of WaveTrend with Crosses
1 stars

Auto Fib Retracement + Extension draws selectable Fibonacci retracement and extension levels on the price chart from recent price pivots. A lookback sets how far back pivots are found, and a setting extends earlier Fibonacci sets. Traders can show or hide indi

Indicator v4 Support & resistanceOscillators & momentum
Updated 3 years ago · Apache-2.0 GitHub repository of Auto Fib Retracement + Extension
1 stars

A separate-pane indicator that ranks the current Bollinger Band Width against its own history and shows the result as a percentile line from 0 to 100. Settings include the price source, basis moving average type, band length, a lookback of 252 bars, line colou

Indicator v5 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Bollinger Band Width Percentile

Nilmiya Heikin Ashi

by jubayernil
1 stars

Nilmiya Heikin Ashi calculates and plots custom Heikin Ashi candlesticks in a separate indicator pane below the main chart. It fetches the smoothed open, high, low, and close values for the active symbol and timeframe using security calls. Bullish bars where t

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · None stated GitHub repository of Nilmiya Heikin Ashi

YIGITBOX PHL2

by hassonya
1 stars

An overlay that draws two sets of pivot levels from the previous day's range: a classic pivot with first resistance and support, and a close-based pivot with levels half a range above and below. The range comes from daily data, or weekly or monthly on higher c

Indicator v5 Support & resistanceSessions & time
Updated 3 years ago · None stated GitHub repository of YIGITBOX PHL2

Jiaolong 10

by coderbullbull
1 stars

An oscillator-style indicator in a separate pane, rewritten from a Chinese charting platform formula. It builds EMA-difference momentum series from the chart price and from hourly Bitstamp BTCUSD data, plus a smoothed stochastic-like trend line over a 55-bar r

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Jiaolong 10

RSI Dynamics

by nvFede
1 stars

A Pine v5 oscillator in a separate pane that plots a five-bar simple moving average of the RSI. Horizontal lines are drawn at 25 and 75 with a shaded band between them. Inputs set the RSI length, 14 by default, and the source. It has no signals or alerts and s

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of RSI Dynamics

ATR

by AliSawari
1 stars

An indicator that draws stop-loss and take-profit style lines on the price chart using a 14-period ATR. A 200-period EMA decides direction: in an uptrend the lower line sits one ATR below the close and the upper line one ATR above, and in a downtrend they swap

Indicator v5 Volatility & bandsTrend
Updated 3 years ago · MPL-2.0 GitHub repository of ATR

Sweeps

by lesari08
1 stars

The Sweeps indicator detects and plots bullish and bearish liquidity sweeps and raids directly on the main price chart. It identifies instances where price moves beyond significant swing highs or lows on a selected timeframe without closing past them, indicati

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 years ago · None stated GitHub repository of Sweeps

Sabarobe

by jinjernot
1 stars

An overlay indicator that stacks many familiar tools on one chart: Bollinger Bands, simple moving averages at 5, 10, 50, 100 and 200, exponential averages at 10, 55, 100 and 200, and an Ichimoku cloud. It also marks triangles when a reversal-style candle forms

Indicator v4 Moving averagesTrend
Updated 3 years ago · None stated GitHub repository of Sabarobe

Keltner Width KW

by Kasra-Saeid
1 stars

The Keltner Width indicator calculates the percentage width of Keltner Channel bands based on a moving average of a selected source price multiplied by a range such as ATR or True Range. It plots the resulting width value in a separate pane using column style

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of Keltner Width KW

N Pattern

by itmakesyousick
1 stars

This indicator searches recent pivots for an N-shaped pattern of points A, B and C and projects a future point D on the price chart. Pivot left and right bars, lookback, and validation rules based on ATR and leg volume control which patterns qualify. Projected

Indicator v5 Support & resistanceBreakout Repaints
Updated 3 years ago · None stated GitHub repository of N Pattern

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