Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 120)

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

VWAP and VWMA

by Web3Degenerate
2 stars

This indicator plots either a Volume Weighted Average Price (VWAP) or a Volume Weighted Moving Average (VWMA) directly on the price chart, coloring the line based on whether the close is above or below it. It generates trading signals by combining the trend fi

Indicator v5 Moving averagesCandlestick patterns
Updated 2 years ago · None stated GitHub repository of VWAP and VWMA

An overlay indicator that shows a footprint-style table of volume by price row around the current price and a buy and sell volume profile drawn as bell shapes. Three data engines are offered: a geometric split based on where each bar closes in its range, lower

Indicator v6 VolumeScreeners & dashboards
Updated 8 days ago · GPL-3.0 GitHub repository of Volume Footprint: Math and Geometry Intro

DEPV2 DEBUG S50

by YuceSezar89
1 stars

This indicator is a debug pane for a multi-symbol signal model. It watches up to twenty user-chosen symbols, defaulting to Binance perpetual crypto pairs, and combines four method classes: trend, momentum, volatility, and volume. Signal mode selects a single c

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

This indicator plots detrended candlesticks in a separate pane relative to a chosen baseline to highlight market cycles around a zero line. Users can switch the baseline mode between a moving average and high/low extremes. In moving average mode, it subtracts

Indicator v5 Moving averagesOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Detrended Candles (Switchable)

Funded Range Gann Sniper

by vedkanani123
1 stars

A price-chart indicator that looks for fade setups after price raids the edge of a completed session or prior-day range and closes back inside. It requires the Gann half-range level to sit at least a set number of R away, sizes the stop beyond the raid using A

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of Funded Range Gann Sniper

First Bar Fable v6

by nishpa800
1 stars

The v6 release of a composite detection indicator that draws many toggleable, numbered signals on the price chart. Signals cover relative volume setups with displacement, pullback-and-jump patterns and named formations such as Typhoon, Musashi, Whale, Dynamite

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of First Bar Fable v6
1 stars

This debug build combines three dominant cycle lengths, pivot highs and lows, and candlestick pattern matching to project future turning prices and dates. Bollinger Band, Keltner Channel and volatility lengths are also available as inputs. Projected values app

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

Visible Average Price

by ivansoft
1 stars

Calculates the average of a chosen price source across the candles currently visible on the chart and draws it as a grey line with a price label, shown for the last bar only. Source is the only input and defaults to close. The average changes as the user scrol

Indicator v6 Support & resistance
Updated 1 year ago · None stated GitHub repository of Visible Average Price

Ulcer Index

by everget
947 stars

Calculates the Ulcer Index indicator to measure downside risk and price drawdowns over a specified lookback period. It computes percentage drawdowns relative to the highest price, averages their squares, and takes the square root. An adjustable signal line usi

Indicator v4 Volatility & bands
Updated 12 days ago · GPL-3.0 GitHub repository of Ulcer Index

CCJ-tracker

by Allen1212
303 stars

CCJ-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of Cameco with dated labels on the price chart. When the ETF input is set to ALL, it places green Buy labels below bars and red Sell labels above bars on hardcoded dates,

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

The Ehlers 3-Pole Butterworth Filter calculates a smoothed low-pass trend line based on John F. Ehlers' 3-pole Infinite Impulse Response (IIR) filter design. It filters out high-frequency noise while minimizing lag compared to standard moving averages. The ind

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers 3-Pole Butterworth Filter (BUTTER3)

Conditional Colors

by be-thomas
65 stars

This script calculates a Simple Moving Average (SMA) of close prices and dynamically changes its plot color based on whether the average is rising or falling. When the SMA is higher than its previous bar value, it plots in the bullish color; otherwise, it uses

Indicator v4 Moving averagesTrend
Updated 6 days ago · GPL-3.0 GitHub repository of Conditional Colors

VP History Widget

by TamaraKGreen
47 stars

This indicator plots historical session volume profiles directly on the price chart as offset visual widgets. It aggregates volume or open interest across user-defined sessions such as daily, weekly, or monthly periods using lower-timeframe data. The script se

Indicator v5 VolumeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of VP History Widget

Midpoint (MIDPOINT)

by mihakralj
47 stars

This indicator plots the midpoint between the highest and lowest values of a chosen source over a lookback window. It uses TradingView highest and lowest functions, then averages them with multiplication by one half. The source input selects the series, defaul

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Midpoint (MIDPOINT)

