Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 83)

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 validation strategy evaluates the execution order when strategy entry and exit orders sharing the same identifier are placed during the same bar calculation pass. It submits paired long and short entry and close orders at specific hours and minutes of the

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 68 - Entry Close Same Pass
1 stars

A price-chart indicator that tracks market structure at two swing scales, internal and external, with an EMA trend ribbon and optional structure-shift arrows. A dashboard lists modules such as trend strength, swing direction, internal and external structure, p

Indicator v6 SMC / ICT / price actionTrend
Updated 2 months ago · None stated GitHub repository of Smart Market Structure Matrix Pro
1 stars

This strategy computes a Stochastic Oscillator K and D lines with customizable length, smooth periods, and overbought/oversold thresholds. It generates long signals on K/D crossover below the oversold level in a bullish regime defined by price above a 200 EMA,

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

This indicator calculates the first finite difference, or velocity, of a chosen source series. It subtracts the previous bar's value from the current value and returns zero when the previous value is not available. A single source input selects the series, def

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of First Derivative / Velocity (SLOPE)

This indicator calculates synthetic fear and complacency gauges based on the Williams VIX Fix formula for both bullish and bearish directions. It overlays standard deviation bands, percentile lookbacks, and context moving averages to identify volatility spikes

Indicator v6 Volatility & bandsOscillators & momentum
Updated 2 days ago · MIT GitHub repository of Williams VIX Fix Advanced [WavesUnchained]
1 stars

This Pine Script strategy probe tests the order of execution between entry orders and cancel commands within the same script evaluation pass. It places stop orders for long and short positions at specific times of the day, alternating between placing an entry

Strategy v6
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 69 - entry cancel same pass

SmartTrend Pro

by vedkanani123
1 stars

A trend indicator on the price chart with an adaptive volatility trend engine controlled by a sensitivity and an ATR period. Signals get a score from 0 to 100, with a minimum score and a strong-only option, and pullback signals can be added. A trend cloud, an

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of SmartTrend Pro
1 stars

This strategy executes trend-following trades based on Supertrend reversals filtered by exponential moving averages. Long trades enter when the Supertrend turns bullish while the close is above the 50 and 200 EMAs. Short trades enter when the Supertrend turns

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

Force Index (FI)

by mihakralj
99 stars

This indicator calculates the Force Index as the exponential moving average of the change in close multiplied by volume. It plots the smoothed value in a separate pane and draws a dotted zero line. The period input sets the EMA smoothing length, defaulting to

Indicator v6 Oscillators & momentumVolume
Updated 4 weeks ago · Apache-2.0 GitHub repository of Force Index (FI)

This overlay indicator scans confirmed swing pivots for non-overlapping five-point Wolfe Wave wedges. It scores each candidate from 0 to 100 using contraction, channel traversal, apex, the fifth-point zone, risk/reward, timing, symmetry, and leg purity, then p

Indicator v6 Support & resistance
Updated 2 days ago · MIT GitHub repository of Wolfe Wave Scanner Pro [WavesUnchained]
1 stars

This Pine Script strategy enters long positions at specific times of day on the price chart. It places entries at 00:15 and 06:15 each day. It then exits or closes positions at 00:45 and 06:45 using a limit order above the average entry price and a stop order

Strategy v6 Sessions & timeMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 70 - exit close same pass

Statistical Trailing Stop

by vedkanani123
1 stars

An overlay indicator that draws a trailing stop whose distance comes from a statistical distribution of recent price movement. Data length sets the sample window, distribution length sets how much history is normalised, and a base level setting picks one of fo

Indicator v6 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of Statistical Trailing Stop
1 stars

This strategy plots three exponential moving averages on the price chart and trades when they stack in order. It opens a long when the fast average rises above the middle and the middle rises above the slow, the close is above an optional regime average, and v

Strategy v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Triple EMA v6
99 stars

Calculates and plots Fractal Chaos Bands directly on the price chart. The indicator identifies local fractal swing highs and lows, tracking the highest fractal high and lowest fractal low across a user-specified lookback period using monotonic deques. The resu

Indicator v6 Volatility & bandsSupport & resistance
Updated 4 weeks ago · Apache-2.0 GitHub repository of Fractal Chaos Bands (FCB)

This indicator overlays Wyckoff schematic analysis on the chart, identifying accumulation and distribution phases (A through E) alongside key events like Selling Climax, Automatic Rally, Spring, UTAD, and Sign of Strength. It calculates range quality scores, a

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · MIT GitHub repository of Wyckoff Schematics [WavesUnchained]
1 stars

