Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 72)

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

Fair Value MS

by regalouisei
2 stars

Fair Value MS is an overlay indicator that highlights market structure, fair value gaps, and key areas of interest on the price chart. It identifies bullish and bearish structural shifts, projects extended interest zones towards current price action, and draws

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Fair Value MS

USI Flip + REV-BUY

by skipp-dev
1 stars

This overlay indicator combines a six-line zero-lag RSI stack with EMA trend filters and smart-money structure checks. It marks USI flip long and short signals when the RSI lines stack, optional volume and bar-close filters pass, and optional stack or slow-tre

Indicator v6 Oscillators & momentumMoving averages Repaints
Updated 4 days ago · None stated GitHub repository of USI Flip + REV-BUY

PF Analyzer (PineForge)

by pineforge-4pass
1 stars

PF Analyzer (PineForge) is a multi-mode validation strategy designed to benchmark trade execution timing and parity against backtesting engines. It provides four selectable operational modes: a clock pulse for fixed intraday time entries and exits, a 60-minute

Strategy v6 Sessions & timeBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of PF Analyzer (PineForge)

P_syn_history_scopes

by GammaExpansion
1 stars

This indicator is a synthetic fixture that exercises Pine history references across functions, branches, and a loop. A user function returns the one-bar change of its source and the prior change, called separately on close and open. Another function keeps a pe

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

Trend Continuation Zones

by rosijay17-cmd
1 stars

An overlay indicator that signals trend-continuation breakouts only in the direction of a mandatory trend filter built from a long EMA and a confirmed higher-timeframe EMA stack. Recent swing highs and lows are stored as reference levels, and a breakout needs

Indicator v6 TrendBreakout
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Continuation Zones

DEPV2 DEBUG S42

by YuceSezar89
1 stars

This multi-asset indicator evaluates market conditions across four analytical dimensions: trend, momentum, volatility, and volume. Configured for up to twenty cryptocurrency pairs, it generates trade signals through isolated methods, simultaneous multi-method

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

CODEX NO1 Flip Engine v4

by vedkanani123
1 stars

A confirmed-close trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. Version 4 is a separate state machine using a fast ZLEMA, a slow baseline, KAMA and a widened ATR trail. A signal needs a completed-bo

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NO1 Flip Engine v4
1 stars

This strategy calculates rate of change momentum across multiple user-defined symbols and ranks them using arrays. It rotates capital into the highest-performing asset symbol at scheduled bar intervals by closing all existing positions and entering a long trad

Strategy v6 Oscillators & momentumScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of TN Momentum Swarm Sovereign v6

Trend by Linreg Slope

by ivansoft
1 stars

An indicator that measures trend from the slope of a linear regression. It smooths the average of open and close with a short moving average, fits a regression line over a chosen number of bars, and plots the slope in a separate pane as an area, teal when risi

Indicator v6 Trend
Updated 1 year ago · None stated GitHub repository of Trend by Linreg Slope

TylerG FVG BB Reversal

by TradersPost
228 stars

This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs). It tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by to

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 3 months ago · None stated GitHub repository of TylerG FVG BB Reversal

Donchian Channels (DC)

by mihakralj
99 stars

This indicator calculates and plots Donchian Channels directly on the price chart. It determines the highest high and lowest low over a user-selected lookback period using an optimized monotonic deque algorithm, as well as a middle basis line computed as their

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Donchian Channels (DC)
47 stars

This indicator calculates Kendall's Tau-a rank correlation between a chosen price source and the close of a second symbol. It counts concordant and discordant pairs inside a rolling window and plots the coefficient, ranging from minus one to plus one, in a sep

Indicator v6
Updated 8 months ago · MIT GitHub repository of Kendall Rank Correlation

This indicator scores trend alignment across the chart timeframe and three configurable higher timeframes. It classifies each timeframe as bullish or bearish with Supertrend and, when enabled, a volatility regime, then combines the results into a 0–100 conflue

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of MTF Trend Alignment Dashboard [WavesUnchained]
7 stars

This indicator detects consolidation zones, fair value gaps, and breakaway gaps on the price chart using Heikin-Ashi price calculations. It tracks overlapping candles to identify consolidation ranges and marks subsequent structural breakouts. Users can display

Indicator v6 SMC / ICT / price actionBreakout
Updated 3 months ago · None stated GitHub repository of HA Colidation Breakout Structure

Percentage Volume Oscillator (PVO)

by mushroom-men-Trading
2 stars

