Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 70)

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

1 stars

This Pine Script v6 library exports constant reference data and profiles for Smart Money Concepts (SMC) decision-support systems. It provides over 190 static export fields covering universe tickers, market regime status, macro bias, news heat maps, volatility

Library v6
Updated 4 days ago · None stated GitHub repository of SMC Micro Profiles Generated
1 stars

This Pine Script v6 strategy isolates and tests market structure events, specifically Break of Structure (BOS) and Change of Character (CHoCH). Using swing points calculated from configurable pivot strength settings, it tracks structural direction and triggers

Strategy v6 SMC / ICT / price actionBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of Parity Probe 02 - CHoCH/BOS Isolator

P_syn_alerts_log

by GammaExpansion
1 stars

This Pine Script indicator detects when the closing price crosses above a 20-period simple moving average. When a crossover occurs, it triggers an alert condition, executes a dynamic alert call with the current close price, and plots a value of 1 (and 0 otherw

Indicator v6 Moving averagesTrend
Updated 7 days ago · MIT GitHub repository of P_syn_alerts_log

Supply & Demand Zones XL

by rosijay17-cmd
1 stars

An overlay indicator that finds swing pivots, with adjustable bars left and right, and turns them into supply and demand zones sized by an ATR multiple. Overlap rules stop zones of the same or opposite type from stacking. Zones can be extended, historical and

Indicator v6 Support & resistanceVolatility & bands Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Supply & Demand Zones XL

DEPV2 DEBUG S33

by YuceSezar89
1 stars

This indicator monitors up to twenty cryptocurrency perpetual pairs across four analytical categories: trend, momentum, volatility, and volume. It generates trade signals using multiple modes, including single-method execution, simultaneous confluence requirin

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

Cardwell Dual Confluence

by vedkanani123
1 stars

A price-chart indicator by MarkitTick based on Cardwell RSI ideas. It produces buy and sell signals from a fast and slow smoothed RSI crossover and from an RSI regime check combined with a moving average trend, with bull and bear RSI ranges. A minimum bar gap

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Cardwell Dual Confluence
1 stars

This strategy couples a moving average crossover with external macroeconomic data imported via request.seed. It calculates a 20-period SMA on the fetched macro metric to identify Risk-On, Risk-Off, or Neutral market regimes. Long entries trigger when the 12 EM

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

Plots standard deviation, variance and mean absolute deviation of close over a chosen length in a separate pane, and overlays a simple moving average of the same length on the price chart. The length input defaults to five. It also contains hand-written versio

Indicator v6 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Standard Deviation Plots
228 stars

This overlay indicator marks confirmed pivot highs and pivot lows and draws horizontal resistance and support lines from those prices. Each line starts at the pivot bar and extends a set number of bars to the right. It keeps up to ten support lines and ten res

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Support & Resistance - Basic

Decay Min-Max Channel

by mihakralj
99 stars

Decay Min-Max Channel plots a price channel whose upper and lower bounds decay toward their midpoint. Each bar it stores highs and lows in a rolling window, tracks the latest extremes, and applies exponential decay when no new high or low appears. The decay co

Indicator v6 Support & resistanceVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Decay Min-Max Channel

Jarque-Bera Test (JB)

by mihakralj
47 stars

The script calculates the Jarque-Bera statistic of a chosen source over a rolling sample. It estimates sample mean, variance, skewness, and excess kurtosis, then plots the resulting statistic in a separate pane. Horizontal lines mark approximate chi-squared cr

Indicator v6
Updated 8 months ago · MIT GitHub repository of Jarque-Bera Test (JB)
16 stars

This strategy enters on Donchian channel breaks and can trade long, short, or both. Position size for each unit is based on a percentage of equity divided by an initial ATR stop. A chandelier stop trails a multiple of ATR from the highest high since entry for

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 7: Chandelier Trail

This overlay indicator builds a horizontal momentum profile over a chosen lookback. It splits price into rows and plots the average WaveTrend of each zone as a bar colored by direction, plus an optional MFI reference band that stays gray when real trade volume

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Momentum Profile [WavesUnchained]

Game Theory EMA Strategy

by eddiebelaval
7 stars

The Game Theory EMA Strategy combines triple Exponential Moving Averages with game theory modeling to generate trade entries on price charts. It evaluates buyer and seller momentum alongside volume weighting to compute expected utility metrics and Nash equilib

Strategy v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Game Theory EMA Strategy
4 stars

This strategy trades USD/JPY on the price chart. It enters long when a fast EMA crosses above a slow EMA and short when the fast EMA crosses below, but only during the Tokyo or London sessions in GMT. Each entry places an ATR-based stop loss and take profit us

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

Negative Volume Index (NVI)

by mushroom-men-Trading
2 stars

This indicator calculates the Negative Volume Index and plots it as a yellow line in a separate pane. It updates the running index only on bars where volume is lower than the previous bar, multiplying the value by the ratio of the current price source to the p

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

SMC Overlay Generated

by skipp-dev
1 stars

This library exports constants for SMC trading intelligence. It provides market regime status, global news heat scores, bullish and bearish ticker lists, earnings calendars, and per-ticker sentiment maps. These fields support overlay companions in other script

Library v6 SMC / ICT / price actionScreeners & dashboards
Updated 4 days ago · None stated GitHub repository of SMC Overlay Generated

Parity probe 03 - equity mirror

by pineforge-4pass
1 stars

This strategy mirrors TradingView strategy.equity by computing position quantity as equity divided by close at each potential entry bar. It signals long entries every Monday at 00:00 UTC when no position exists and flattens at the next bar open. The overlay=tr

Strategy v6 Sessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of Parity probe 03 - equity mirror

P_syn_arrays

by GammaExpansion
1 stars

This indicator exercises Pine Script v6 array functions and plots one combined value in a separate pane. It keeps a rolling array of the latest close prices, capped at fifty bars, then builds numeric arrays and applies sort, insert, remove, copy, reverse, conc

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_syn_arrays
1 stars

A strategy conversion of a supply and demand zone indicator. Zone detection, strength scoring and break detection are unchanged: pivots with set bars left and right form ATR-sized zones that can be scored and tracked as they break. A new entries section places

Strategy v6 Support & resistanceVolatility & bands Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Supply & Demand Zones XL Strategy

DEPV2 DEBUG S34

by YuceSezar89
1 stars

DEPV2 DEBUG S34 is a multi-symbol crypto signal indicator that analyzes 20 Binance pairs (BTC, ETH, SOL, and others) using trend, momentum, volatility, and volume methods. It plots signals in a separate pane based on user-selected confirmation modes such as si

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

This strategy calculates Global Minimum Variance Portfolio (GMVP) optimal weights across three asset symbols using matrix algebra in Pine Script v6. It fetches log returns for the specified assets, computes their covariance matrix, and inverts it to rebalance

Strategy v6 Screeners & dashboardsVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Markowitz GMVP Sovereign v6

Supertrend Comparison

by ivansoft
1 stars

Plots the built-in Supertrend with a factor of 3 and ATR period of 10, then plots a hand-written Pine version of the same calculation so the two can be compared. Green segments mark an uptrend and red segments a downtrend. It appears in a separate pane rather

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend Comparison
228 stars

This indicator detects horizontal support and resistance zones directly on the price chart using pivot highs and lows. It clusters nearby pivot points within a customizable percentage width to track repeated price touches and recalculates the average level pri

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Support & Resistance Template
99 stars

This indicator plots the DeMarker oscillator in a separate pane. It compares the current high and low with the previous bar, keeps only positive advances and declines, and smooths those series with a simple moving average over a user-set period. The result is

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of DeMarker Oscillator (DEM)
47 stars

This indicator calculates adaptive Jurik Volatility Bands and plots an upper band, a lower band, and a filled channel directly on the price chart. It dynamically adjusts band width according to prevailing market volatility using an adaptive volatility weightin

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Jurik Volatility Bands (JBANDS)
16 stars

This strategy enters long or short breakouts when price crosses a Donchian channel and exits with a volatility-adaptive Donchian lookback that is shorter in low volatility and longer in high volatility. It sizes each unit from a percentage of equity and an ATR

Strategy v6 TrendVolatility & bands
Updated 12 months ago · None stated GitHub repository of Seykota Alt 8: Adaptive Exit

This indicator calculates the velocity and acceleration for WaveTrend, StochRSI, and Money Flow Index (MFI) oscillators. By treating indicators as vector trajectories, it detects momentum exhaustion before traditional oscillator turns occur. It classifies mark

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Momentum Trajectory [WavesUnchained]
7 stars

Calculates a proxy for options gamma hedging pressure by combining ATR-normalized candle range, price acceleration, and volume participation normalized by a volume moving average. The smoothed pressure metric is plotted as a color-coded histogram in a separate

Indicator v6 Volatility & bandsVolume
Updated 3 months ago · None stated GitHub repository of Gamma Hedging Pressure (Proxy)

This strategy generates trading signals using a dual exponential moving average cross confirmed by the Relative Strength Index. It restricts entries to specific market session hours (09:30-18:15 UTC+3) designed for Turkish VIOP index futures. Long positions en

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of VİOP BIST30 Alert Strategy [trugurpala]

Normalized Average True Range

by mushroom-men-Trading
2 stars

The Normalized Average True Range indicator calculates NATR as a percentage of the current close price using a true range based on the specified length. It plots the resulting value on a separate pane for easy viewing. The main input setting is the length para

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Normalized Average True Range

SMC Regime & News

by skipp-dev
1 stars

This indicator displays a notice table on the chart informing the user that the SMC Regime and News script is retired and has no supported Pine data connection. It was originally intended as a bridge for external data feeds, but as Pine Script cannot directly

Indicator v6 Screeners & dashboards
Updated 4 days ago · None stated GitHub repository of SMC Regime & News
1 stars

This strategy is a parity probe that enters long only when the chart is flat at Monday 00:00 UTC. Position size is left to Pine's percent-of-equity path at 99 percent of equity, with no explicit quantity argument. It closes the position on a later bar after th

Strategy v6 Sessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of Parity probe 04 - percent_of_equity sizing

P_syn_builtin_vars

by GammaExpansion
1 stars

P_syn_builtin_vars is a synthetic test indicator designed to verify engine execution of Pine Script built-in variables. It calculates cumulative sums across various built-in namespace properties, including price data, time indices, bar states, symbol informati

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

Sweep and Engulf Strategy

by rosijay17-cmd
1 stars

A strategy that looks for a one-bar sweep and engulf pattern: a bar that takes out the previous low and closes above the previous high is bullish, and the mirror case is bearish. By default the trades are inverted, so a bullish pattern opens a short and a bear

Strategy v6 Candlestick patternsSMC / ICT / price action
Updated 8 days ago · GPL-3.0 GitHub repository of Sweep and Engulf Strategy

DEPV2 DEBUG S35

by YuceSezar89
1 stars

DEPV2 DEBUG S35 is a debugging indicator that calculates multi-symbol trading signals using four methods: trend, momentum, volatility, and volume. It monitors 20 different crypto pairs including BTCUSDT, ETHUSDT, and others. The script allows users to select s

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

A trend flip indicator on the price chart, where BUY exits a short and enters long and SELL does the reverse. Version 2 makes a reversal a two-stage event: the opposite side must break the active ATR trail for consecutive closes, then show persistence, trade m

Indicator v6 TrendVolatility & bands Repaints
Updated 2 months ago · None stated GitHub repository of CODEX NEXUS v2 - Anti-Whipsaw MTF
1 stars

This strategy stores a rolling matrix of RSI, ATR relative to price, and rate of change, together with each bar’s close direction. It averages outcomes from historical rows inside a fixed distance and treats that score as confidence. It enters long when confid

Strategy v6 AI / machine learningOscillators & momentum
Updated 2 months ago · None stated GitHub repository of TN Matrix kNN ML Sovereign
1 stars

This educational script demonstrates how to use the switch control statement in Pine Script to select between different moving average calculation types. It calculates a 10-period moving average based on user configuration, allowing selection between Exponenti

Indicator v6 Moving averages
Updated 1 year ago · None stated GitHub repository of Switch using an expression
228 stars

TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of TradersPost Trading Checklist
99 stars

Calculates the Derivative Oscillator by applying double exponential moving average (EMA) smoothing to a Relative Strength Index (RSI) baseline and subtracting a simple moving average (SMA) signal line. Plotted in a separate pane alongside a zero reference line

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Derivative Oscillator (DOSC)
47 stars

This indicator calculates and plots a Kaiser Window Moving Average directly on the price chart. It applies a symmetric finite impulse response filter using the Kaiser-Bessel window function, powered by a 25-term power series approximation of the modified Besse

Indicator v6 Moving averagesTrend
Updated 8 months ago · MIT GitHub repository of Kaiser Window Moving Average
16 stars

Seykota Alt 9: Time Exit Primary executes a Donchian breakout trend-following strategy that prioritizes time-based exits over price-based trailing stops. It enters long or short on 55-bar Donchian channel breakouts, sizing positions by ATR-based risk and pyram

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 9: Time Exit Primary

This indicator plots a directional volume and money flow profile directly on the price chart over a configurable lookback period. It displays total flow reference bars alongside directional delta bars to highlight buyer versus seller dominance at each price ti

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · MIT GitHub repository of Money Flow Delta Profile [WavesUnchained]

GCM Volume-Price Essence

by eddiebelaval
7 stars

GCM Volume-Price Essence is a separate-pane oscillator that weights recent price change by a short-to-longer volume ratio and a volume impact factor. It plots the smoothed difference of fast and slow exponential flows, plus optional quantum base line, dynamic

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of GCM Volume-Price Essence

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