Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 74)

Scripts written for Pine Script version 6, the current version of TradingView's language. They paste into the Pine Editor and run as they are.

Pine scripts4,367
Code shown here2,412open licence
Updated in a year4,021
No repaint flag3,857

Pine Script v6: Indicators, Strategies and Libraries

This indicator plots John Ehlers' two-pole Super Smoother as a line on the price chart. It applies a two-pole IIR Butterworth-style lowpass to the selected source, averaging the current and previous values and mixing them with two prior filter outputs. Length

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers 2-Pole Super Smoother Filter (SSF2)
47 stars

This indicator plots Bill Williams' Market Facilitation Index in a separate pane. It calculates the bar's high-low range divided by volume, and it returns zero when volume is zero so inactive bars do not produce a ratio. A blue line shows the index and a dashe

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · MIT GitHub repository of MARKETFI: Market Facilitation Index

Pattern Recognition [WavesUnchained] automatically identifies chart patterns including ascending, descending, and symmetrical triangles, rising and falling wedges, and parallel channels. It validates formations through multi-point pivot analysis, volume spike

Indicator v6 BreakoutSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Pattern Recognition [WavesUnchained]

This indicator plots internal and external liquidity zones alongside market structure breaks directly on the price chart. It calculates short-term and long-term pivot points to identify internal and external liquidity levels, including equal highs and lows. Ma

Indicator v6 SMC / ICT / price actionSupport & resistance
2 stars

Clusters Volume Profile [LuxAlgo] applies K-Means clustering to historical price data using high-low averages and volumes to identify distinct price groups. It then computes volume profiles for each cluster with user-defined rows per cluster and maximum bar wi

Indicator v6 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of LuxAlgo - Clusters Volume Profile

Realized Volatility (RV)

by mushroom-men-Trading
2 stars

This indicator computes realized volatility from intraday price returns. It fetches close prices from a lower timeframe, calculates the sum of squared logarithmic returns, and derives the volatility as the square root of that sum. A simple moving average smoot

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Realized Volatility (RV)
1 stars

This strategy scores bullish and bearish momentum from three conditions: RSI above or below adjustable levels, RSI compared with its value three bars earlier, and a MACD histogram that is positive or negative and moving further that way. It enters long when th

Strategy v6 Oscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 03 - rsi+macd momentum

P_syn_strategy_full

by GammaExpansion
1 stars

P_syn_strategy_full is a crossover strategy that plots the 20-period simple moving average of close on the price chart. It generates long signals on crossover and short signals on crossunder. Long entries use limit and stop orders with 10 percent equity positi

Strategy v6 TrendMoving averages
Updated 7 days ago · MIT GitHub repository of P_syn_strategy_full

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

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
1 stars

A strategy that watches correlation between assets in a separate pane. It builds a correlation matrix for four symbols, defaulting to BTC, ETH, SOL and BNB, and shows it as a colour-shaded table. The first two symbols form the main pair, and when their correla

Strategy v6 Screeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Multilateral Sovereign Corr

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

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)

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)

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]
1 stars

This strategy calculates candle-position buying pressure derived from the close relative to the high-low range, smoothed through a double exponential moving average chain with a momentum overlay. It evaluates a multi-step pressure ladder to identify bullish an

Strategy v6 Oscillators & momentumTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES Probe 04 - Pressure Gauge

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

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

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

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)

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)

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

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)

PF IES probe 05 - bb/kc squeeze

by pineforge-4pass
1 stars

This Pine Script strategy detects volatility squeeze releases using parallel Bollinger Bands and Keltner Channels calculated with length 20 and specified multipliers. It plots the bands and channels overlaid on the price chart. The strategy enters a long posit

Strategy v6 Volatility & bandsBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 05 - bb/kc squeeze

P_syn_tuples

by GammaExpansion
1 stars

This indicator serves as a synthetic test script demonstrating tuple destructuring syntax in Pine Script v6. It calls multiple technical functions that return tuples, including a custom min-max function on candle bodies, MACD, Supertrend, Bollinger Bands, and

Indicator v6 TrendOscillators & momentum
Updated 7 days ago · MIT GitHub repository of P_syn_tuples

DEPV2 DEBUG S7

by YuceSezar89
1 stars

