Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 82)

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

An overlay indicator that tracks swing highs and lows with pivots on the chart timeframe and on a one-hour context, which it reads from a Heikin Ashi version of the symbol. It labels the trend direction on each, reports when the two agree as bullish or bearish

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Tn Sovereign MTF Swing
99 stars

This indicator calculates the Ehlers Universal Oscillator by extracting white noise through two-bar price differencing, smoothing the series with a two-pole Super Smoother filter, and normalizing values using automatic gain control peak tracking. It plots a co

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Universal Oscillator (UO)
9 stars

Vein: Trend is a signal aggregator indicator that plots directional markers on the main price chart based on a weighted composite confluence score. It evaluates technical conditions across three layers: momentum setup using RSI, MFI, and Bollinger Bands; confi

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein: Trend [WavesUnchained]
1 stars

This strategy tests repeated entries that reuse the same order id while the stop price changes, so only the latest pending stop stays active. On a 15-minute chart it places a one-contract long stop one tick above the high during the 02:00 window and a short st

Strategy v6 Sessions & timeBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 58 - same id stop modify

Precision Sniper

by vedkanani123
1 stars

A signal indicator on the price chart built on a 9, 21 and 55 EMA ribbon. Buy and sell signals need a minimum confluence score drawn from trend, RSI, volume and other checks, and are graded A plus, A, B or C, with C hidden by default. It plots an ATR or struct

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Precision Sniper
1 stars

A trend strategy on the price chart. It enters long when a fast EMA crosses above a slow EMA with RSI below 60 and short on the opposite cross with RSI above 40. An optional higher-timeframe EMA filter, set to four hours by default, requires price to agree wit

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of TN Sovereign MTF Trend
99 stars

This indicator calculates John Ehlers' Voss predictive filter. It first applies a two-pole bandpass to the selected source, then builds a weighted feedback predictor that offsets filter delay by a chosen number of bars. Period sets the primary cycle length, Pr

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Voss Predictive Filter (VOSS)
9 stars

Volume Strata [WavesUnchained] is a fixed-range volume profile indicator that anchors to the right side of the price chart. It calculates volume or money flow distribution over a configurable lookback period to highlight the Point of Control (POC), Value Area

Indicator v6 VolumeSupport & resistance
Updated 3 days ago · MIT GitHub repository of Volume Strata [WavesUnchained]
1 stars

A test strategy from a reference corpus that isolates the timing of market close orders. It buys one unit at 03:15 and closes at 05:15, then sells short one unit at 15:15 and covers at 17:15, based only on the clock. There are no indicators, stop loss or take

Strategy v6 Sessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF Probe 59 Market Close Fill Basis

Pulse Trend Radar

by vedkanani123
1 stars

A trend indicator on the price chart using an efficiency-ratio adaptive moving average with ATR-based bands. A trend flip produces a Long or Short signal, and the script can draw a stop at a multiple of ATR with three targets set as multiples of the risk dista

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Pulse Trend Radar
1 stars

This strategy overlays a multi-timeframe trend system on the price chart. It reads a higher timeframe, selected in minutes, for fast and slow EMA alignment and Supertrend direction, using the prior bar. It enters long or short only when flat, after an executio

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign MTF VIOP v6

Elder Ray Index (ERI)

by mihakralj
99 stars

The Elder Ray Index plots Bull Power and Bear Power values in a separate pane to measure buying and selling pressure. Bull Power is calculated as high minus EMA and Bear Power as low minus EMA, where the EMA uses a period-based smoothing formula with alpha and

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elder Ray Index (ERI)

This overlay indicator plots a session VWAP that resets daily plus pivot-anchored VWAP highs and lows. It marks price crosses of those VWAPs, crosses between session and anchored VWAPs, and clusters where several VWAP lines sit close together. Display mode, cl

Indicator v6 VolumeSessions & time
Updated 3 days ago · MIT GitHub repository of VWAP Cross Visuals [WavesUnchained]

PF Probe 60 Pyramiding Close Id

by pineforge-4pass
1 stars

A test strategy from a reference corpus that checks how closing by order id behaves after several entries have been stacked. It buys one unit at 00:15, 00:30 and 00:45 under the same id and closes all at 01:15, then repeats the pattern on the short side at 12:

Strategy v6 Sessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF Probe 60 Pyramiding Close Id

Quantum Trend Fusion Pro

by vedkanani123
1 stars

A separate-pane indicator that fuses a selectable moving average type (EMA, SMA, HMA, KAMA and others) into a multi-state trend cloud and a smoothed oscillator with signal line. Buy and sell labels depend on a probability score against two thresholds and an op

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Quantum Trend Fusion Pro
1 stars

A trend strategy that requires four conditions to agree: price on the right side of a 200 EMA, ADX at or above a threshold, the positive directional index leading the negative for longs or the reverse for shorts, and a custom ATR-band Supertrend pointing the s

Strategy v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of TN Sovereign Multi Causality
99 stars

