Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 105)

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

IWBDT Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator version of a multi-timeframe breakout idea that checks 9 and 18 period EMA direction on three higher timeframes, with the chart timeframe optional. Trend agreement is shown through background colours with adjustable transparency. Inputs set a risk

Indicator v4 TrendBreakout Repaints
Updated 3 months ago · MIT GitHub repository of IWBDT Strategy Indicator

Hurst Peak Marker V5

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the fifth revision of a Hurst cycle peak marker. It filters the hl2 price with bandpass filters from 1 day to 18 year cycles and places labels and lines at cycle peaks. Every cycle has its own bandwidth and period

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V5

Combination by Yzz

by webcrack4
1 stars

Combination by Yzz is an overlay indicator that detects regular and hidden divergences across multiple technical oscillators, including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, CMF, and MFI. It locates price pivots and plots divergence lines and labe

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 9 months ago · None stated GitHub repository of Combination by Yzz

Net Volume

by ivansoft
1 stars

Plots net volume, up volume minus down volume, as a blue line in a separate pane with a zero line. Up and down volume are approximated from lower-timeframe data, chosen automatically or set by the user; a higher lower-timeframe setting gives more history but l

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Net Volume

The Infinite Impulse Response (IIR) Filter calculates a smooth moving average curve designed to reduce lag by incorporating momentum changes over a calculated lag period. It plots directly on the price chart and can dynamically change color based on whether th

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Infinite Impulse Response (IIR) Filter

ARNC-tracker

by Allen1212
303 stars

ARNC-tracker plots historical ARK Invest buy and sell events for ARNC as text labels on the price chart. With the ETF input set to ALL, it places dated labels such as a red sell marker above the bar. The setting chooses which ARK ETF records appear, and this f

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

This script provides a function implementation of a Markov Chain Monte Carlo (MCMC) simulation. On the initial chart bar, it generates a probabilistic random walk path where each step has a configured probability of moving up, moving down, or staying unchanged

Indicator v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Markov Chain Monte Carlo Simulation (MCMC)
257 stars

This indicator marks swing pivot highs and lows on the price chart. It uses left and right bar counts, defaulting to five, to confirm a pivot high and a pivot low. After confirmation it stores the latest high and low and plots them as blue and yellow circles.

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Snag - Swing Pivot HL

Time Series Decomposition and Forecasting is an experimental indicator that decomposes close prices into trend and seasonality components. It evaluates a specified lookback window of price history to calculate centered moving averages, deseasonalized data, and

Indicator v4 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Time Series Decomposition and Forecasting

Chandelier Exit

by mihakralj
99 stars

This indicator plots Chandelier Exit levels on the price chart. It computes true range and a Wilder RMA of true range over a lookback, then subtracts a scaled ATR from the highest high for the long exit and adds it to the lowest low for the short exit. The per

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chandelier Exit

All alert() calls

by be-thomas
65 stars

This indicator calculates a 20-period RSI of the close and plots it in a separate pane with a horizontal line at 50. It marks an RSI cross above 50 with an up triangle and an RSI cross below 50 with a down triangle. When a cross occurs, it calls alert with a l

Indicator v4 Oscillators & momentum
Updated 6 days ago · GPL-3.0 GitHub repository of All alert() calls
47 stars

This indicator identifies inside bars and outside bars, classifying each by close direction as bullish or bearish. It tracks cumulative occurrences and evaluates how often subsequent price action breaks the high or low of each pattern. A summary table drawn on

Indicator v5 Candlestick patternsScreeners & dashboards
Updated 8 weeks ago · None stated GitHub repository of Inside bar/outside bar - stats
47 stars

Henderson Moving Average plots a finite impulse response smoother of the selected source on the price chart. It derives closed-form Henderson weights once, normalizes them to sum to one, and convolves them with a rolling window. The filter is designed to pass

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Henderson Moving Average (HEND)

Divergence Indicator

by TWODS-CAPITAL
37 stars

The Divergence Indicator plots an RSI oscillator in a separate pane alongside horizontal lines for oversold, overbought, and middle levels. It scans for regular and hidden bullish and bearish divergences by comparing pivot high and low points of price with tho

Indicator v5 Oscillators & momentumDivergence Repaints
Updated 3 years ago · MIT GitHub repository of Divergence Indicator