This indicator calculates the Percentage Volume Oscillator (PVO), measuring the percentage difference between a fast exponential moving average (EMA) and a slow EMA of trading volume. It plots the main PVO line, a signal line smoothed by a third EMA, and a his

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Percentage Volume Oscillator (PVO)

USI Flip Strategy

by skipp-dev
1 stars

USI Flip Strategy calculates a multi-length Ultimate Speed Index (USI) consisting of six RSI lines (L0 to L5) to identify market momentum shifts on the price chart. It enters long or short positions when fast lines cross slow lines, filtered by volume ratio th

Strategy v6 Oscillators & momentumTrend
Updated 4 days ago · None stated GitHub repository of USI Flip Strategy

This strategy detects EMA crossovers on the price chart using 9 and 21 period EMAs. It sets pending long signals on fast EMA cross above slow EMA and pending exit on cross below. Entries and exits trigger only on confirmed bars via barstate.isconfirmed. Long e

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF barstate-magnifier probe 01a - isconfirmed ON

P_syn_if_else

by GammaExpansion
1 stars

This script is a synthetic test indicator designed to evaluate conditional if-else branching logic in Pine Script v6. It calculates a simple candle direction value, dynamically assigns price metrics like high, low, median price, or average price based on condi

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

Trend Following Engine v3

by rosijay17-cmd
1 stars

An overlay indicator that scores trend continuation setups from 0 to 100 and fires a signal when the score passes a threshold. The score blends normalised ADX, trend efficiency, relative volume, DI separation, slope and momentum, each with adjustable low and h

Indicator v6 TrendOscillators & momentum
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Following Engine v3

DEPV2 DEBUG S43

by YuceSezar89
1 stars

Monitors up to twenty cryptocurrency perpetual contracts across four analytical dimensions: trend, momentum, volatility, and volume. The indicator evaluates signals using single-method triggers, simultaneous confluence thresholds, sequential execution chains w

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

CODEX NO1 Flip Engine v5

by vedkanani123
1 stars

A structure-confirmed trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. A flip passes a chain of tests: confirmed close, clean regime, normalized baseline slope relative to ATR, displacement, a complete

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NO1 Flip Engine v5
1 stars

An indicator in a separate pane that plots two linear regression slopes of the open and close average: one from the chart timeframe and one requested from the daily timeframe, both coloured by direction. It adds percentile bands of positive and negative slope

Indicator v6 Trend
Updated 1 year ago · None stated GitHub repository of Trend by Linreg Slope Pivot

Volume Profile - Session

by TradersPost
228 stars

Volume Profile - Session constructs volume distribution histograms across daily, weekly, or monthly periods directly on the price chart. It divides session price ranges into discrete price levels and calculates total volume per bin to identify the Point of Con

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Volume Profile - Session
99 stars

This indicator calculates the Bressert double stochastic in a separate pane. It applies the stochastic formula to close, high, and low, smooths that result with an exponential moving average, then applies a second stochastic to the smoothed series and smooths

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Double Stochastic (DSS Bressert)
47 stars

This indicator plots a linear transformation of a chosen price source in a separate pane. It centers the source on an internal simple moving average, scales the deviation by factor a, then adds offset b. The scale and offset inputs change the slope and vertica

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of Linear Transformation (LINEAR)

MTF WaveTrend Opportunity Hunter calculates multi-timeframe momentum and confluence scores using WaveTrend across custom Regime, Setup, Trigger, and Context timeframes. It plots a net confluence score histogram, multi-layer heat ribbons, an RRG-style Rotation

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of MTF WaveTrend Opportunity Hunter [WavesUnchained]

HB Directional Range

by eddiebelaval
7 stars

HB Directional Range calculates and plots consolidation range boxes directly on the price chart based on candle body behavior. It tracks high and low boundaries, extending the active range box as long as candle bodies remain within it. When a candle body break

Indicator v6 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of HB Directional Range

Positive Volume Index (PVI)

by mushroom-men-Trading
2 stars

The Positive Volume Index (PVI) is a volume-based technical indicator that tracks cumulative price changes only on days when volume exceeds the prior period. It initializes at a starting value such as 100 and updates by multiplying the previous value with the

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

USI-CHoCH

by skipp-dev
1 stars

Calculates a multi-speed RSI system across six lengths to identify Change of Character (CHoCH) market structure shifts. The indicator overlays signals on the main chart, combining volume filter thresholds, OBV divergence analysis, anticipation proximity marker

