Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 75)

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

Volume Value V6

by ivansoft
1 stars

An indicator in a separate pane that analyses traded value, volume times the mid price, with percentile levels over a settable number of bars, including a 99th percentile, the maximum and a median-style level that can be ignored. It also tracks cumulative valu

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

Notch Filter (NOTCH)

by mihakralj
47 stars

The Notch Filter is a second-order IIR digital filter designed to attenuate a specific cyclic frequency component from price data while leaving other frequencies intact. It computes a band-stop filter based on a target cycle period and relative bandwidth. The

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Notch Filter (NOTCH)

This overlay classifies the chart into bull, bear, or neutral regimes from moving-average zone position and an adaptive engine driven by the efficiency ratio and ATR entry and exit bands. A volatility percentile rank adds quiet, normal, or volatile context, pl

Indicator v6 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of Regime Detector (MA Zones Overlay) [WavesUnchained]

Momentum Checklist

by eddiebelaval
7 stars

This overlay indicator calculates ADX, DI+ and DI- from directional movement and true range, and a Money Flow Index from typical price and volume. It classifies bias as long when DI+ exceeds 25 and DI- stays under 20, short under the opposite condition, and ne

Indicator v6 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Momentum Checklist
2 stars

Calculates momentum acceleration based on price or On Balance Volume by evaluating the rate of change between velocity and acceleration. It plots signals and visual overlays directly on the price chart, with options to project momentum oscillators. Settings al

Indicator v6 Oscillators & momentumVolume
Updated 8 months ago · None stated GitHub repository of Momentum Acceleration by DGT

Reverse Stochastic %J

by mushroom-men-Trading
2 stars

This indicator estimates the close that would produce a chosen Stochastic %J from the relation of %J to %K and %D. It computes current %K, a simple-average %D, and %J, then solves an approximate required close from the lookback high, low, and current %D. Setti

Indicator v6 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Reverse Stochastic %J
1 stars

This strategy enters long when a fast EMA crosses above a slow EMA, the position is flat, a cooldown bar count has elapsed, and the day's trade count is below a cap. It closes that long when the fast EMA crosses back under the slow EMA. Inputs set both EMA len

Strategy v6 TrendMoving averages
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES probe 07 - cooldown + daily cap

P_syn_types_udt_methods

by GammaExpansion
1 stars

This test script demonstrates and validates Pine Script v6 user-defined types and custom methods. It constructs a custom Bar object storing price data, bar index, and metadata, then applies custom methods to evaluate the price span and bullish state. In a sepa

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

DEPV2 DEBUG S9

by YuceSezar89
1 stars

DEPV2 DEBUG S9 is a multi-symbol indicator for 20 major cryptocurrencies traded on Binance futures. It generates trading signals by combining four method classes: trend based on price levels, momentum using rate of change, volatility based on expansion or nois

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

A price-chart indicator by BigBeluga, based on the HalfTrend logic from everget, that draws a HalfTrend line with ATR channel bands and prints long and short signals on trend flips. Each signal draws entry, stop loss and three take-profit levels, with the stop

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of HalfTrend Long/Short Signal Engine

VWAP Delta

by ivansoft
1 stars

An indicator in a separate pane that plots how far price is from an anchored volume weighted average price, as a percentage of the VWAP. The VWAP itself is drawn on the price chart. Percentile lines over a chosen number of bars mark the two upper and lower ext

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of VWAP Delta
99 stars

Ehlers Automatic Gain Control (AGC) detrends raw price data using a roofing filter—combining a two-pole high-pass filter and a Super Smoother—to generate a zero-mean oscillating signal. It then applies an automatic gain control algorithm that tracks exponentia

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Automatic Gain Control (AGC)

OHLC Average (OHLC4)

by mihakralj
47 stars

This indicator plots the arithmetic mean of each bar's open, high, low, and close on the price chart. A function multiplies the four prices by 0.25 and returns one value, which the script plots as a yellow line of width two. There are no user inputs, so the fo

Indicator v6
Updated 8 months ago · MIT GitHub repository of OHLC Average (OHLC4)

The Regime Transition Engine categorizes the market into seven distinct regime states, including compression, expansion, trend, and exhaustion. It calculates volatility percentiles, efficiency ratios, choppiness, and linear regression slopes to measure market

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