Market Pressure Scale plots two oscillator curves in a separate pane. Setup pressure combines ATR and Bollinger compression, support and resistance proximity, and drying volume. Impulse pressure combines range expansion, volume, and candle body size. A range-c

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of Market Pressure Scale [WavesUnchained]
6 stars

This indicator plots Smart Money Concepts structures directly on the price chart. It identifies and tracks break of structure markers, market structure shifts, fair value gaps, order blocks, and session ranges across London, New York, and Asian trading hours.

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol - The SMC Engine

RSI + MACD + BB

by krosenfeld7
5 stars

This indicator combines the Relative Strength Index, Moving Average Convergence Divergence, and Bollinger Bands to identify setup signals during market consolidation. A long signal requires an RSI pullback under 50 following overbought conditions, a MACD histo

Indicator v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + MACD + BB

SuperTrend

by TamTH-Dev
2 stars

SuperTrend indicator calculates ATR-based bands on the price chart and determines trend direction by comparing current price to the bands. It plots upper and lower SuperTrend bands that shift based on price action. Signals trigger when the trend flips from dow

Indicator v5 TrendVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of SuperTrend
2 stars

This indicator detects and plots multi-timeframe order blocks and wick levels as boxes and labels directly on the main price chart. It tracks bullish and bearish order block zones across selectable intervals ranging from 5-minute charts to monthly charts, with

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT MTF Order Block Wicks [MK]

Intraday Intensity Index (III)

by mushroom-men-Trading
2 stars

The Intraday Intensity Index (III) indicator quantifies volume flow based on price action within each bar's high-low range. It calculates the close price's relative position within the high-low range and scales it by volume to measure buying or selling pressur

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of Intraday Intensity Index (III)

Draw - Lines

by Web3Degenerate
2 stars

This educational Pine Script indicator demonstrates how to draw and manage custom line objects directly on the price chart. It calculates line endpoints by connecting specified historical low prices and bar indices or timestamps to current bar highs. The scrip

Indicator v5 Support & resistance
Updated 2 years ago · None stated GitHub repository of Draw - Lines

Z-Score Lab

by jayadevrana
1 stars

Z-Score Lab plots the simple moving average of close and bands at one and two standard deviations on the price chart, and computes the current z-score of price versus that mean. On the last bar it stores a rolling sample of z-scores and shows a histogram table

Indicator v6 Volatility & bandsMean reversion
Updated 4 days ago · MPL-2.0 GitHub repository of Z-Score Lab

BFI Reversal

by skipp-dev
1 stars

BFI Reversal is a price-chart indicator that marks reversal and continuation setups from pivot structure, clustered zones, and scored flow. It offers balanced or aggressive early-reversal modes and a continuation-breakout mode, with asset profiles for auto, st

Indicator v6 Support & resistanceVolume
Updated 4 days ago · None stated GitHub repository of BFI Reversal

P_err_use_before_def

by GammaExpansion
1 stars

This Pine Script indicator is a minimal test fixture designed for parser and compiler verification. It attempts to call a custom function to multiply the closing price by two prior to its definition block, subsequently plotting the output value in a separate i

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_err_use_before_def

DEPV2 DEBUG S20

by YuceSezar89
1 stars

This indicator watches up to twenty user-chosen symbols and scores each one with four signal classes: trend, momentum, volatility, and volume. Signal mode can use a single class, require several classes to agree, require them in a set order inside a bar window

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S20

Williams Fractals

by morindok
1 stars

Williams Fractals marks swing highs and swing lows on the price chart using Bill Williams fractal rules. A high or low is confirmed when neighbouring bars over a chosen number of periods sit beyond it, with extra checks that allow a few equal highs or lows bes

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Williams Fractals
1 stars

A squeeze and momentum oscillator in a separate pane. It compares an EMA-based volatility band with an ATR channel to detect squeezes and plots a smoothed momentum histogram colored by strength and direction. Regular and hidden divergence between price and mom

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Adaptive Squeeze Momentum Pro
1 stars

A Pine Script v5 indicator in a separate pane, an alternative build of the fifth Hurst peak marker revision. It applies bandpass filters to the hl2 price for cycles from 1 day to 18 years and labels cycle peaks with lines. Bandwidth and period can be set per c

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V5 Alt

Combination by yzz

