Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 22)

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

1 stars

Standard Deviation Refurbished plots the standard deviation of a chosen source in a separate pane, with optional smoothing using several moving average types and optional normalization to a 0 to 100 range. Up to ten moving averages of the standard deviation ca

Indicator v5 Volatility & bands
Updated 3 years ago · None stated GitHub repository of Standard Deviation Refurbished

LP Breakeven v2

by ubiquity
1 stars

This indicator charts a Uniswap V3 liquidity position against price, for an ETH and stablecoin pair. The user enters the deposit time and price, the original and current token amounts, and unclaimed fees. It draws dotted lines at the fixed range bottom and top

Indicator v5 Support & resistance Archived
Updated 3 years ago · None stated GitHub repository of LP Breakeven v2

ADX Expand

by JohnsonHsiao
1 stars

This indicator calculates the Average Directional Index alongside a simple moving average to evaluate trend strength. It plots the raw ADX line and its moving average in a separate pane below the price chart. Users can configure the ADX period, the ADX smoothi

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of ADX Expand
1 stars

An overlay indicator that plots the previous week high and low as stepped lines and uses them with previous month and quarter levels to decide when a close counts as support or resistance. Circles mark those support and resistance points, and the chart backgro

Indicator v4 Support & resistanceBreakout
Updated 4 years ago · None stated GitHub repository of Universal Support and Resistance
1 stars

A combined oscillator pane built for a Boom and Crash style strategy. It plots a very long RSI, a short moving average, and a ribbon of five very short EMAs, with price high and low pivots over a lookback window and optional horizontal levels. It adds a True S

Indicator v5 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Bootsie's Boom and Crash Combo

Altcoin Analyzer [Lysergik]

by LysergikProductions
1 stars

This indicator plots the relative price of an altcoin against Bitcoin by dividing the current symbol's OHLC values by INDEX:BTCUSD data. It displays the synthetic pair as either a simple line or custom candlesticks with an optional Heikin-Ashi calculation in a

Indicator v5 Volatility & bandsCandlestick patterns Repaints
Updated 4 years ago · AGPL-3.0 GitHub repository of Altcoin Analyzer [Lysergik]

A candlestick overlay that marks hammer and hanging man candles with up and down arrows, coloured by whether volume on the signal candle was above its 12-bar average. It also highlights inside bars, outside bars and several multi-bar combinations of these thro

Indicator v5 Candlestick patternsVolume
Updated 4 years ago · None stated GitHub repository of My Comprehensive Trading Indicator
1 stars

Commodity Channel Index plots the standard CCI in a separate pane. It measures how far the typical price (HLC3 by default) sits from its simple moving average, scaled by the mean deviation. Dashed lines at plus and minus 100 mark the usual upper and lower band

Indicator v5 Oscillators & momentum Archived
Updated 4 years ago · None stated GitHub repository of Commodity Channel Index

Nadaraya-Watson Envelope

by 0xfffangel
1 stars

An overlay that fits a Nadaraya-Watson kernel regression curve to recent prices and wraps it with upper and lower bands set at a multiple of the mean absolute error. The window size, bandwidth, band multiplier and source are adjustable. Arrows mark where price

Indicator v5 Mean reversionVolatility & bands Repaints
Updated 4 years ago · None stated GitHub repository of Nadaraya-Watson Envelope

Supertrend v2

by greenish7
1 stars

Combines a Supertrend line with a Stochastic RSI filter on the price chart. Supertrend uses an ATR period and multiplier on a chosen source and marks trend flips with buy and sell signals and highlighting. Separate long and short entry conditions require the S

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Supertrend v2

Shortingen Strasse

by eyusufatik
1 stars

An overlay that combines three studies into long and short signals: a Hull moving average in HMA, THMA or EHMA form shown as a trend-colored band, optionally from a higher timeframe, plus two QQE RSI-based momentum components and an oscillator with a short and

Indicator v4 Moving averagesOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Shortingen Strasse

Barbwire v1.0.0