DEPV2 DEBUG S7 is a Pine Script v6 indicator that draws in a separate pane. It tracks up to twenty user-selected symbols, defaulting to Binance USDT perpetual crypto pairs. Signals use trend, momentum, volatility, and volume methods alone, together, or in a ti

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S7

GROK PA Daily Levels

by vedkanani123
1 stars

An indicator for the price chart that draws a merged set of daily reference levels: previous day high, low, open and midpoint, a central pivot range, Camarilla levels, optional floor pivots, previous week extremes, range expansion targets beyond yesterday's ra

Indicator v6 Support & resistanceSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of GROK PA Daily Levels

TN OR Magnet

by raybird
1 stars

An opening range strategy for the New York session that records the high and low of a short opening window, then trades retests of that range. Setup A follows drift from the range with a retest, and a conservative Setup B uses breakout plus retest. Filters ski

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of TN OR Magnet

Volume Value

by ivansoft
1 stars

An indicator in a separate pane built on traded value, volume times the mid price, taken from 30-second data and cumulated over one, three, five and ten minutes. For each window it computes a percentile level over a settable number of bars and checks the value

Indicator v6 VolumeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Volume Value
99 stars

This indicator plots John Ehlers' Adaptive Laguerre Filter on the price chart. It estimates tracking error from the absolute difference between the source and the last filter value, normalizes that error with the highest and lowest values over the length windo

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Adaptive Laguerre Filter
47 stars

Calculates and plots a forward price prediction directly on the main chart using an on-chart multilayer perceptron neural network. The model processes technical input features including moving average ratios, RSI, normalized ATR, and Bollinger bandwidth throug

Indicator v6 AI / machine learning
Updated 8 months ago · MIT GitHub repository of Multilayer Perceptron Predictor

This indicator classifies market conditions into Trend, Range, or Chaos regimes by combining the Kaufman Efficiency Ratio, Fractal Dimension Index, and Choppiness Index into a single trendiness metric. It normalizes and applies custom weightings to each sensor

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Regime Classifier [WavesUnchained]

Malaysian SnR Kai[DoN]

by eddiebelaval
7 stars

Calculates and plots support and resistance levels using pivot high and pivot low structures based on Malaysian SnR concepts. It draws active support and resistance price zones, tracks role reversal lines when levels break, includes a simple moving average fil

Indicator v6 Support & resistanceMoving averages
Updated 3 months ago · None stated GitHub repository of Malaysian SnR Kai[DoN]
2 stars

This indicator calculates multi-period performance metrics across multiple horizons, including one week, one month, three months, six months, one year, and year-to-date, alongside historical seasonal comparisons. It renders visual panels and comparison polylin

Indicator v6 Screeners & dashboards Repaints
Updated 8 months ago · None stated GitHub repository of Market Stats Panel [Daveatt]

Relative Volatility Index (RVI)

by mushroom-men-Trading
2 stars

This indicator calculates the Relative Volatility Index (RVI), which measures price volatility directionally in a separate pane. RVI applies Wilder's smoothing to upward and downward standard deviations of price changes over a specified lookback period, genera

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Relative Volatility Index (RVI)

PF IES probe 06 - pivot sweep

by pineforge-4pass
1 stars

This Pine Script strategy detects pivot liquidity sweeps on the price chart. It identifies swing highs and lows using ta.pivothigh and ta.pivotlow with user-defined left and right bar counts. The script maintains state for the last confirmed pivot and flags a

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 06 - pivot sweep

P_syn_types_explicit

by GammaExpansion
1 stars

This script tests Pine Script v6 syntax by declaring and operating on multiple data types including integers, floats, booleans, strings, colors, arrays, matrices, maps, and drawing objects such as lines, labels, boxes, and tables. It calculates a plot value by

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

DEPV2 DEBUG S8

by YuceSezar89
1 stars

DEPV2 DEBUG S8 is a Pine Script v6 indicator that draws in a separate pane. It watches up to twenty user-selected crypto perpetual symbols, defaulting to Binance USDT perpetual contracts. Direction comes from four classes: trend, momentum, volatility, and volu

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

Grok Prime Flip Engine v1

by vedkanani123
1 stars

An always-in flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. A regime layer classifies the market as range or trend using ADX, efficiency and a range box, and can freeze aggressive paths in a range. The ATR

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of Grok Prime Flip Engine v1

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