Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 44)

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

This overlay indicator combines a rolling volume profile, anchored VWAP, and trend filters for crypto chart analysis. It builds a value area from recent bars and can draw right-side profile boxes, with an Auto performance mode that reduces lookback, row count,

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v6.2 - Info Auto Performance
1 stars

This compact indicator labels Elliott Wave counts on the price chart. It runs a zig-zag at several depths, chooses the depth that gives the best fit, and applies Elliott Wave rules, with a strict mode that forces an A-B-C count when the rules break. A correcti

Indicator v6 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of Mini Elliott Wave 2026-2
1 stars

An indicator on the price chart that detects pivot-based structure breaks (CHoCH) and then looks for a retest of the broken level, using an ATR percentage tolerance. Confirmation can be a touch, a close outside the level or an engulfing candle, with optional v

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Structure Retest Engine Delta Hybrid

CROSS

by AlanGuo
1 stars

A long-only moving average strategy that can read its signals from another symbol. It enters when the signal symbol closes more than one percent above a 120-period SMA, EMA or RMA, and exits when it closes one percent below, or optionally when its high stretch

Strategy v6 TrendMoving averages Repaints
Updated 7 months ago · None stated GitHub repository of CROSS

Pivot Points High & Low

by gabriel-klettur
1 stars

This indicator identifies high and low pivot points based on a user-defined leg length. It stores historical pivot prices and timestamps within custom object arrays. On the final confirmed historical bar, the script renders text labels displaying price values

Indicator v6 Support & resistance
Updated 7 months ago · None stated GitHub repository of Pivot Points High & Low
1 stars

BTC ATH Golden Cycle v5 is a Bitcoin-focused strategy that models long-term market trends based on Bitcoin halving cycles. It combines a ZigZag pivot library, Neo-Ichimoku Cloud, Rainbow ribbon visualizer, Geometric Mean Index, and automated Supply and Demand

Strategy v6 TrendSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of BTC ATH Golden Cycle v5

RSI Divergence Detector

by knectardev
1 stars

This indicator calculates the RSI and detects regular and hidden divergences between price and RSI pivots. It plots the RSI on the price chart overlay and marks bullish regular, bearish regular, bullish hidden and bearish hidden divergences with labels. Horizo

Indicator v6 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of RSI Divergence Detector

EZ Algo Trader (Beta)

by turnupdigital
1 stars

A strategy on the price chart that turns external indicator signals into entries. Up to five signals can be enabled, each with long and short source inputs, a name and a usage mode. Position size is a fixed number of contracts, and an ATR length and an optiona

Strategy v6
Updated 1 year ago · None stated GitHub repository of EZ Algo Trader (Beta)

PAXG Best Position

by theteelek
1 stars

A long-only strategy for the gold-backed PAXG token that buys near the lower edge of a smoothed channel. The channel is an EMA of the highest high and lowest low over an adjustable range, and a buy needs price at the lower line with RSI turning up from oversol

Strategy v6 Mean reversion
Updated 1 year ago · None stated GitHub repository of PAXG Best Position

Slow Stochastic Strategy

by Studentcodee
1 stars

A Pine v6 strategy built on a slow stochastic oscillator and drawn on the price chart. The %K line is the stochastic smoothed by a three-bar average, and %D is a further three-bar average. It enters long when %K crosses above %D while %K is below the oversold

Strategy v6 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of Slow Stochastic Strategy
1 stars

An indicator on the price chart that smooths price with a Kalman filter, builds a band around it from a weighted average of bar ranges multiplied by a deviation setting, and runs a SuperTrend on the filtered line. Trend is set when the close moves outside the

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Range Filtered Trend Signals
947 stars

This indicator measures the chart symbol’s percentage change from the opening price at the start of each US presidential term and plots those values as histogram columns in a separate pane. Columns are offset so each administration appears separately, with a s

Indicator v6 Screeners & dashboards
Updated 12 days ago · GPL-3.0 GitHub repository of Presidents Performance
99 stars

Calculates Vitali Apirine's Slow Relative Strength Index (SRSI), which measures price changes relative to an Exponential Moving Average rather than the previous bar close. It computes the distance between the source price and its EMA, then applies Wilder's smo

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Apirine Slow RSI (SRSI)
57 stars

Implements an automated testing framework designed to validate an EMA Ribbon and MACD hybrid strategy. It verifies indicator calculations, trend context filters, signal generation, suppression rules, and cooldown mechanics using custom assertions. Test results

Strategy v6 Moving averagesOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of EMA Ribbon Test Suite v1.5

KDJ

by dcaoyuan
55 stars