by webcrack4
1 stars

This indicator scans price action and multiple technical oscillators to detect regular and hidden divergences, displaying them directly on the price chart. It checks up to ten indicators including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, Chaikin Mone

Indicator v4 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Combination by yzz

On Balance Volume

by ivansoft
1 stars

Plots on balance volume in a separate pane: a running total that adds volume on bars where the close rises and subtracts it where the close falls. An optional smoothing line can be added with SMA, EMA, SMMA, WMA or VWMA, or SMA with Bollinger Bands whose width

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of On Balance Volume
947 stars

This indicator checks whether the current chart uses Kagi chart formatting. It analyzes price bar structural characteristics by counting bars where open or close equals the high, low, and adjacent open/close levels across the history. An informational label di

Indicator v4 Candlestick patterns
Updated 12 days ago · GPL-3.0 GitHub repository of Kagi Chart Identifier
330 stars

This indicator plots a Supertrend built from ATR bands on the price chart. It raises a lower band and lowers an upper band from the selected source, then flips trend when the close crosses the opposite band. Green and red broken lines mark the active trend, wi

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Supertrend From Scratch [Alorse]

ATAI-tracker

by Allen1212
303 stars

This indicator overlays historical ARK Invest buy and sell trade records for ATAI directly onto the price chart. It plots visual labels on specific timestamps indicating when ARK ETFs purchased or sold shares, along with multiplier counts showing transaction f

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

Snag - VWAP

by dearvn
257 stars

This indicator plots a custom Anchored Volume-Weighted Average Price (VWAP) directly on the price chart along with optional standard deviation bands. Users can anchor the VWAP to standard time periods like sessions, weeks, or months, or to corporate events suc

Indicator v5 Moving averagesVolatility & bands Repaints
Updated 7 weeks ago · None stated GitHub repository of Snag - VWAP

Order Blocks - Simple

by TradersPost
228 stars

Order Blocks - Simple calculates pivot highs and lows to identify potential smart money concepts order block zones directly on the main price chart. When price breaks structure relative to past pivot points, the indicator draws colored box zones around the hig

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Order Blocks - Simple

Time Series Decomposition and Forecasting is an experimental overlay indicator that decomposes historical price action into trend, centered moving average, and seasonality components using array calculations. It calculates multiplicative seasonal indexes and f

Indicator v4 Trend
Updated 1 year ago · None stated GitHub repository of Time Series Decomposition and Forecasting
99 stars

Chebyshev Type I Filter (CHEBY1) calculates a second-order Chebyshev Type I lowpass digital filter directly on the price chart. It provides noise reduction and trend smoothing with steep roll-off characteristics governed by controlled ripple in the passband. T

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chebyshev Type I Filter (CHEBY1)
47 stars

Leptokurtic Directional Bias is an overlay indicator that measures kurtosis on a chosen source and marks directional bias on the price chart. The source can be a moving average, ATR, volume, close, or a Bollinger-band trend stop. Bias mode switches among RSI m

Indicator v5 Volatility & bandsMean reversion
Updated 8 weeks ago · None stated GitHub repository of Leptokurtic Directional Bias
47 stars

This indicator calculates a 2-pole Infinite Impulse Response highpass filter to isolate higher-frequency components or remove trends from a given price source. It computes an internal highpass value based on a configurable length parameter and plots the result

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · MIT GitHub repository of Highpass Filter (2-Pole)

Doji

by TWODS-CAPITAL
37 stars

This indicator marks standard doji candles on the price chart. It treats a bar as a doji when the range is positive, the body is no larger than five percent of the range, and the upper and lower shadows are nearly equal. Dragonfly and gravestone variants are e

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Doji

This indicator analyzes impulse momentum, swing pivot structure, and nearby clustered support and resistance zones to project three forward price paths on the chart. It calculates weighted probabilities for direct continuation, pullback continuation, and struc

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Market Scenario Projector [WavesUnchained]
7 stars

BTC M2 Global Deviation [MIT] measures and visualizes the correlation between global fiat M2 money supply and Bitcoin price. It aggregates M2 economic data across major national central banks, converts all currencies to USD, and normalizes both the global M2 t

Indicator v6 TrendVolatility & bands
Updated 3 months ago · None stated GitHub repository of BTC M2 Global Deviation [MIT]

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