Indicator v6 SMC / ICT / price actionOscillators & momentum
Updated 4 days ago · None stated GitHub repository of USI-CHoCH

This strategy plots EMAs on the price chart. It signals long entries when the fast EMA crosses above the slow EMA on a barstate.isconfirmed bar and exits on opposite cross when barstate.isconfirmed. It uses fixed position sizing of 1 with no stop loss. The mai

Strategy v6 Moving averagesTrend
Updated 7 days ago · Apache-2.0 GitHub repository of PF barstate-magnifier probe 01b isconfirmed OFF

P_syn_library

by GammaExpansion
1 stars

P_syn_library is a Pine Script v6 library that exports two numeric helpers and a small user-defined type. The double function multiplies a float by two, and mid returns the average of two floats. Pair stores two float fields, and the sum method adds those fiel

Library v6
Updated 7 days ago · MIT GitHub repository of P_syn_library

A trend-following strategy that marks entries with triangles. Trend needs a fast and slow EMA stack with a minimum slope, an optional ADX filter and an optional higher-timeframe EMA check defaulting to daily. Two entry modes are offered: a pullback continuatio

Strategy v6 TrendBreakout Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Trend Following Strategy - Triangle Entries

DEPV2 DEBUG S44

by YuceSezar89
1 stars

DEPV2 DEBUG S44 is a multi-asset signal and confluence indicator designed for cryptocurrency pairs. It monitors up to twenty Binance perpetual contracts across four distinct analytical dimensions: trend, momentum, volatility, and volume. The script supports mu

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

A strategy that votes three order flow measures from footprint data into a weighted score. The delta agent uses net buying against total volume, the imbalance agent counts price rows where buy or sell volume dominates, and the point of control agent checks whe

Strategy v6 Volume
Updated 2 months ago · None stated GitHub repository of TN Multi-Agent OF Ensemble

Trend Strength Index

by ivansoft
1 stars

Plots the correlation between closing price and bar index over a chosen length, 14 by default, in a separate pane. Values near plus one indicate a steady rise across the window and values near minus one a steady fall. Gradient fills shade the area above and be

Indicator v6 Trend
Updated 1 year ago · None stated GitHub repository of Trend Strength Index

VWAP - Basic

by TradersPost
228 stars

VWAP - Basic plots an anchored Volume Weighted Average Price directly on the main price chart alongside two standard deviation bands. It calculates typical price weighted by volume, resetting the cumulative calculations at user-selected session, weekly, or mon

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of VWAP - Basic
99 stars

This indicator plots a Dynamic Momentum Index in a separate pane. It computes a volatility ratio from short and long population standard deviations, then clamps a rounded base period divided by that ratio between minimum and maximum lengths. A Wilder RMA RSI u

Indicator v6 Oscillators & momentumVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Dynamic Momentum Index (DYMI)
47 stars

This indicator plots a linear transformation of a chosen price source in a separate pane. It computes a streaming simple moving average, then scales the source deviation from that average by factor a and adds offset b, so the result equals a times the deviatio

Indicator v6 Moving averages
Updated 8 months ago · MIT GitHub repository of Linear Transformation (LINEAR)

This indicator tracks completed cycles of a selected bounded oscillator from one extreme zone to the opposite extreme. It stores historical attempts and reports how often the opposite zone was reached, conditioned on progress already made, cycle age, and a tre

Indicator v6 Oscillators & momentumMean reversion
Updated 3 days ago · MIT GitHub repository of Oscillator Cycle Statistics [WavesUnchained]
2 stars

This indicator plots Fibonacci Time-Price Zones on the price chart. It draws horizontal and vertical Fibonacci levels from 0.236 to 1.236 using user-defined values, colors, and line thicknesses. Different zone types such as retracement and shapes including cir

Indicator v6 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Fibonacci Time-Price Zones

Price Volume Divergence (PVD)

by mushroom-men-Trading
2 stars

The Price Volume Divergence (PVD) indicator calculates the rate of change for price and volume over user-defined lookback periods. It evaluates divergence by comparing price momentum against volume momentum, scaling the output by their combined magnitude. The

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Price Volume Divergence (PVD)

USI-Flip

by skipp-dev
1 stars

This indicator plots buy and short signal labels directly on the price chart based on crossovers across six multi-length RSI lines. The script identifies flip conditions when the fastest line crosses through the slower line bundle, filtered by a configurable v

Indicator v6 Oscillators & momentumVolume Repaints
Updated 4 days ago · None stated GitHub repository of USI-Flip

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