Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 69)

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

Strong NQ ORB Breakouts

by rosijay17-cmd
1 stars

An overlay indicator for opening range breakouts on Nasdaq futures. The range can start automatically at the session open or use a custom window, with an adjustable length in minutes. A breakout by close or wick produces a signal with a stop based on ATR, the

Indicator v6 BreakoutSessions & time
Updated 8 days ago · GPL-3.0 GitHub repository of Strong NQ ORB Breakouts

DEPV2 Debug S3

by YuceSezar89
1 stars

Calculates and visualizes multi-symbol signals across four distinct metric categories: trend, momentum, volatility, and volume. It tracks up to 20 cryptocurrency pairs simultaneously, supporting signal combination modes like single-method execution, simultaneo

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

A Bollinger Band breakout strategy with Spanish-language settings. It goes long when price closes above the upper band and short when it closes below the lower band, limited to a configurable date range and a cooldown of bars between trades. Three take-profit

Strategy v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger - 3 TPs (Frecuentes)

TN kNN Matrix ML

by raybird
1 stars

A machine learning strategy using k-nearest neighbours with a Lorentzian distance. Four normalised features, RSI, price rate of change, CCI and volume rate of change, are stored in a rolling matrix with a label for whether the next close was higher. Each bar i

Strategy v6 AI / machine learning
Updated 2 months ago · None stated GitHub repository of TN kNN Matrix ML

Price Volume Trend

by ivansoft
1 stars

Plots the Price Volume Trend in a separate pane: a running total of volume weighted by the percentage change in close. Rising values show volume accompanying upward closes, falling values the reverse. It has no inputs and no signals. The script raises an error

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Price Volume Trend

Session Filter Template

by TradersPost
228 stars

Session Filter Template highlights major global trading sessions including Asia, London, New York, and a user-defined custom session directly on the price chart. It visualizes active sessions using background color fills, tracks high and low price levels for e

Indicator v6 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of Session Filter Template
99 stars

Calculates the Pearson correlation coefficient between price data and a linear time index over a customizable lookback period. It measures linear trend strength and direction, outputting values bounded between -1.0 and +1.0. The script uses an optimized increm

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Correlation Trend Indicator (CTI)

Inertia

by mihakralj
47 stars

The Inertia oscillator measures trend deviation by calculating the distance between the current price and a linear regression line endpoint. It computes a linear regression fit across the specified lookback period and subtracts the projected line value from th

Indicator v6 Oscillators & momentumTrend
Updated 8 months ago · MIT GitHub repository of Inertia
16 stars

This trend-following strategy executes long and short trades based on Donchian channel breakouts directly on the price chart. It enters positions when price breaks a multi-bar high or low and exits on opposing Donchian channel band crosses. Risk management inc

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Accelerated Pyramid
9 stars

This indicator plots an anchored MIDAS support and resistance curve from launch-anchored volume-weighted price on the price chart. It adds two configurable volume-weighted standard-deviation, ATR, or hybrid bands and a topfinder or bottomfinder accelerated exh

Indicator v6 Mean reversionSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of MIDAS 2.0 [WavesUnchained]
7 stars

This price-chart overlay compares market effort with price result and does not generate buy or sell signals. Effort combines current volume divided by a moving average of volume with true range divided by ATR. Result uses absolute net progress over a lookback

Indicator v6 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of Effort vs Result Context Overlay
4 stars

This strategy trades momentum breakouts based on the alignment of three exponential moving averages. It enters a long position when all three EMAs align in ascending order and enters short when they align in descending order. Positions are managed with ATR-bas

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Triple EMA Strategy [trugurpala]

Modified Moving Average (MMA)

by mushroom-men-Trading
2 stars

This indicator calculates a modified moving average that mixes a simple moving average with a weighted component over a circular buffer. It plots the resulting line on the price chart. The period sets the lookback, which must be at least 2, and the source choo

Indicator v6 Moving averages
Updated 9 months ago · None stated GitHub repository of Modified Moving Average (MMA)

SMC Core Types

by skipp-dev
1 stars

This Pine Script v6 library exports core data types, enums, and drawing wrappers designed for Smart Money Concepts tools. It defines structured arguments for drawing lines, labels, boxes, and chart points to simplify visual rendering on price charts for concep

Library v6 Repaints
Updated 4 days ago · None stated GitHub repository of SMC Core Types

OBV EMA Cross

by pineforge-4pass
1 stars

A minimal strategy that compares On Balance Volume with a 21-period EMA of itself. It enters long when OBV crosses above the average and short when it crosses below, reversing the position each time. It has no adjustable inputs, no stop loss and no take profit

Strategy v6 Volume
Updated 7 days ago · Apache-2.0 GitHub repository of OBV EMA Cross