This indicator calculates a second-order Elliptic lowpass filter (IIR) with defined passband ripple and stopband attenuation. It applies digital signal processing techniques to smooth price data while attempting to maintain a sharp frequency cutoff. The result

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Elliptic 2nd Order Filter

Wave Navigator is a price-chart indicator that builds zigzag swings from ATR or percentage thresholds and scans stored pivots for Elliott-style impulse, diagonal, flat and triangle patterns. It scores candidates with optional Fibonacci, time-ratio, RSI or MACD

Indicator v6 Support & resistanceOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Wave Navigator [WavesUnchained]

PF Probe 61 Same Id Stop Raise

by pineforge-4pass
1 stars

A test strategy from a reference corpus that moves a pending stop entry in one direction before it fills. At 02:15, 02:30 and 02:45 it re-submits a buy stop one tick above the bar high, and at 14:15, 14:30 and 14:45 a sell stop one tick below the bar low, usin

Strategy v6 Sessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF Probe 61 Same Id Stop Raise

Quantum Trend Matrix Pro AI

by vedkanani123
1 stars

A price-chart indicator built on a triple EMA ribbon, defaulting to 8, 21 and 55 periods, with gradient fill and a trend background. It combines EMA alignment, slope, persistence, momentum, spread and squeeze detection into a weighted 0 to 100 trend score with

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Quantum Trend Matrix Pro AI
1 stars

TN Sovereign Optimized Trend v6 is a Pine Script v6 strategy that plots fast, slow, and macro EMAs on the price chart. It generates buy signals on fast EMA crossover above the slow EMA when price exceeds the 200 EMA macro filter, RSI exceeds 50, and volume sur

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

Entropy

by mihakralj
99 stars

This indicator calculates normalized Shannon entropy of a chosen source over a lookback window and plots the result in a separate pane. It ignores missing values, places valid samples into histogram bins, and divides entropy by the logarithm of the bin count s

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Entropy

WaveTrend Advanced Smoothing is a separate-pane momentum oscillator built on the classic WaveTrend algorithm with eight selectable smoothing techniques, including SuperSmoother, T3, KAMA, and JMA. It provides three normalization scale modes: Classic, Clamp, an

Indicator v6 Oscillators & momentumMoving averages
Updated 3 days ago · MIT GitHub repository of WaveTrend Advanced Smoothing [WavesUnchained]
1 stars

This strategy tests pending stop order modification behavior in the Pine Script engine. It enters long or short positions using stop orders triggered at specific times of the trading day. An initial stop order is submitted, then modified on a later bar if no p

Strategy v6 Support & resistanceSessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 62 - stop cross before modify

Recursive Kernel Trend

by vedkanani123
1 stars

A trend line on the price chart from a recursive filter that corrects a fraction of its error against price on each bar. The correction rate is scheduled by efficiency and volatility weighting, can be biased by direction, and the filter structure can be Standa

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Recursive Kernel Trend
1 stars

A simple trend and momentum strategy on the price chart. It goes long when RSI is above an upper threshold while price sits above a 200-period EMA, and short when RSI is below a lower threshold with price under the EMA. Each entry places an ATR-based stop loss

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Tn Sovereign RSI ATR
99 stars

This indicator plots an exponential decay envelope on the price chart. Each bar it keeps the source value when it exceeds the previous result, otherwise it multiplies the previous result by (length minus one) divided by length so the line falls exponentially a

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Exponential Decay (EDECAY)
9 stars

WaveTrend v2 [WavesUnchained] is a momentum oscillator displayed in a separate pane. It derives channel index values using configurable price sources and smooths them with selectable algorithms including EMA, HMA, WMA, or JMA approximation. Traders can toggle

Indicator v6 Oscillators & momentumVolatility & bands
Updated 3 days ago · MIT GitHub repository of WaveTrend v2 [WavesUnchained]
1 stars

This strategy rotates pending stop entries by the clock. Before noon it places a long stop one tick above the bar high and cancels the short order id; from noon it places a short stop one tick below the bar low and cancels the long order id. An open long is cl

Strategy v6 Sessions & timeBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 63 - dual stop cancel rotation

Self-Aware Trend System

by vedkanani123
1 stars

An adaptive trend indicator on the price chart. It draws ATR bands whose width reacts to an efficiency-based trend quality index that blends efficiency, volatility regime, structure and momentum persistence. Options include asymmetric bands, an efficiency-weig

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Self-Aware Trend System
1 stars

This strategy identifies breakouts from session highs and lows on the price chart. It tracks the current session high and low for the configured time window in the specified timezone. Price crosses above the prior session high with an upward EMA trend confirm

Strategy v6 Sessions & timeBreakout
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Session Quant v6

This indicator calculates the Cumulative Distribution Function (CDF) of an exponential distribution applied to a price series. It normalizes source values into a zero-to-one range using a min-max window over a specified lookback period, then computes the expon

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Exponential Distribution CDF (EXPDIST)