This indicator plots a KDJ oscillator in a separate pane. It calculates a stochastic K value from the close, high, and low over the K period, then smooths it with a simple moving average. The D line is a simple moving average of K, and the J line equals three

Indicator v6 Oscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of KDJ

Calculates and plots ICT Inversion Fair Value Gaps (IFVGs) directly on the price chart. It detects bullish and bearish fair value gaps and tracks when price passes through them, converting them into inversion zones. Users can customize the validity period in b

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Inversion Fair Value Gaps IFVG ICT Signals

This indicator plots multi-timeframe open, high, low, and close levels directly on the price chart. It draws horizontal lines for key price levels alongside vertical separators at each timeframe interval. In addition, the script displays Fibonacci retracement

Indicator v6 Support & resistanceBreakout
Updated 8 weeks ago · None stated GitHub repository of MTF OHLC Lines with Breakout, Retracement & Fibs
47 stars

Calculates a finite impulse response moving average using Blackman window weighting. The Blackman window applies specific cosine constants to minimize spectral leakage, yielding a smooth trend-following curve. The calculation adapts dynamically during initial

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Blackman Moving Average (BLMA)

Planetary Ingress

by blueprintresearch-dev
42 stars

The Planetary Ingress indicator identifies and marks when selected planets transition into new zodiac signs on the price chart. It plots historical ingress markers along with retrograde indicators and projects future ingress dates ahead of current price action

Indicator v6
Updated 2 weeks ago · None stated GitHub repository of Planetary Ingress

Zen Inside Bar

by Zen-Tim
29 stars

This indicator identifies inside bars on the price chart. An inside bar is a candle whose high is at or below the previous high and whose low is at or above the previous low. Matching bars are recolored with a user-selected color, defaulting to yellow, while o

Indicator v6 Candlestick patterns
Updated 2 weeks ago · MIT GitHub repository of Zen Inside Bar
26 stars

Feature Matrix - strategy is a minimal Pine Script v6 strategy designed to verify basic strategy execution functionality. It evaluates whether the closing price is higher than the opening price on the current bar. When a bullish candle forms, the script trigge

Strategy v6 Candlestick patterns
Updated 2 months ago · AGPL-3.0 GitHub repository of Feature Matrix - strategy

Validation Test

by jpantsjoha
23 stars

Validation Test is a negative fixture indicator that plots the close in a separate pane using line, line-break and histogram styles. It also calculates the absolute value of a constant, the maximum of close and open, and a string form of the close. Later lines

Indicator v6
Updated 4 weeks ago · Custom licence GitHub repository of Validation Test
16 stars

This strategy enters long or short when a chart-timeframe Donchian breakout agrees with a higher-timeframe confirmation, using breakout, moving average, or both. It exits on a shorter Donchian channel and can flatten on a time rule. Position size risks a set p

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 17: Dual TF Confluence

SPY 0DTE Scalper - 5m

by chris-c-thomas
14 stars

This overlay indicator scores up to ten equal-weight conditions on the five-minute chart and marks a signal when the total meets a configurable threshold. It plots a 9/15/21 EMA ribbon with optional cloud fill, session-anchored VWAP and standard-deviation band

Indicator v6 ScalpingMoving averages
Updated 6 months ago · MIT GitHub repository of SPY 0DTE Scalper - 5m

This indicator scans price action on the main chart to identify broadening wedge patterns, including descending, ascending, and symmetric formations. It evaluates confirmed swing highs and lows within a sliding window, fitting upper and lower trendlines based

Indicator v6 Support & resistanceBreakout
Updated 3 days ago · MIT GitHub repository of Broadening Wedge Scanner Pro [WavesUnchained]

QFA Pro Elite Refined

by JasonTeixeira
9 stars

This indicator plots a smoothed fear index in a separate pane. It measures how far the current low sits below the highest close over a lookback, scales that reading by an ATR percentile, and smooths it with a zero-lag EMA. A volatility regime raises or lowers

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 weeks ago · Custom licence GitHub repository of QFA Pro Elite Refined
9 stars

This indicator implements an L1 proximal regularized filter to smooth price action while preserving significant market trends. It calculates a dynamic noise threshold based on a 200-period ATR and applies soft-thresholding to estimated velocity updates. The in

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of L1 Proximal Filter [LuxAlgo]

LunarTick ORB

by lunarticktrading
7 stars

This indicator calculates and plots Opening Range Breakout (ORB) levels directly on the price chart. It defines the high, low, and midpoint of an opening range based on a configurable duration and session time, with an optional Anchored VWAP (AVWAP) and extens

Indicator v6 Sessions & timeBreakout Repaints
Updated 2 weeks ago · None stated GitHub repository of LunarTick ORB

