Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 113)

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

DX SPX VLT

by g-moe
3 stars

DX SPX VLT is an overlay indicator that evaluates market trends by combining moving average slope analysis, Aroon filters, and DTEK Supertrend components. It plots colored background highlights to represent overall trend direction, displays a moving average li

Indicator v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of DX SPX VLT
2 stars

Dynamic Gap Probability Tool is a price-chart indicator that plots a selectable moving average and measures how far the close sits from it as a rounded percentage. It stores historical counts of bars above and below that average at each deviation size, then sh

Indicator v6 Moving averagesScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Dynamic Gap Probability Tool

Moving Averages Trends and Filters

by mushroom-men-Trading
2 stars

This script provides a consolidated library of moving average calculations in Pine Script v6. It implements FIR functions including ALMA using Gaussian weights, BLMA with Blackman window, and BWMA using Bessel function, along with IIR moving averages from miha

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Moving Averages Trends and Filters

HMD MACD

by Web3Degenerate
2 stars

HMD MACD plots a moving-average convergence divergence oscillator in a separate pane. It subtracts a slow moving average from a fast moving average of the chosen source, then smooths that difference into a signal line. Users can select SMA or EMA for both line

Indicator v5 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of HMD MACD

P_syn_alerts_log

by GammaExpansion
1 stars