Hull Moving Average

by TWODS-CAPITAL
37 stars

This indicator calculates and plots the standard Hull Moving Average (HMA) directly on the main price chart. The HMA aims to reduce lag while preserving smoothing by combining weighted moving averages over half-length and full-length periods, followed by a fin

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

Pivot Momentum Structure plots a selectable oscillator in a separate pane and scores momentum against confirmed price pivots. It classifies higher highs, higher lows, lower highs and lower lows, then marks regular and hidden bullish or bearish divergences plus

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Pivot Momentum Structure [WavesUnchained]

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine is an overlay indicator that maps New York-timed CRT models, unmitigated order blocks, market structure, liquidity pools, and volume profile on the price chart. It can draw session boxes for Asia, London, London lunch, and New York and optiona

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine

Gary - Levels

by g-moe
3 stars

Gary - Levels is a TradingView Pine Script v5 indicator that overlays multiple session-based VWAP calculations and high/low lines directly on the price chart. It plots an RTH VWAP line for the regular trading hours session (default 0930-1600 ET) and a full-ses

Indicator v5 Moving averagesSupport & resistance
Updated 5 months ago · None stated GitHub repository of Gary - Levels
2 stars

Order Blocks & Imbalance MTF detects bullish demand and bearish supply order blocks driven by Fair Value Gaps (FVG). The indicator calculates gap sizes using an ATR multiplier threshold across configurable timeframes via higher-timeframe data requests. When va

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Order Blocks & Imbalance MTF

Zen Library Patterns

by Web3Degenerate
2 stars

This indicator imports the Zen Library and uses it to detect several candlestick reversal patterns on the price chart. It identifies bullish and bearish engulfing candles, hammers, stars, and dojis, then plots corresponding shape markers with labels. The libra

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Zen Library Patterns

P_syn_strings

by GammaExpansion
1 stars

P_syn_strings is a synthetic fixture indicator created to test and verify Pine Script v6 string operations. The script executes various built-in string functions, including length calculation, string searching, character replacing, substring extraction, format

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

VP-Period

by rosijay17-cmd
1 stars

An overlay indicator that builds a volume profile over a set number of recent days and marks the volume point of control as a line, along with period high and low lines. It also draws support and resistance lines derived from profiles looking back a chosen num

Indicator v6 VolumeSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of VP-Period

DEPV2 DEBUG S6

by YuceSezar89
1 stars

DEPV2 DEBUG S6 is a multi-symbol cryptocurrency indicator that combines signals from trend, momentum, volatility, and volume methods. It generates buy and sell signals based on user-selected modes including simultaneous confirmation of at least N methods, sequ

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

This indicator projects time-based cycles and detrended price oscillators in a separate pane starting from a user-defined date range. It calculates the bar count of an initial reference period, then recursively multiplies segment lengths using a Fibonacci rati

Indicator v5 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Detrended Fibo Time {Morindok}

GROK NO.1 Major Move

by vedkanani123
1 stars

An indicator for the price chart that marks buy and sell flips and then stays on that side until a reversal. A flip needs several conditions on a closed bar, including a broken ATR trail for consecutive closes, a close through the last confirmed swing, an impu

Indicator v6 TrendBreakout Repaints
Updated 2 months ago · None stated GitHub repository of GROK NO.1 Major Move

Heavy Combo Toggles v2

by nishpa800
1 stars

An indicator that groups fifteen heavy combo detections into three master plots on the price chart: bullish, bearish and neutral. Each master plot is an OR across five combos, namely Heavy Yin-Yang, Heavy Nagasaki, Heavy Nagasaki Volume, Heavy Trident and Neut

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Heavy Combo Toggles v2
1 stars

This indicator combines three dominant cycle lengths, pivot highs and lows, and candlestick pattern matching to project future turning prices and dates. Bollinger Band, Keltner Channel and volatility lengths are also available as inputs. Projected values appea

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

Volatility Stop

by ivansoft
1 stars

Plots a trailing stop level on the price chart based on ATR, drawn as crosses that are green in an uptrend and red in a downtrend. The stop follows the highest or lowest source value since the last flip, offset by an ATR multiple. Inputs set ATR length, source

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

An overlay indicator combining confirmed pivot highs and lows, RSI and two simple moving averages. It draws green and red levels from the latest pivot, and marks long signals when the high crosses above the long moving average with the close above it, and shor