This indicator overlays a market structure dashboard on the price chart. It reads up to seven user-selected timeframes, each with an on/off switch and a trend weight, and shows columns for EMA trend, swing highs and lows, structure, order blocks, and fair valu

Indicator v6 Screeners & dashboardsSMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of Market Structure Dashboard | Flux Charts

This indicator combines RSI and MFI into a hybrid oscillator scaled to 0-1. It detects divergences by comparing price and MFI slopes from linear regression. The MFI receives extra weight during divergence to amplify the effect. A TMA smooths the hybrid result

Indicator v6 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Hybrid RSI+MFI - Gold Divergence
6 stars

Capital41 Fusion Core Strategy is an overlay trading strategy that combines an exponential moving average trend filter, RSI, Williams %R, and volume/ATR expansion into a composite momentum oscillator. It executes long trades when the smoothed oscillator crosse

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Capital41 Fusion Core Strategy
6 stars

Institutional CRT Framework is an overlay indicator that highlights candlestick patterns including 2-candle rejection, 3-candle classic, inside bar consolidation, and outside bar ranges directly on the price chart. It offers optional time-session filtering acr

Indicator v6 Candlestick patternsSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Institutional CRT Framework

TheStrat Suite

by 345-strategies
5 stars

This indicator implements Rob Smith's TheStrat price action methodology across up to six configurable timeframes. It classifies candles into inside, directional, and outside bars, identifies patterns like hammers, shooters, and failed 2s, and calculates magnit

Indicator v6 Candlestick patternsSupport & resistance Repaints
Updated 4 days ago · MPL-2.0 GitHub repository of TheStrat Suite

Quantile-Based Adaptive Detection calculates statistical distribution thresholds using weighted quantile moments and percentiles. It computes adaptive deviation, skewness, and kurtosis levels relative to a calculated median center using moving window data or s

Indicator v6 Volatility & bandsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Quantile-Based Adaptive Detection

Rolling Moving Average

by SiegerTerpstra
5 stars

This indicator plots a Rolling Moving Average, also called Wilder's smoothing or SMMA, on the price chart. It averages the selected source with a length-based Wilder formula that is seeded by a simple moving average, then can apply a second moving-average pass

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Rolling Moving Average
4 stars

This strategy trades pullbacks in the direction of a moving-average trend and draws on the price chart. An uptrend requires the 50-period EMA above the 200-period EMA with price above the slower average, and a downtrend is the reverse. It enters long or short

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of AG Trend-Pullback Optimized

MTF MA Bands + RSI

by InNoobWeTrust
4 stars

This indicator calculates and plots multi-timeframe moving average bands alongside a Relative Strength Index in a separate pane. It evaluates up to five distinct moving average layers across user-defined timeframes, ranging from the chart resolution to daily i

Indicator v6 Moving averagesOscillators & momentum
Updated 2 days ago · None stated GitHub repository of MTF MA Bands + RSI
4 stars

This strategy trades directional momentum breakouts for crude oil on the price chart. It enters long or short positions when a fast exponential moving average crosses a slow exponential moving average, provided that current Average True Range exceeds its movin

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of CL Crude Oil Momentum [trugurpala]

Golden / Death Cross

by piecioshka
2 stars

This indicator plots a fast and a slow simple moving average on the price chart, defaulting to lengths of 50 and 200. It marks a golden cross when the fast average crosses above the slow average and a death cross when it crosses below. Each cross draws a dashe

Indicator v6 TrendMoving averages
Updated 12 days ago · MIT GitHub repository of Golden / Death Cross

MP Camarilla Range Bounce

by midngtpickle
2 stars

This strategy fades touches of daily Camarilla pivot boundaries (S3 for longs, R3 for shorts) during sideways market conditions. It plots pivot levels directly on the price chart and validates entries using regime filters, including maximum ADX thresholds, pri

Strategy v6 Support & resistanceMean reversion
Updated 4 weeks ago · Custom licence GitHub repository of MP Camarilla Range Bounce

Oscillator

by TamTH-Dev
2 stars

This indicator plots a composite oscillator in a separate pane, integrating squeeze momentum, directional flux, divergence detection, and confluence gauges. It calculates momentum dynamics and squeeze conditions, highlights regular or hidden divergences with l

Indicator v6 Oscillators & momentumDivergence Repaints
Updated 6 weeks ago · None stated GitHub repository of Oscillator
2 stars

This indicator plots smart money concept structures directly on the price chart using confirmed swing pivots and an internal trend state machine. It identifies Break of Structure, Change of Character, Fair Value Gaps, and Order Blocks. Mitigated zones automati

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · Custom licence GitHub repository of Smart Money Structure Toolkit

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