P_fmt_quotes_escapes

by GammaExpansion
1 stars

This indicator is a Pine Script v6 parser fixture that builds five string literals containing escaped double quotes, escaped single quotes, backslashes, a newline escape, hash and slash characters, and Unicode text. It adds the character lengths of those strin

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

An overlay indicator that studies how price approaches, tests and resolves confirmed swing zones, role-reversal levels and CUSUM change-point levels that fade with age. A state machine follows a level, impulse, pullback and higher-low or lower-high sequence an

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of Structure Physics v4 Rotation Confirmation

DEPV2 DEBUG S30

by YuceSezar89
1 stars

This indicator monitors and analyzes up to twenty cryptocurrency perpetual futures pairs from a separate pane. It evaluates market conditions across four distinct analytical dimensions: trend, momentum, volatility, and volume. The script tests signal confirmat

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

Breakout Pattern Setup

by vedkanani123
1 stars

A pattern indicator on the price chart that looks for converging channels, such as triangles and wedges, from swing pivots. A channel needs a minimum number of touches per boundary, a maximum width, a minimum convergence rate and ATR-based tolerances. Breakout

Indicator v6 BreakoutSupport & resistance
Updated 2 months ago · None stated GitHub repository of Breakout Pattern Setup
1 stars

A liquidity sweep strategy on the price chart. It flags bars that push beyond the recent high or low and close back inside, then scores the setup using volume, a higher-timeframe EMA trend, an ATR noise filter and a lower-timeframe rejection check. The signal

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of TN Liquidity Sovereign
1 stars

Plots the Rank Correlation Index of a chosen source over a set length, 10 by default, in a separate pane with bands at plus and minus 80 and a middle line. An optional smoothing line can be added using SMA, EMA, SMMA, WMA or VWMA, or SMA with Bollinger Bands w

Indicator v6 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of Rank Correlation Index
228 stars

Calculates and plots Smart Money Concepts (SMC) elements directly on the price chart, including swing and internal market structure (Break of Structure and Change of Character), order blocks, fair value gaps, and liquidity pools. Features multi-timeframe analy

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of Smart Money Concepts - Suite
99 stars

Calculates the statistical covariance between the current chart instrument and an external symbol over a specified rolling window. The calculation uses an optimized circular buffer to maintain running sums and computes joint variability in a single pass. Users

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Covariance (COVARIANCE)

This indicator calculates the Integral of Linear Regression Slope (ILRS), an overlay trend filter originally described by John Ehlers. It computes the rolling least-squares linear regression slope over a user-defined window using a circular buffer and integrat

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Integral of Linear Regression Slope (ILRS)

This strategy enters long or short when price closes beyond a Donchian channel and can require a slow moving average, called the tide, to agree with the direction. It sizes each unit from ATR risk, sets an initial ATR stop, and adds units after further ATR mov

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 5: Close-Confirmed + Tide

Modern Trend Regime classifies price action into trend, range, and transition modes using a score rather than a strict conjunction of conditions. It builds fast, base, and slow structure from a price-range, EMA, WMA, or SMA calculation, then compares ATR-norma

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

EMA System

by eddiebelaval
7 stars

EMA System plots four exponential moving averages on the price chart and marks a long-only pullback setup. It treats price above the 200 EMA and the 21 EMA above the 50 EMA as a valid trend, then flags a buy when price is near the 21 EMA, volume is below its s

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of EMA System
4 stars

This strategy plots a fast and a slow exponential moving average on the price chart and enters when they cross. A long opens when the fast average crosses above the slow average, and a short opens on a cross below unless long-only mode is on. An optional trend

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of Universal Strategy [trugurpala]
2 stars

The Dynamic Equity Allocation Model is an indicator that calculates and plots dynamic allocation percentages between equity and cash in a separate pane. It weighs five factors including market regime detection, risk metrics, valuation, sentiment, and macro con

Indicator v6 Screeners & dashboardsVolatility & bands
Updated 8 months ago · None stated GitHub repository of Dynamic Equity Allocation Model

Money Flow Index (MFI)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Money Flow Index (MFI) in a separate pane. It measures buying and selling pressure by weighting typical price movements with trading volume over a user-defined lookback window. The implementation uses circular buffers to

Indicator v6 Oscillators & momentumVolume
Updated 9 months ago · None stated GitHub repository of Money Flow Index (MFI)

SMC Hold Manager

by skipp-dev
1 stars

SMC Hold Manager is a visual decision-support overlay for managing Smart Money Concept trade positions. It connects to the SMC Engine BUS v2 system or accepts manual trade inputs to display trade lifecycle levels on the price chart. The indicator tracks entry

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 4 days ago · None stated GitHub repository of SMC Hold Manager
1 stars