by itmakesyousick
1 stars

Looks for barbwire zones, runs of bars with unusually small ranges, and boxes them on the price chart. It measures how small recent bars are using Heikin-Ashi data, scaled over a period with a level threshold and a minimum number of bars. Settings choose open

Indicator v5 Candlestick patternsVolatility & bands
Updated 4 years ago · None stated GitHub repository of Barbwire v1.0.0

My Script SMA 100

by nosscafe66
1 stars

A very small personal test script that plots a 100-period simple moving average of the close in a separate pane. The code contains a second indicator declaration and a basic condition comparing the previous close with that average, but no inputs, signals or ri

Indicator v5 Moving averages
Updated 4 years ago · None stated GitHub repository of My Script SMA 100
1 stars

A price-chart overlay that draws a moving average channel from a higher timeframe. It computes the moving average of the high, close and low on a chosen timeframe of 1 hour, 4 hours, daily, weekly or monthly, and plots them as three red lines. Settings pick th

Indicator v5 Moving averagesTrend Repaints
Updated 4 years ago · None stated GitHub repository of Switch using an expression
1 stars

A multi-tool overlay that bundles several classic studies on one chart, each with its own on/off switch. These include a blended BBI moving average colored by position against price, four configurable EMAs, Bollinger bands, parabolic SAR, zigzag with fib level

Indicator v5 TrendMoving averages
Updated 4 years ago · MIT GitHub repository of Victorinox by Illupute v1
1 stars

A multi-study overlay that plots a triple exponential moving average, short SMAs, EMAs at 9, 20, 50, 100 and 200, and an ATR band around an EMA midline. It shades the background when the 9 and 20 EMAs cross and when the CCI moves back through plus or minus 100

Indicator v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of TEMA + 9 EMA + ATR + CCI + WR

RSI & Stochastic

by tkittich
1 stars

The script plots the Relative Strength Index and Stochastic oscillator indicators in separate panes. It calculates the RSI with customizable length, source, and MA type including Bollinger Bands, and the Stochastic oscillator with %K and %D periods. It draws o

Indicator v5 Oscillators & momentumVolatility & bands
Updated 4 years ago · None stated GitHub repository of RSI & Stochastic

0DTE IF

by tyler314
1 stars

This indicator simulates zero-day-to-expiration options trades by plotting scheduled entry and exit shapes directly on the price chart. It signals entries on Mondays, Wednesdays, and Fridays at a user-defined time when the VIX remains below a specified limit.

Indicator v5 Sessions & timeVolatility & bands
Updated 4 years ago · None stated GitHub repository of 0DTE IF

Armonia de los MACD

by micayael
1 stars

A separate-pane indicator that plots a MACD with a simple-average signal line, colored by whether it is rising or falling around zero. On common timeframes it also plots a second MACD scaled up by a fixed multiplier toward a higher timeframe, drawn as circles.

Indicator v4 Oscillators & momentumTrend
Updated 4 years ago · None stated GitHub repository of Armonia de los MACD

Leo Supertrend

by kodtodya
1 stars

Leo Supertrend calculates and plots a Supertrend indicator alongside an Exponential Moving Average on the main price chart. It determines trend direction by tracking price relative to an ATR-based volatility band, supporting both standard RMA and simple moving

Indicator v4 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Leo Supertrend

The script calculates two exponential moving averages with 21 and 34 periods and plots them on the price chart. It fills the area between them in a color that changes from green to red based on whether the fast MA is above the slow MA. This creates support ban

Indicator v5 Moving averagesTrend Archived
Updated 4 years ago · MPL-2.0 GitHub repository of MehdiJangjou - BullMarket Support Type 2

Risk

by tseitz
1 stars

An indicator in a separate pane that estimates a normalised risk metric between 0 and 1. It takes the log distance between price and its 365 period simple moving average, scales it by the bar index raised to a power, then normalises it against the running high

Indicator v5 Volatility & bands
Updated 4 years ago · None stated GitHub repository of Risk