Reverse Wave Trend %J

by mushroom-men-Trading
2 stars

Calculates the Wave Trend %J oscillator and works backwards through its equations to project the required price levels needed to reach target oscillator values. It approximates the Channel Index required for specified overbought or oversold conditions and proj

Indicator v6 Oscillators & momentumSupport & resistance
Updated 9 months ago · None stated GitHub repository of Reverse Wave Trend %J

PF IES Probe 08 - Equity Sizing

by pineforge-4pass
1 stars

PF IES Probe 08 is a strategy designed to evaluate equity-feedback dynamic position sizing logic. It determines market regimes using the Average Directional Index to scale position size dynamically based on current strategy equity, user-defined risk percentage

Strategy v6 TrendVolatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES Probe 08 - Equity Sizing

P_syn_var_varip

by GammaExpansion
1 stars

This test indicator calculates and plots execution state variables across price bars to verify Pine Script v6 runtime behavior. It tracks bar execution counts using persistent variables, tracks intrabar tick execution with persistent intrabar variables, stores

Indicator v6 Repaints
Updated 7 days ago · MIT GitHub repository of P_syn_var_varip

DEPV2 Debug Siga

by YuceSezar89
1 stars

DEPV2 is a multi-symbol crypto indicator that generates trading signals across 20 Binance assets including BTC, ETH, and SOL. It analyzes four method classes—trend, momentum, volatility, and volume—using modes such as simultaneous confirmation requiring at lea

Indicator v6 Screeners & dashboardsOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug Siga
1 stars

A trend indicator on the price chart that prints BUY and SELL labels on confirmed bar closes, each meant to exit one side and enter the other. It combines a Supertrend line, fast and slow EMAs and a ZLEMA, and requires ADX, DMI spread and RSI conditions plus a

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of Hermes Prime v1 - Confirmed Flip

Zig Zag

by ivansoft
1 stars

Draws a zig zag line on the price chart connecting swing pivots using an imported Zig Zag library. A new reversal is accepted when price moves by a set percentage, 5 by default, and pivots use a leg count of 10. Labels can show the reversal price, cumulative v

Indicator v6 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Zig Zag
99 stars

This indicator calculates John Ehlers' Center of Gravity from a chosen price source over a configurable length. It weights each price by its position in the window, divides the weighted sum by the sum of prices, and shifts the result so the window midpoint sit

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Center of Gravity (CG)
47 stars

This indicator calculates the one-sample t-statistic comparing the rolling mean of a selected price or return series against a hypothesized population mean. It uses an O(1) circular buffer with running sums and Bessel's correction to compute sample variance ef

Indicator v6
Updated 8 months ago · MIT GitHub repository of One-Sample t-Test (ZTEST)

Relative Leg Efficiency (RLE) measures price efficiency across pivot-to-pivot movement legs. Plotted in a separate pane with chart pivot overlays, it calculates path distance, execution duration, and counter-pressure to produce efficiency scores. Traders can a

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Relative Leg Efficiency (RLE) - Panel + Chart [WavesUnchained]

NQ 9:45-10:15 ICT Strategy

by eddiebelaval
7 stars

This ICT-based strategy trades during the 9:45 AM to 10:15 AM New York session window. It calculates a daily bias using a 20-period daily EMA and tracks previous day highs and lows to identify liquidity sweeps. The script refines order block entry levels and m

Strategy v6 SMC / ICT / price actionSessions & time Repaints
Updated 3 months ago · None stated GitHub repository of NQ 9:45-10:15 ICT Strategy

This indicator detects bullish and bearish fair value gaps on a user-selected timeframe and draws them as boxes on the price chart. Body sensitivity sets the minimum candle body size relative to the average before a gap is accepted. Mitigation can require a fu

Indicator v6 SMC / ICT / price actionScreeners & dashboards Repaints

Rogers-Satchell Volatility (RSV)

by mushroom-men-Trading
2 stars

The Rogers-Satchell Volatility (RSV) indicator measures historical market volatility using open, high, low, and close price values, allowing accurate estimates even in the presence of price drift. It computes the Rogers-Satchell variance per bar, smooths it us

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Rogers-Satchell Volatility (RSV)

