Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 129)

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

6 stars

This indicator tracks Opening Range Breakout (ORB) levels for selected sessions such as New York, London, or custom hours directly on the price chart. It detects market structure shifts (MSS), fair value gaps (FVG), and order blocks to signal potential trade e

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of ICT ORB Manual Trading Companion
3 stars

This indicator draws horizontal price bands and an anchor close line directly on the price chart. It projects two tiers of upper and lower boundary lines offset from the closing price by user-specified tick amounts. Each tier allows customization of tick dista

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

Average Lines

by regalouisei
2 stars

The Average Lines indicator calculates and plots average values of detected pivot highs and pivot lows directly on the price chart. It allows users to set left and right bar counts for pivot detection, choose which averages to display (pivot highs only, lows o

Indicator v5 Moving averagesSupport & resistance
Updated 8 months ago · None stated GitHub repository of Average Lines

Volume Oscillator (VO)

by mushroom-men-Trading
2 stars

This indicator calculates a volume oscillator in a separate pane. It builds short and long simple moving averages of volume with circular buffers, then plots the percentage difference of the short average relative to the long average. A further moving average

Indicator v6 Volume
Updated 9 months ago · None stated GitHub repository of Volume Oscillator (VO)

Gann Octagon

by morindok
1 stars

Gann Octagon projects W.D. Gann geometric price spiral levels directly on the main chart starting from a user-selected anchor candle. The script calculates step sizes dynamically using candle height, adaptive ATR, or a user-defined manual value across up to fi

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Gann Octagon
1 stars

Tick-chart-safe bearish half of a split HV+D and PBJ overlay indicator. It plots 36 sell-side markers that combine high-volume candles, standard deviation displacement and a PBJ moving average and Supertrend filter. Guards give a tick-chart fallback bar length

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bearish v1 Tick-Friendly

Price Alert 2024 V2

by mikeyhu70
1 stars

An overlay that measures the percentage move of the current bar from its open and sends a text alert when it reaches one of five positive or five negative thresholds, plus or minus 2.5, 5, 7.5, 10 and 12.5 percent by default. Up and down levels are set indepen

Indicator v5 Repaints
Updated 6 months ago · None stated GitHub repository of Price Alert 2024 V2

DE-tracker

by Allen1212
303 stars

This indicator plots labels on the TradingView price chart to mark ARK Invest's buy and sell trades for the DE stock. Buy transactions appear in green with X1 or X2 multipliers showing the number of ARK ETFs involved on the same day; sells appear in red. The m

Indicator v4 Support & resistanceSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of DE-tracker

[RS]MTF Candle Sticks

by ricardosantos79
261 stars

This indicator overlays up to five higher-timeframe candlestick groups on the price chart. For each enabled timeframe it requests open, high, low, and close and can show up to five candles, offset by a spacing setting. The main inputs set the candle count, the

Indicator v4 Candlestick patternsSupport & resistance Repaints
Updated 4 years ago · None stated GitHub repository of [RS]MTF Candle Sticks

This indicator estimates the dominant cycle period of a price series using John Ehlers' homodyne discriminator. It smooths the source, builds in-phase and quadrature components, and converts the phase angle into a cycle length. The result is rate-limited by ab

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Homodyne Discriminator (HOMOD)

Example 7

by be-thomas
65 stars

This script illustrates how to request non-standard chart data within Pine Script v4. It creates a Renko ticker identifier using a 10-period ATR calculation for brick size, requests the low price of the Renko bars via the security function, and plots the resul

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Example 7
47 stars

Calculates the detrended synthetic price using dual Super Smoother Filters (SSF) derived from a user-defined dominant cycle period. The indicator computes a fast SSF based on a quarter-cycle period and a slow SSF based on a half-cycle period, then plots the di

Indicator v6 Oscillators & momentumMoving averages
Updated 8 months ago · MIT GitHub repository of SSF-Based Detrended Synthetic Price

Morning Star - Bullish

by TWODS-CAPITAL
37 stars

Morning Star - Bullish is a price chart indicator that automatically identifies three-candle bullish Morning Star candlestick patterns. It filters pattern occurrences using optional trend context defined by 50-period or 200-period simple moving averages. When

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Morning Star - Bullish
9 stars

This indicator quantifies the risk of a prevailing market structure break by combining trend context, structure, and momentum into a composite 0–100 risk score. It plots an RSI oscillator with momentum divergence lines in a separate pane while projecting key b

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MIT GitHub repository of Structure Break Risk

Trend Line Methods

by eddiebelaval
7 stars

Trend Line Methods draws optional trend geometry on the price chart. The pivot span method stores recent pivot highs and lows using left and right confirmation bars, a pivot count, and a lookback length, then plots a high trend line and a low trend line with a

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Trend Line Methods
3 stars

This indicator draws horizontal price levels and bands anchored to recent price points directly on the main chart. It calculates a central midline along with inner and outer symmetrical boundary lines offset by specified multiples of the instrument's minimum t

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

Average Volume Profile

by regalouisei
2 stars

This indicator draws an Average Volume Profile on the price chart. It calculates the profile based on average volume across the selected timeframe and sensitivity setting. The Point of Control appears in bright blue while the Value Area High and Low display in

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Average Volume Profile

Volume Rate of Change (VROC)

by mushroom-men-Trading
2 stars

This indicator measures the speed at which volume changes over a specified number of periods. It calculates either the simple point difference or the percentage change between current volume and historical volume from a set lookback period. The resulting line

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Volume Rate of Change (VROC)
1 stars

This indicator computes a confluence score from Gann angles and Fibonacci retracements anchored to a user base price, step size, swing low and high. It layers in RSI for oversold conditions and Bollinger Bands distance for additional context. The score increme

Indicator v5 Support & resistanceOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Gann Time Machine Signal Engine

HV+D PBJ Bearish v2

by nishpa800
1 stars

Second revision of the bearish half of a split HV+D and PBJ indicator, drawn on the price chart. It plots 36 sell-side markers built from high-volume candles, standard deviation displacement and a PBJ trend filter. Visibility toggles control patterns such as D

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bearish v2

Price Alert 2024 V3

by mikeyhu70
1 stars

An overlay that places up to ten percentage price levels above and below the last close, or the current open, and triggers alerts when price crosses them. Levels can be drawn as plots or price lines, colored by position relative to price, dimmed or hidden once

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Price Alert 2024 V3

Volatility Stop

by ivansoft
1 stars

An indicator on the price chart that plots a trailing stop line offset from a chosen source by a multiple of the Average True Range. Settings set the source, the ATR length and the ATR factor. The line can be drawn as a line, circles, diamonds or arrows in one

Indicator v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Volatility Stop

DIS-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of Disney on the price chart. It does not calculate an oscillator or generate live signals. When the ETF input is ALL, it places green buy labels below bars and red sell labels above bars o

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

[RS]Standardized Trend Map

by ricardosantos79
261 stars

Standardized Trend Map calculates series momentum relative to active price range across 40 distinct lookback periods ranging from 2 to 80 bars on an exponential moving average source. Each standardized calculation rounds to an integer values of -1, 0, or 1 to

Indicator v4 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of [RS]Standardized Trend Map
114 stars

This indicator evaluates Relative Strength Index (RSI) and Stochastic RSI conditions across eight customizable higher timeframes simultaneously. For each timeframe, ranging from 5 minutes to 12 hours, it checks whether RSI and Stochastic %K or %D cross specifi

Indicator v4 Oscillators & momentumScreeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Overbought RSI and Stoch MTF Mod

Ehlers Laguerre Filter

by mihakralj
99 stars

The Ehlers Laguerre Filter is a smoothing indicator designed by John F. Ehlers that utilizes a four-element cascaded infinite impulse response filter. It applies time-warped Laguerre polynomials to the chosen price source to achieve low-lag trend filtering. Tr

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Laguerre Filter

Example 8

by be-thomas
65 stars

This indicator demonstrates how to request and display non-standard chart data in Pine Script v4. It builds a three-line break ticker identifier for the current instrument and fetches the line break close price using a security call at the current chart resolu

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Example 8
47 stars

Calculates the rolling Z-score of an input price series over a specified lookback window. It uses a sliding window array to maintain rolling sums and calculate the sample mean and sample standard deviation incrementally, accounting for missing values. The resu

Indicator v6 Mean reversionOscillators & momentum
Updated 8 months ago · MIT GitHub repository of Standardization (Z-score)

Moving Average

by TWODS-CAPITAL
37 stars

This indicator plots a simple moving average of a chosen price source on the price chart. Length, source, and a horizontal offset control the main blue line. A second smoothing line applies SMA, EMA, RMA, WMA, or VWMA to that average, with its own length, but

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Moving Average

This indicator identifies support and resistance levels on the price chart using an integrated detector engine. It combines pivot clusters, multiple price tests, supply and demand bases, order blocks, fair value gaps, and equal high or low liquidity. Detected

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Support & Resistance Zones [WavesUnchained]

Tuoppi Entries

by eddiebelaval
7 stars

This overlay indicator calculates a WaveTrend oscillator from the typical price using two exponential averages and a short simple average. It marks a long when the fast and slow lines cross bullishly below the oversold level, and a short when they cross bearis

Indicator v6 Oscillators & momentum Repaints
Updated 3 months ago · None stated GitHub repository of Tuoppi Entries
3 stars

This indicator plots horizontal line bands on the price chart using lower timeframe data. It requests 1-minute high, low, and close values from security to calculate anchor points. Horizontal lines are drawn at specific levels with options for multiple lines i

Indicator v5 Support & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

This indicator estimates Black-Scholes call and put prices and selected Greek values from the chart's spot price. It runs only on the daily timeframe and overlays its output on the price chart. Users set the strike, expiry date and time, implied volatility, an

Indicator v5 Volatility & bandsMoving averages
Updated 8 months ago · None stated GitHub repository of Black Scholes Option Pricing Model w/ Greeks [Loxx]
1 stars

Bullish-only overlay indicator that plots 38 buy-side detection markers on the price chart. It combines high-volume candles, standard deviation displacement and a PBJ trend filter, with a revised price-spike relative volume ladder in this build. Toggles switch

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bullish New RVOL v1.0
1 stars

This indicator uses the Goertzel algorithm to find a dominant cycle, then projects it as a sine wave to estimate future prices and dates. It also scans past bars for a similar pattern of set length within a lookback window. Results appear in a dashboard table

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Price and Date Forecast Sine Wave

Volatility Stop MTF

by ivansoft
1 stars

An indicator on the price chart that plots an ATR-based volatility stop taken from a higher timeframe. The higher timeframe is picked in discrete steps, as a multiple of the chart timeframe, or as a fixed timeframe. It can detect when chart bars breach the hig

Indicator v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Volatility Stop MTF

DOCU-tracker

by Allen1212
303 stars

This indicator plots historical ARK Invest purchase and sale marks for DocuSign on the price chart. Green labels below bars mark buys and red labels above bars mark sells, each tied to a fixed calendar date. A multiplier such as X2 or X3 shows how many selecte

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

Algo AVT

by ricardosantos79
261 stars

This indicator calculates an outlier-filtered moving average based on statistical filtering concepts. It stores close prices in a rolling array over a user-defined length, calculates the mean and standard deviation, and excludes values falling within a specifi

Indicator v4 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of Algo AVT

Calculates John Ehlers' Linear Predictive Filter based on the Griffiths Least Mean Squares adaptive predictor algorithm. It processes the source price through a roofing filter combining a highpass filter and SuperSmoother lowpass filter, followed by automatic

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Linear Predictive Filter (LPF)

Example 9

by be-thomas
65 stars

This script retrieves non-standard Kagi chart data for the active symbol using a fixed reversal threshold of one. It extracts the closing price of the Kagi bars through the security function and plots the resulting values directly onto the main price chart pan

Indicator v4 Trend Repaints
Updated 6 days ago · GPL-3.0 GitHub repository of Example 9

The Stoller Average Range Channel (STARCHANNEL) plots volatility-based bands around a central baseline directly on the price chart. It calculates a middle line using a simple moving average of the selected price source and constructs upper and lower boundaries

Indicator v6 Volatility & bandsMoving averages
Updated 8 months ago · MIT GitHub repository of Stoller Average Range Channel (STARCHANNEL)
37 stars

This indicator plots a MACD oscillator in a separate pane. It subtracts a slow moving average of the source from a fast one, then smooths that difference into a signal line and draws the gap as a histogram. Fast and slow lengths, source, signal length, and SMA

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Moving Average Convergence Divergence

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