This strategy runs on the price chart and enters long positions at the top of each hour when the position is flat. It then closes those longs at the end of the hour while simultaneously entering a short position with a stop loss just below the low. Later in th

Strategy v6 Sessions & timeMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 72 - opposite entry close

StealthTrail SuperTrend

by vedkanani123
1 stars

An ATR SuperTrend indicator on the price chart with an adaptive multiplier that scales with volatility relative to its average. Flips use a cushion measured in ATR and a signal cooldown, and can require an RSI threshold and optional volume. Risk presets draw a

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of StealthTrail SuperTrend

Tn Sovereign VAMO

by raybird
1 stars

Calculates a Volatility-Adjusted Momentum Oscillator (VAMO) by dividing the price Rate of Change by the Average True Range, smoothed by an EMA signal line. Long positions enter when VAMO crosses above its signal line above zero, and short positions enter on be

Strategy v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Tn Sovereign VAMO

This Pine Script indicator computes the FSI using Ehlers Fourier series analysis on the close price. It applies fundamental and harmonic bandpass filters, derives quadrature components for phase shift, estimates signal power over the cycle period, and reconstr

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of FSI - Ehlers Fourier Series Indicator
9 stars

ZigZag Core calculates and overlays market structure swing high and low points using customizable pivot depth, minimum pivot spacing, and flexible reversal filtering modes such as Percentage, ATR, or Hybrid. It plots connecting swing legs, developing legs, mar

Indicator v6 Support & resistanceTrend Repaints
Updated 2 days ago · MIT GitHub repository of ZigZag Core [WavesUnchained]

PF probe 73 - minute zero stop

by pineforge-4pass
1 stars

This strategy is a validation probe that places stop orders only when the bar minute is zero. When flat, it enters long at 02:00 with a buy stop one tick above the bar high, and enters short at 14:00 with a sell stop one tick below the bar low. It closes a lon

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 73 - minute zero stop
1 stars

A SuperTrend-style indicator on the price chart that can tune its ATR length and multiplier automatically from a profile of the instrument over a lookback window. It adds multi-timeframe confluence with selectable strictness and an optional machine-learning si

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of StealthTrail SuperTrend ML Pro
1 stars

Tn Sovereign VIOP Session v6 is an intraday session-filtered trend-following strategy. It generates buy and sell signals based on fast and slow Exponential Moving Average (EMA) crossovers strictly within specified session hours. Trade risk is managed using ATR

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

This indicator computes the cumulative distribution function of a gamma distribution for a price series and plots the result in a separate pane. It first min-max normalizes the source over a lookback window, then scales that value by the rate parameter and eva

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

This indicator calculates a custom ZigZag engine directly on the price chart to identify market structure and classic chart patterns. It automatically detects ABC corrections, symmetrical and sloped triangles, Wolfe waves, and Sperandeo 1-2-3 reversal patterns

Indicator v6 Support & resistanceTrend Repaints
Updated 2 days ago · MIT GitHub repository of ZigZag Patterns [WavesUnchained]
1 stars

A test strategy from a reference corpus that updates a pending buy stop over four consecutive bars. During the first 45 minutes of the 02:00 hour it submits a buy stop one tick above the bar high with the same order id each bar until it fills, and closes any l

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 74 Four Bar Stop Window
1 stars

This strategy estimates intrabar volume delta using bar ranges and volume, smoothing it with a moving average to detect divergence against price action. Trades are taken when bullish or bearish divergences align with a long-term EMA trend filter. Position exit

Strategy v6 VolumeDivergence
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Volume Delta
99 stars

Gann High-Low Activator plots a trend line on the price chart from simple moving averages of highs and lows. Close above the high average sets a bullish trend and the line follows the low average; close below the low average sets a bearish trend and the line f

Indicator v6 TrendMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Gann High-Low Activator

PF probe 75 - stop after flat

by pineforge-4pass
1 stars

This strategy enters long positions at specific time windows on the price chart. It places entries using a stop price set to high plus one tick and closes positions at predefined times during the trading day. The script supports pyramiding up to one position a

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 75 - stop after flat

Strong Gold Signals

by vedkanani123
1 stars

A gold-oriented price-chart indicator that looks for liquidity sweeps followed by a rejection wick. Swept levels can come from macro pivots, the previous higher-timeframe bar, or session highs and lows for Asia, London and New York. Each signal draws a stop be

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Strong Gold Signals
1 stars

This strategy pairs the Vortex Indicator with an exponential moving average trend filter to execute trend-following trades. It initiates a long entry when VI+ crosses above VI- while price trades above the 200 EMA, and a short entry when VI- crosses above VI+

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Tn Sovereign Vortex v6
99 stars