Combines an upgraded WaveTrend oscillator engine with market structure swing pivots, volume profile point of control (POC), and multi-timeframe trend alignment scoring. Trades are triggered by WaveTrend reversal or pullback continuation signals that pass conte

Strategy v6 Oscillators & momentumTrend
Updated 3 days ago · MIT GitHub repository of WaveTrend v3 [WavesUnchained] — Strategy
1 stars

A test strategy from a reference corpus that sends two market entry calls with the same order id on the same bar, to see whether they merge or stack. It does this long at 00:15 and closes at 01:15, then short at 12:15 and closes at 13:15. Pyramiding is set to

Strategy v6 Sessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF Probe 64 Same Id Market Repeat
1 stars

A session-based swing structure indicator drawn on the price chart. For three configurable sessions, by default Asian, London and New York, it finds the highest and lowest pivots and labels them HH or LH and HL or LL. It then draws one Fibonacci or standard-de

Indicator v6 Sessions & timeSupport & resistance
Updated 2 months ago · None stated GitHub repository of Session 2 Swings HH HL LL LH + SD v3

Tn Sovereign SMC v6

by raybird
1 stars

Tn Sovereign SMC v6 is a Smart Money Concepts strategy that overlays trade entries and an status HUD table directly on the price chart. It identifies liquidity sweeps by checking if price pierces recent swing highs or lows before closing back within range, fil

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Tn Sovereign SMC v6
99 stars

The Exponential Transformation indicator applies the natural exponential function y = e^x to the input source series. The transformed series is plotted as a line in a separate pane. The main setting allows selecting the input source with close as default. This

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Exponential Transformation (EXP)

The WaveTrend v4 Strategy generates trading signals when the WaveTrend oscillator crosses at oversold or overbought levels. Long positions enter on bullish crosses in oversold territory, while short positions enter on bearish crosses in overbought territory. I

Strategy v6 Oscillators & momentumTrend Repaints
Updated 3 days ago · MIT GitHub repository of WaveTrend v4 [WavesUnchained] Strategy
1 stars

This strategy acts as an engine execution validation probe designed to test how same-pass, same-identifier entries and exits are processed within the same bar. It triggers fixed long and short position entries at specific intraday times, followed by simultaneo

Strategy v6
Updated 7 days ago · Apache-2.0 GitHub repository of PF Probe 65 - Same ID Entry Close

Tn Sovereign STC v6

by raybird
1 stars

Tn Sovereign STC v6 is an overlay strategy that combines the Schaff Trend Cycle oscillator with a 200-period Exponential Moving Average trend filter. It triggers long entries when the Schaff Trend Cycle crosses above the oversold boundary during a general uptr

Strategy v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Tn Sovereign STC v6
99 stars

Calculates the Cumulative Distribution Function (CDF) of an F-distribution for a normalized price series. It normalizes the source input over a configurable lookback period using min-max scaling, then computes the CDF values bounded between zero and one via La

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of F-Distribution CDF (FDIST)

This strategy calculates the WaveTrend oscillator alongside Stochastic RSI to identify reversal setups at overbought and oversold extremes. It enters long positions when the WaveTrend oscillator crosses upward below configured oversold levels, and enters short

Strategy v6 Oscillators & momentumMean reversion Repaints
Updated 3 days ago · MIT GitHub repository of WaveTrend v4 [WavesUnchained] Strategy
1 stars

This strategy tests whether a second strategy.exit call that reuses the same exit id replaces an existing bracket. At 08:15, when flat, it opens one long unit. While long, it submits a one-percent limit and stop, then immediately submits a tighter 0.3 percent

Strategy v6 Sessions & time
Updated 7 days ago · Apache-2.0 GitHub repository of PF probe 67 - same id exit replace

Smart Breakout Targets

by vedkanani123
1 stars

A squeeze breakout indicator on the price chart. It detects consolidation when Bollinger Band width and ATR are both compressed for a minimum number of bars, draws a range box with a centerline, and signals a breakout when an impulse candle leaves the range. E

Indicator v6 BreakoutVolatility & bands
Updated 2 months ago · None stated GitHub repository of Smart Breakout Targets

This strategy calculates the Stochastic oscillator (%K and %D) alongside overbought and oversold reference levels to detect divergences against price pivots. Using left and right pivot lookbacks on price and the Stochastic line, it identifies bullish and beari

Strategy v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Stoch Divergence v6
99 stars

This indicator calculates the dominant cycle period of the input source using a Radix-2 Fast Fourier Transform. It builds a windowed array from the source data, performs an in-place iterative FFT, and identifies the peak magnitude within the specified frequenc

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of FFT Dominant Cycle (Radix-2 FFT)

This indicator plots a Williams %R oscillator normalized from the native negative range onto a 0–100 scale in a separate pane. It smooths the core with a selectable average, draws a signal line, and marks midline and overbought or oversold crosses. Optional st

Indicator v6 Oscillators & momentumDivergence
Updated 3 days ago · MIT GitHub repository of Williams %R Advanced [WavesUnchained]

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