This indicator is an unfinished attempt to reproduce Binance's BTCUSDT perpetual funding rate in a separate pane. It requests the Binance premium index on a one-minute basis, builds a weighted average over each eight-hour funding period, and adds a clamped int

Indicator v5 Repaints
Updated 4 years ago · None stated GitHub repository of Binance Premium Index and Funding Rate

MA+ADX+DMI

by fifiteen82726
1 stars

Plots a fast and a slow simple moving average on the price chart and shades the area between them. A buy highlight appears when the fast average crosses above the slow one while the positive directional index is above the negative and ADX is above a key level.

Indicator v4 TrendMoving averages
Updated 5 years ago · None stated GitHub repository of MA+ADX+DMI
1 stars

A Pine v4 overlay that draws a volume profile on the price chart. Volume over a lookback window is split into price bins and shown as horizontal bars, with an optional point of control line at the busiest level. Settings control lookback depth up to 1000 bars,

Indicator v4 VolumeSupport & resistance
Updated 5 years ago · None stated GitHub repository of Volume Profile + 3EMA

Donchian Ichimoku Hybrid

by rocketbrainsurgeon
1 stars

This indicator builds a Donchian channel with midlines between the extremes, then uses Ichimoku-style logic to classify the market as trending up, trending down or ranging. Bars are coloured green, red or gray and the zones near the basis are shaded. An option

Indicator v4 TrendBreakout
Updated 5 years ago · GPL-3.0 GitHub repository of Donchian Ichimoku Hybrid

Databox

by rosskevin
1 stars

Databox is an overlay indicator that fetches and displays fundamental financial data directly on the main price chart. It retrieves key corporate metrics such as book value per share, cash and equivalents, total shares outstanding, stock buyback yield, and qua

Indicator v4 Screeners & dashboards
Updated 5 years ago · AGPL-3.0 GitHub repository of Databox

BTCNOK

by taco-c
1 stars

This indicator plots the Bitcoin price in Norwegian kroner on the price chart. It multiplies a Bitcoin quote in USD or EUR by the matching dollar or euro to NOK rate, both requested on the one-minute timeframe. The Currency input switches the Bitcoin and forei

Indicator v4
Updated 5 years ago · MPL-2.0 GitHub repository of BTCNOK

War Zone Control

by CriptomonedasRentables
1 stars

War Zone Control calculates a fast Exponential Moving Average (EMA) and a slow Weighted Moving Average (WMA) using the selected price source. It plots both moving averages directly on the price chart. When the fast EMA crosses above the slow WMA, it displays a

Indicator v4 TrendMoving averages
Updated 5 years ago · None stated GitHub repository of War Zone Control
1 stars

A standard Relative Strength Index drawn in a separate pane, calculated with Wilder smoothing over an adjustable length and source. It includes horizontal lines at 70, 30 and an added middle line at 50, with the area between 70 and 30 shaded. It is a plain osc

Indicator v4 Oscillators & momentum
Updated 5 years ago · GPL-3.0 GitHub repository of Relative Strength Index by TH

DMI

by digasic
1 stars

This indicator calculates and displays the Directional Movement Index (DMI) and Average Directional Index (ADX) in a separate pane below the price chart. It measures directional price movements by computing the positive directional indicator (+DI), negative di

Indicator v4 TrendOscillators & momentum
Updated 6 years ago · None stated GitHub repository of DMI
1 stars

This indicator plots Bitcoin network hash-rate moving averages in a separate pane. It requests daily hash rate, applies a short and a long simple moving average, and can draw them as ribbons or as an oscillator. Optional markers show miner capitulation when th

Indicator v4 Moving averagesTrend Repaints
Updated 6 years ago · GPL-3.0 GitHub repository of Bitcoin Hash Ribbons

Kal's MTF OBV HAAR

by chipmaker
1 stars

Kal's MTF OBV HAAR is an indicator that plots OBV EMAs with lengths 9 and 4 on a separate pane to highlight volume trends. It calculates CCI with length 10 and CMF with length 10, using crossovers and crossunders of the CCI line at zero for up and down signals