This validation strategy evaluates the execution timing of stop loss and take profit orders in Pine Script. It enters a single long position at fixed daily wall-clock times (00:00 and 12:00 UTC) whenever the strategy is flat. Stop loss and limit profit targets

Strategy v6 Volatility & bands
Updated 7 days ago · Apache-2.0 GitHub repository of Parity Probe 01 - Stop/Limit Timing

P_fmt_tabs_mixed

by GammaExpansion
1 stars

P_fmt_tabs_mixed is an indicator that tracks net candle direction by maintaining a running cumulative counter. It increments the counter by one on bullish bars where the closing price exceeds the opening price, and decrements it by one on bearish bars where th

Indicator v6 Candlestick patternsOscillators & momentum
Updated 7 days ago · MIT GitHub repository of P_fmt_tabs_mixed

A strategy version of a structure indicator that studies how price interacts with confirmed swing zones, role-reversal levels and CUSUM change-point levels. A state machine tracks a level, impulse, pullback and higher-low or lower-high sequence, then grades th

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 8 days ago · GPL-3.0 GitHub repository of Structure Physics v4.2 Rotation Confirmation Strategy

DEPV2 DEBUG S32

by YuceSezar89
1 stars

DEPV2 is a multi-symbol cryptocurrency indicator that processes 20 major crypto pairs including BTC, ETH, SOL, BNB and others. It evaluates four signal classes consisting of trend, momentum, volatility and volume. Signals are generated according to user-select

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

Bull Bear Market Ribbon

by vedkanani123
1 stars

A simple price-chart indicator that plots a fast and a slow moving average, defaulting to 21 and 55 periods, and fills the space between them as a ribbon. Both lines and the fill are blue when the fast average is above the slow one and red when below. The aver

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Bull Bear Market Ribbon
1 stars

This strategy identifies liquidity sweeps around swing pivot levels and trades reversals aligned with higher-timeframe trend context. It enters long when price pierces a prior pivot low and closes back above it while trading above the daily 200 EMA. Short entr

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of TN Liquidity Sweep Sovereign

RCI Ribbon

by ivansoft
1 stars

Plots three Rank Correlation Index lines of different lengths, 10, 30 and 50 bars by default, in one separate pane, coloured blue, red and green. Horizontal levels at zero and plus and minus 80 frame the range with a shaded area between the outer levels. Sourc

Indicator v6 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of RCI Ribbon
228 stars

This strategy identifies trade opportunities based on candlestick wick imbalances relative to the Average True Range. It enters positions when candle wicks exceed defined thresholds and filters out doji candles using a minimum body ATR requirement. Exits are h

Strategy v6 Candlestick patternsVolatility & bands Repaints
Updated 3 months ago · None stated GitHub repository of Super Negative R:R Wick Strategy
99 stars

This indicator plots a cumulative moving average, also called a running mean, of a chosen price series on the price chart. It updates one bar at a time with Welford's method, weighting each new value by one over the bar count so the line is the mean of all his

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Cumulative Moving Average
47 stars

The Interquartile Range (IQR) indicator measures the statistical dispersion of price data over a user-defined lookback window. It computes the 25th percentile (Q1) and 75th percentile (Q3) using array sorting and linear interpolation, plotting the difference b

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Interquartile Range (IQR)
16 stars

Seykota Alt 6 Pure ATR Stop is a trend-following strategy based on Donchian channel breakouts and ATR volatility trailing stops. It enters trades when price breaks out beyond the Donchian lookback channel, provided optional market regime and volume filters are

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 6: Pure ATR Stop

This indicator implements a Wyckoff method state machine that tracks accumulation, distribution, markup, and markdown regimes across phases A through E. It identifies structural events including springs, UTADs, SOS, SOW, LPS, LPSY, and climactic bars using ATR

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 days ago · MIT GitHub repository of Modern Wyckoff State Machine Lite [WavesUnchained]
4 stars

This strategy trades USD/JPY on the price chart during Tokyo and London sessions. It enters long when the fast EMA crosses above the slow EMA while price is above the trend EMA and RSI is above its midpoint, and it enters short on the opposite cross. Position

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of USD/JPY Carry Trend [trugurpala]
2 stars

Dynamic Gap Probability Tool is a price-chart indicator that plots a selectable moving average and measures how far the close sits from it as a rounded percentage. It stores historical counts of bars above and below that average at each deviation size, then sh

Indicator v6 Moving averagesScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Dynamic Gap Probability Tool

Moving Averages Trends and Filters

by mushroom-men-Trading
2 stars

This script provides a consolidated library of moving average calculations in Pine Script v6. It implements FIR functions including ALMA using Gaussian weights, BLMA with Blackman window, and BWMA using Bessel function, along with IIR moving averages from miha

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Moving Averages Trends and Filters

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