PF IES Probe 09 - Integration

by pineforge-4pass
1 stars

PF IES Probe 09 - Integration is a multi-layered quantitative strategy designed to test interaction among market regime, trend bias, momentum, and price pressure. It computes an ADX and ATR volatility regime, a multi-EMA trend bias score, an RSI and MACD momen

Strategy v6 TrendOscillators & momentum
Updated 7 days ago · Apache-2.0 GitHub repository of PF IES Probe 09 - Integration

P_ver_bool_na

by GammaExpansion
1 stars

This script defines a Pine Script v6 indicator that assigns na to a boolean variable and plots either 1 or 0 depending on its value in a separate pane. The plot always returns 0 because the boolean is initialized to na. No input settings modify the behavior. T

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

DEPV2 Debug SIGD

by YuceSezar89
1 stars

DEPV2 Debug SIGD evaluates multi-symbol and multi-method signal confluence across up to twenty cryptocurrency symbols. It processes four distinct market dimensions—trend, momentum, volatility, and volume—to derive confirmation signals under simultaneous or seq

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

This strategy evaluates market structure, volume spikes, and smart money concepts such as order blocks and fair value gaps to score trade entries. It triggers orders when signals meet a minimum confidence threshold and comply with session killzones. Positions

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN PropFirm Ultra [TeleNexus]
99 stars

This indicator computes the Ehlers Correlation Cycle in a separate pane. It correlates a chosen price source with cosine and negative-sine waves of a fixed period, then converts those real and imaginary components into a phasor angle that cannot move backward.

Indicator v6 Oscillators & momentumTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Correlation Cycle (CCOR)
47 stars

This indicator calculates the midpoint between each bar's open and close as half their sum and plots that series on the price chart. A small function multiplies the sum by one half instead of dividing, which the source notes as a performance choice. There are

Indicator v6
Updated 8 months ago · MIT GitHub repository of Open-Close Midpoint (OC2)

This indicator scores each pivot-to-pivot price leg from 0 to 100 and draws the result on the price chart. It combines path efficiency, time efficiency, and counter-pressure, then colors completed leg lines and optional labels. A live score updates on the unfi

Indicator v6 Support & resistanceTrend
Updated 3 days ago · MIT GitHub repository of Relative Leg Efficiency [WavesUnchained]

My script

by regalouisei
2 stars

This indicator calculates a 14-period Relative Strength Index on the close and turns the result into a directional signal. It sets a buy when RSI crosses above 40 and a sell when RSI crosses below 60, then stores plus one, minus one, or zero. The value is plot

Indicator v6 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of My script
1 stars

This Pine Script strategy overlays two exponential moving averages on the price chart. It generates buy signals when the fast EMA crosses above the slow EMA and the tick counter is divisible by the step value. It generates sell signals on the opposite cross un

Strategy v6 Oscillators & momentumMoving averages Repaints
Updated 7 days ago · Apache-2.0 GitHub repository of PF kanuck-probe-02-calc-on-every-tick

P_ver_duplicate_param

by GammaExpansion
1 stars

This minimal script serves as a parser test fixture within the OptiPine test suite. It runs in Pine Script v6 and plots the closing price in a separate pane while deliberately including duplicate title parameters in the plot call. The script contains no user-c

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

DEPV2 Debug Sigt

by YuceSezar89
1 stars

This indicator evaluates trading signals across up to twenty cryptocurrency pairs using four core analytical dimensions: trend, momentum, volatility, and volume. It generates signals based on configurable confluence modes, including single-category triggers, s

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

Internal Candle Strength

by vedkanani123
1 stars

An overlay indicator that splits each candle on the chart into horizontal rows and measures, using lower-timeframe candles, how bullish or bearish the price action was inside each row. Each row is labeled with a strength percentage and colored on a red to teal

Indicator v6 Volume Repaints
Updated 2 months ago · None stated GitHub repository of Internal Candle Strength
1 stars

TN Sentiment Macro Sovereign is a trend-following strategy that combines technical moving average crossovers with external macro sentiment data. It calculates 12-period and 26-period Exponential Moving Averages alongside a smoothed sentiment metric fetched via

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sentiment Macro Sovereign

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