Indicator v4 TrendOscillators & momentum Repaints
Updated 6 years ago · None stated GitHub repository of Kal's MTF OBV HAAR
947 stars

Calculates the Corrected Moving Average (CMA) alongside a standard Simple Moving Average (SMA) over a specified period. The indicator dynamically adjusts the average based on sample variance and deviation from price. Both lines plot directly on the price chart

Indicator v6 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Corrected Moving Average
575 stars

This indicator scans multiple stock symbols for ICT Displacement Candles. It detects strong price moves characterized by long candles and minimal wicks that exceed a minimum bar count and a set deviation percentage from average range. Signals for bullish and b

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Displacement Candles Scanner

This indicator identifies and plots key options expiration dates on the price chart. It calculates monthly OpEx (the third Friday of each month), quarterly OpEx (March, June, September, December), and corresponding VIX expiration dates, drawing vertical lines

Indicator v6 Sessions & time
Updated 2 months ago · MIT GitHub repository of Expiration Highlights: Opex, Quarterly Opex & VIX with Vanna/Charm

2618-Tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of ticker 2618 on the price chart. When the ETF input is ALL, it places green Buy labels below bars and red Sell labels above bars on fixed calendar dates, with an X1 mark for the recorded

Indicator v4
Updated 2 years ago · None stated GitHub repository of 2618-Tracker
285 stars

Mean Reversion Study is an indicator that identifies trade setups combining exponential moving averages, RSI extremes, and engulfing candlestick patterns. It highlights bullish setups when a bullish engulfing candle forms below the EMA while RSI is oversold, a

Indicator v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Study
228 stars

This indicator plots a customizable horizontal price line directly on the price chart and displays dynamic distance metrics, including ticks, dollars, and points relative to the current close. It monitors price interactions to trigger cross alerts and construc

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Advanced Order Line with TradersPost
220 stars

Candlestick - Inside Bar Pattern is an overlay indicator that identifies inside bar setups across three consecutive candles. It detects when the price range of the preceding bar is completely contained within the range of the bar prior to it. The direction of

Indicator v5 Candlestick patternsBreakout
Updated 1 year ago · None stated GitHub repository of Candlestick - Inside Bar Pattern

Deduct

by TaichiS
219 stars

This indicator displays moving average deduction reference points directly on the price chart. It plots dynamic labels on historical bars corresponding to short, medium, and long lookback periods, defaulted to 20, 60, and 120 bars. Each text label displays the

Indicator v4 Moving averagesSupport & resistance
Updated 5 years ago · None stated GitHub repository of Deduct

Daily Trend Filter

by agutinbaigo28
147 stars

Calculates market regime conditions by combining RSI, MACD, and ADX/DMI indicators. It evaluates whether the market is in a strong bullish, strong bearish, neutral, or non-trending regime. The script plots a colored line overlaying the close price to reflect t

Indicator v5 TrendOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of Daily Trend Filter

Fractal Model

by fxraptor-alpha
138 stars

Fractal Model is a price-chart indicator that tracks multi-timeframe liquidity sweeps, reversal confirmation, and forward projections. It draws higher-timeframe candles beside price, marks high and low sweeps, and tracks CISD plus later IC-CISD levels after a

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 weeks ago · Custom licence GitHub repository of Fractal Model

Consolidation Filter

by capissimo
114 stars

Consolidation Filter identifies market indecision and sideways ranges characterized by low volatility. It computes a forecast oscillator variant comparing price against an exponential moving average or a McGinley dynamic across three selectable methods. When t

Indicator v5 Volatility & bandsMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Consolidation Filter
99 stars

The Absolute Price Oscillator (APO) script calculates the difference between a fast exponential moving average (EMA) and a slow EMA for a specified source series. It uses explicit EMA calculations featuring warmup compensation to handle early bar initializatio

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Absolute Price Oscillator (APO)

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