This Pine Script indicator detects when the closing price crosses above a 20-period simple moving average. When a crossover occurs, it triggers an alert condition, executes a dynamic alert call with the current close price, and plots a value of 1 (and 0 otherw

Indicator v6 Moving averagesTrend
Updated 7 days ago · MIT GitHub repository of P_syn_alerts_log

Supply & Demand Zones XL

by rosijay17-cmd
1 stars

An overlay indicator that finds swing pivots, with adjustable bars left and right, and turns them into supply and demand zones sized by an ATR multiple. Overlap rules stop zones of the same or opposite type from stacking. Zones can be extended, historical and

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Supply & Demand Zones XL

DEPV2 DEBUG S33

by YuceSezar89
1 stars

This indicator monitors up to twenty cryptocurrency perpetual pairs across four analytical categories: trend, momentum, volatility, and volume. It generates trade signals using multiple modes, including single-method execution, simultaneous confluence requirin

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

This indicator computes the average height of green and red candles inside a user-selected time range. Inputs define start and end timestamps that filter candle data in real time. When the range is active the script accumulates heights for green candles (where

Indicator v5 Support & resistanceCandlestick patterns
Updated 7 weeks ago · None stated GitHub repository of Average Green/Red Candle Heights

Cardwell Dual Confluence

by vedkanani123
1 stars

A price-chart indicator by MarkitTick based on Cardwell RSI ideas. It produces buy and sell signals from a fast and slow smoothed RSI crossover and from an RSI regime check combined with a moving average trend, with bull and bear RSI ranges. A minimum bar gap

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Cardwell Dual Confluence

Fable Bear LTF v1.1

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that draws numbered signals on the price chart. It uses relative volume tiers, standard deviation displacement with a nine multiplier default, a VWMA with ATR Supertrend latch, pocket pivots and fai

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.1

Hurst Through Marker

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane that marks cycle troughs, which its title spells as throughs, using Hurst bandpass filters. The hl2 price is filtered for cycles from 1 day to 18 years and labels and lines are drawn where cycle lows form. Bandwidt

Indicator v5 Oscillators & momentumSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Through Marker
1 stars

The Volume Profile [LuxAlgo] indicator calculates volume distribution across price levels using a user-defined lookback period on the TradingView price chart. It plots histogram bars showing volume intensity at each price level, with options to display the rol

Indicator v4 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of Volume Profile [LuxAlgo]
1 stars

Plots standard deviation, variance and mean absolute deviation of close over a chosen length in a separate pane, and overlays a simple moving average of the same length on the price chart. The length input defaults to five. It also contains hand-written versio

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Standard Deviation Plots
1 stars

An overlay indicator that detects confirmed pivot highs and pivot lows using separate left and right bar counts for each, ten by default. A pivot is only known after the right-hand bars have printed, so it appears with a delay. The visible code defines the det

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Pivot Points High Low
947 stars

Recursive Moving Trend Average (RMTA) is an overlay indicator that calculates a recursively smoothed moving average line to track market direction. It computes a secondary recursive variable using an exponential smoothing factor derived from the user-selected

Indicator v4 TrendMoving averages
Updated 12 days ago · GPL-3.0 GitHub repository of Recursive Moving Trend Average
330 stars

This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab

Indicator v4 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of 3 EMA/SMA + Cross [Alorse]

BFLY-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest funds for Butterfly Network (BFLY) directly on the price chart. It renders green labels below bars for buy actions and red labels above bars for sell actions, noting how many ARK

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

Volume profile

by dearvn
257 stars

This indicator builds a session volume profile on the price chart for a daily or weekly period. It distributes volume, or open-interest change when that data type is selected, across price rows and plots the point of control plus optional value-area high and l

Indicator v5 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Volume profile
228 stars

This overlay indicator marks confirmed pivot highs and pivot lows and draws horizontal resistance and support lines from those prices. Each line starts at the pivot bar and extends a set number of bars to the right. It keeps up to ten support lines and ten res

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Support & Resistance - Basic

Bubbles Indicator

by capissimo
114 stars

Bubbles Indicator visualizes market squeezes and bursts in a separate pane using standard deviation and normalized Bollinger Bands. It incorporates a Sinusoid oscillator, a scaled Commodity Channel Index (CCI), and a fast and slow RSI divergence factor to iden

Indicator v4 Volatility & bandsOscillators & momentum Repaints
Updated 1 year ago · None stated GitHub repository of Bubbles Indicator

Decay Min-Max Channel

by mihakralj
99 stars

Decay Min-Max Channel plots a price channel whose upper and lower bounds decay toward their midpoint. Each bar it stores highs and lows in a rolling window, tracks the latest extremes, and applies exponential decay when no new high or low appears. The decay co

Indicator v6 Support & resistanceVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Decay Min-Max Channel

Bar States

by be-thomas
65 stars

This educational indicator demonstrates the behavior of Pine Script bar state built-in variables across the chart. It checks whether each candle is historical or real-time, new or confirmed, and whether it represents the first or last bar. For each bar, it ren

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Bar States
47 stars

Range Projections [Statistical Levels] calculates and projects expected price range levels based on historical statistical percentile data for specific trading session opens, such as Globex, London, NY Futures, and NY RTH. It uses day-of-week data to plot stat

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Range Projections [Statistical Levels]

Jarque-Bera Test (JB)

by mihakralj
47 stars

The script calculates the Jarque-Bera statistic of a chosen source over a rolling sample. It estimates sample mean, variance, skewness, and excess kurtosis, then plots the resulting statistic in a separate pane. Horizontal lines mark approximate chi-squared cr

Indicator v6
Updated 8 months ago · MIT GitHub repository of Jarque-Bera Test (JB)

Evening Doji Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator detects the bearish Evening Doji Star candlestick pattern directly on the price chart. It checks for a three-bar pattern comprising a long bullish candle, a gapping doji body, and a long bearish candle closing below the midpoint of the first can

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Evening Doji Star - Bearish

This overlay indicator builds a horizontal momentum profile over a chosen lookback. It splits price into rows and plots the average WaveTrend of each zone as a bar colored by direction, plus an optional MFI reference band that stays gray when real trade volume

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Momentum Profile [WavesUnchained]

EFI Normalized

by g-moe
3 stars

This indicator plots a normalized Elder Force Index in a separate pane. It calculates the Elder Force Index as an EMA of the prior close price change multiplied by volume, smoothed over the input length. The result is normalized to a 0-100 scale using the high

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

Negative Volume Index (NVI)

by mushroom-men-Trading
2 stars

This indicator calculates the Negative Volume Index and plots it as a yellow line in a separate pane. It updates the running index only on bars where volume is lower than the previous bar, multiplying the value by the ratio of the current price source to the p

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of Negative Volume Index (NVI)

HMD Relative Strength Index

by Web3Degenerate
2 stars

Calculates a Relative Strength Index with user-defined length and overbought/oversold thresholds. It identifies exhaustion setups by pairing momentum extremes with bullish and bearish engulfing candlestick patterns imported from an external library. Buy signal

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of HMD Relative Strength Index

P_syn_arrays

by GammaExpansion
1 stars

This indicator exercises Pine Script v6 array functions and plots one combined value in a separate pane. It keeps a rolling array of the latest close prices, capped at fifty bars, then builds numeric arrays and applies sort, insert, remove, copy, reverse, conc

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

DEPV2 DEBUG S34

by YuceSezar89
1 stars

DEPV2 DEBUG S34 is a multi-symbol crypto signal indicator that analyzes 20 Binance pairs (BTC, ETH, SOL, and others) using trend, momentum, volatility, and volume methods. It plots signals in a separate pane based on user-selected confirmation modes such as si

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

Bitmoon System

by morindok
1 stars

Calculates dynamic fractal levels and time symmetry dynamic lengths on the main price chart. It uses extended Williams Fractals across a user-defined fractal period to detect key structural pivot highs and lows. The script measures bar distances between detect

Indicator v5 Support & resistanceTrend Repaints
Updated 7 weeks ago · None stated GitHub repository of Bitmoon System

Fable Bear LTF v1.3

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that places numbered signals on the price chart. It draws on relative volume tiers, a standard deviation displacement test with a default multiplier of five, a VWMA with ATR Supertrend latch, pocket

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.3
1 stars

A Pine Script v5 indicator in a separate pane, the second revision of a Hurst cycle trough marker, whose title spells trough as through. It runs the hl2 price through bandpass filters for cycles from 1 day to 18 years and draws labels and lines where cycle low

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

Supertrend Comparison

by ivansoft
1 stars

Plots the built-in Supertrend with a factor of 3 and ATR period of 10, then plots a hand-written Pine version of the same calculation so the two can be compared. Green segments mark an uptrend and red segments a downtrend. It appears in a separate pane rather

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend Comparison

RSI %B on Chart

by zhuzp98
1 stars

This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI %B on Chart

The Regularized Exponential Moving Average (REMA) is a technical indicator that applies a regularization factor to the standard EMA formula to reduce lag and filter out market noise. It calculates a smoothed line using a specified length, price source, and reg

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Regularized Exponential Moving Average

BIDU-tracker

by Allen1212
303 stars

The BIDU-tracker indicator overlays historical ARK Invest purchases and sales of Baidu on the price chart as dated labels. Green labels mark buys below bars and red labels mark sells above bars. An ETF input selects ARKK, ARKQ, ARKW, or ALL so the plotted reco

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

VP

by dearvn
257 stars

This indicator calculates and plots a session-based volume profile directly on the price chart. It maps volume distribution across price levels, highlighting key structural reference points including the Point of Control, Value Area High, and Value Area Low. C

Indicator v5 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of VP
228 stars

This indicator detects horizontal support and resistance zones directly on the price chart using pivot highs and lows. It clusters nearby pivot points within a customizable percentage width to track repeated price touches and recalculates the average level pri

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Support & Resistance Template
99 stars

This indicator plots the DeMarker oscillator in a separate pane. It compares the current high and low with the previous bar, keeps only positive advances and declines, and smooths those series with a simple moving average over a user-set period. The result is

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of DeMarker Oscillator (DEM)

Barcolor Example

by be-thomas
65 stars

This indicator highlights specific candlestick formations directly on the price chart by coloring the bars. It detects inside bars, coloring them yellow, as well as bullish outside bars in aqua and bearish outside bars in purple. Bars that do not meet these co

Indicator v4 Candlestick patterns
Updated 6 days ago · GPL-3.0 GitHub repository of Barcolor Example

Session & RTH VWAP

by TamaraKGreen
47 stars

Calculates and plots session Volume Weighted Average Price along with Regular Trading Hours VWAP, historical session tracking, and statistical deviation bands. The script features customizable time zones, session highlighting, and an optional statistics table

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Session & RTH VWAP
47 stars

This indicator calculates adaptive Jurik Volatility Bands and plots an upper band, a lower band, and a filled channel directly on the price chart. It dynamically adjusts band width according to prevailing market volatility using an adaptive volatility weightin

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Jurik Volatility Bands (JBANDS)

Evening Star - Bearish

by TWODS-CAPITAL
37 stars

The Evening Star - Bearish indicator identifies and marks the three-candle Evening Star bearish reversal pattern directly on the main price chart. It detects a strong bullish candle, followed by a small-bodied gapping candle, and finishes with a strong bearish

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

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