This indicator plots a Gaussian filter of a chosen price source on the price chart. It builds a normalized Gaussian kernel whose width follows the sigma setting, then convolves that kernel with recent bars to produce a smoothed value. Sigma controls how wide t

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Gaussian Filter (GAUSS)

PF Probe 76 Dual Side No Cancel

by pineforge-4pass
1 stars

A test strategy from a reference corpus that lets a long stop entry and a short stop entry exist at the same time. During the first 45 minutes of the 02:00 hour it places a buy stop one tick above the bar high, and during the 14:00 hour a sell stop one tick be

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 76 Dual Side No Cancel

Tn Sovereign VWAP

by raybird
1 stars

A mean reversion strategy built on an anchored VWAP with standard deviation bands, drawn on the price chart. The anchor resets each session, day or week. It buys when price crosses below the lower band with RSI oversold while above a 200 EMA, and sells short o

Strategy v6 Mean reversionVolume
Updated 2 months ago · None stated GitHub repository of Tn Sovereign VWAP
99 stars

This indicator calculates the geometric mean of a user-selected source over a lookback window and plots the result on the price chart. It sums the natural logs of positive values, then exponentiates their average. Missing and non-positive values are skipped, a

Indicator v6 Moving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Geometric Mean (GEOMEAN)
1 stars

This Pine Script strategy is a test probe designed to evaluate order engine execution around pending stop orders and position closures. On a 15-minute timeframe, it submits a long stop order above the current high at 02:15 UTC and closes open long positions at

Strategy v6 Sessions & timeBreakout
Updated 6 days ago · Apache-2.0 GitHub repository of PF Probe 77 - Stale Stop After Close

SuperTrend Recovery

by vedkanani123
1 stars

A SuperTrend variant for the price chart using ATR bands around the midpoint of each bar. When price moves against the level where the trend last switched by more than a threshold in ATRs, the band moves toward price by a small percentage weight, so the trend

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of SuperTrend Recovery

Granger Causality Test

by mihakralj
99 stars

Calculates the Granger Causality F-statistic with lag 1 to test whether a secondary symbol helps predict a primary price series. The script computes rolling means, variances, and covariances over a specified lookback period using circular buffers. It outputs t

Indicator v6
Updated 4 weeks ago · Apache-2.0 GitHub repository of Granger Causality Test
1 stars

This strategy generates long entries during the 2:00 to 2:45 hour window by placing a stop order at the current high plus one tick. It produces short entries during the 14:00 to 14:45 hour window with a stop placed at the current low minus one tick. All open p

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 78 - dual four bar no close

Synapse Trail Pro

by vedkanani123
1 stars

A trailing-stop trend indicator on the price chart. The trail is based on an EMA with an ATR band whose multiplier can adapt to volatility, and a ratchet option stops the trail from loosening. Signals receive a quality score and can be filtered by a minimum sc

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Synapse Trail Pro
1 stars

The strategy calculates the Stochastic oscillator using specified K and D periods, then detects bullish and bearish divergences between price pivots and the D line. Bullish signals occur when price forms lower lows while Stochastic forms higher lows within the

Strategy v6 Oscillators & momentumDivergence
Updated 2 months ago · None stated GitHub repository of TN Stochastic Causal Divergence

HA: Heikin-Ashi

by mihakralj
99 stars

This indicator calculates and plots Heikin-Ashi smoothed candlesticks directly on the price chart. It derives the smoothed close from standard price averages and recursively computes the open, high, and low values. The script does not issue trade signals or al

Indicator v6 Candlestick patternsTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of HA: Heikin-Ashi
1 stars

This strategy probes trading engine behavior on the price chart. It places time-based pending entries with stops: at 2:00 it adds a short with stop at half the low if flat; during the 2:00-2:45 window it adds a long with stop above the high plus tick if flat;

Strategy v6 Sessions & time
Updated 6 days ago · Apache-2.0 GitHub repository of PF probe 79 - far opposite pending
1 stars

A short price-chart indicator that plots a 20 and a 50 period EMA and waits for a pullback after each crossover. After the 20 crosses above the 50, it looks for price to touch the 50 and then prints a buy triangle on the next green-closing candle. After a down

Indicator v6 Moving averagesTrend
Updated 2 months ago · None stated GitHub repository of Terilss EMA20-EMA50 Pullback Alert
1 stars

This strategy tracks the high and low price levels established during the Tokyo trading session (00:00–08:00 UTC) and seeks breakout entries during the London and New York sessions. Long trades trigger when price breaks above the Tokyo high, confirmed by price

Strategy v6 BreakoutSessions & time
Updated 2 months ago · None stated GitHub repository of TN Tokyo Breakout Refined v6

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