Indicator v4 Support & resistanceOscillators & momentum

US Treasury Yields

by everget
947 stars

This indicator plots US Treasury yield closes from external symbols in a separate pane. It shows the 30-year, 10-year, 7-year, 5-year, and 3-year yields as continuous lines or as single-bar histogram columns with short labels. Display mode switches between lin

Indicator v4 Screeners & dashboards Repaints
Updated 12 days ago · GPL-3.0 GitHub repository of US Treasury Yields

CDXS-tracker

by Allen1212
303 stars

This indicator displays historical ARK Invest buy and sell transactions for Codexis Inc (CDXS) directly on the price chart. It plots color-coded labels at exact historical bar timestamps, placing green labels below bars for purchases and red labels above bars

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

The Multiple Regression Polynomial Forecast indicator calculates linear and polynomial regression forecasts using array data sampled from price series. It plots projected regression channel lines directly on the price chart to visualize trend direction and pot

Indicator v5 TrendSupport & resistance
Updated 4 years ago · None stated GitHub repository of Multiple Regression Polynomial Forecast

This indicator calculates John F. Ehlers' 3-Pole Super Smoother Filter (SSF3), an advanced infinite impulse response filter designed to remove high-frequency market noise while retaining rapid responsiveness to price changes. It evaluates a selected input sour

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers 3-Pole Super Smoother Filter (SSF3)

Conditional Colors

by be-thomas
65 stars

This indicator identifies pivot high and low levels and plots them as horizontal lines on the main price chart. It calculates pivots using a configurable leg period and stores the most recent high and low pivot values. When a new pivot level is detected, the s

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Conditional Colors

Weekly IB

by TamaraKGreen
47 stars

Weekly IB is an overlay indicator that tracks and visualizes the weekly initial balance levels on the main price chart. It features customizable day-of-week labels, daily session boundary highlights, configurable timezones, and optional Fibonacci retracement l

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Weekly IB

Midprice (HL2)

by mihakralj
47 stars

This indicator plots the midprice of each bar on the price chart. It averages the bar high and the bar low by multiplying their sum by one half, then draws that value as a yellow line of width two. A reusable function accepts high and low series and returns th

Indicator v6
Updated 8 months ago · MIT GitHub repository of Midprice (HL2)

Ichimoku Cloud

by TWODS-CAPITAL
37 stars

This indicator plots the classic Ichimoku Cloud on the price chart. It calculates the conversion line and base line as midpoints of the highest and lowest prices over their lengths, then averages those lines for Leading Span A and uses a longer midpoint for Le

Indicator v5 TrendSupport & resistance
Updated 3 years ago · MIT GitHub repository of Ichimoku Cloud

This indicator classifies market behavior into momentum, mean-reversion, noise, or mixed regimes. It fuses four statistical predictability sensors—Variance Ratio across multiple horizons, return autocorrelation, Hurst exponent approximation, and fractal effici

Indicator v6 TrendMean reversion
Updated 3 days ago · MIT GitHub repository of Predictability Regime Index [WavesUnchained]

LuxAlgo Chaos Weighted RSI

by eddiebelaval
7 stars

This indicator calculates a Chaos Weighted RSI that incorporates price chaos via a Fractal Dimension Index. It plots the resulting RSI line in a separate pane along with background fills for overbought and oversold conditions. Bullish and bearish divergences a

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of LuxAlgo Chaos Weighted RSI

CRT State Engine

by alboogycOdR
6 stars

CRT State Engine draws an institutional candle-range state model on the price chart. It tracks New York session models, market structure, unmitigated order blocks, liquidity pools, and optional volume profile and multi-pair correlation. Change-in-state detecti

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of CRT State Engine
3 stars

Gary Oscillator plots a volume-weighted moving average of a price-volume ratio in a separate pane. It multiplies volume by the difference between close and open divided by their sum, scales that value by one hundred, and smooths it with a fourteen-period VWMA.

Indicator v5 Oscillators & momentumVolume
Updated 5 months ago · None stated GitHub repository of Gary - Oscillator

Regularized EMA (REMA)

by mushroom-men-Trading
2 stars

The Regularized EMA indicator plots a single smoothed average of a chosen price source on the price chart. It blends an exponential moving average update with a regularization term controlled by lambda, where zero applies maximum smoothing and one matches a st

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Regularized EMA (REMA)

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