Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 52)

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

4 stars

This multi-mode trading strategy executes trades on the price chart using selectable technical models, including RSI-2 mean reversion, SuperTrend, MACD crossovers, Triple EMA, Bollinger Bands, or a combined multi-indicator approach. It filters trade entries us

Strategy v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of Simpleton KIMI – Enhanced
4 stars

This indicator calculates both a standard Relative Strength Index and a Relative Liquidity Index, which applies an RSI calculation to Average True Range values. It plots these oscillators in a separate pane alongside overbought and oversold threshold levels. I

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 days ago · None stated GitHub repository of RSI + Relative Liquidity Index
4 stars

This strategy calculates fast and slow exponential moving averages alongside an Average True Range value. It enters a long position when the fast EMA crosses above the slow EMA, and enters a short position on a cross under unless long-only mode is active. Stop

Strategy v6 Moving averagesTrend
Updated 2 months ago · MIT GitHub repository of EMA Cross Strategy [trugurpala]

Monthly Seasonality

by piecioshka
2 stars

Monthly Seasonality colors the price chart background according to the calendar month using an HSV color wheel gradient spanning winter through autumn. Primarily designed for monthly timeframes, it helps identify recurring seasonal cycles across markets, such

Indicator v6 Sessions & time
Updated 12 days ago · MIT GitHub repository of Monthly Seasonality

SMC

by TamTH-Dev
2 stars

SMC is a multi-timeframe indicator that detects and plots Fair Value Gaps (FVGs) directly on the price chart. It scans across up to six user-selected higher timeframes—ranging from intraday minutes to daily and weekly intervals—to identify bullish and bearish

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 weeks ago · None stated GitHub repository of SMC

PriceAction

by alvinng214
2 stars

PriceAction is a Pine Script v6 library designed to calculate and track market structure elements based on customizable pivot lengths. It exports custom data structures for pivots, structure breaks, and market trends, categorizing price movement into internal

Library v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of PriceAction

Lakshmi Zones v6

by voletiramu
2 stars

This indicator calculates daily candidate supply and demand zones and confirms them using 4-hour volume profile high-volume nodes. It overlays dynamic zone boxes, a Magic Line volatility channel, weekly close levels, and volume-price analysis signals directly

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of Lakshmi Zones v6

Elastic Volume-Weighted Student-T Tension is an oscillator that calculates location and dispersion parameters based on a Student-T distribution model. It uses volume or ATR as a weighting factor to estimate market tension relative to historical distribution le

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 8 months ago · None stated GitHub repository of Elastic Volume-Weighted Student-T Tension

VCP Setup

by ankurksoni
1 stars

A price-chart overlay that scans for volatility contraction setups, mainly on daily charts. It counts bullish divergences between price and cumulative volume delta built from intrabar data, within a lookback window, and checks that price sits near the range hi

Indicator v6 VolumeVolatility & bands
Updated 3 days ago · None stated GitHub repository of VCP Setup

Linda Raschke Setup [JR]

by jayadevrana
1 stars

This strategy implements Linda Raschke's classic trend pullback setup. It measures market trend strength using the ADX indicator and identifies pullbacks to an Exponential Moving Average (EMA). When ADX exceeds a specified threshold and price touches the EMA,

Strategy v6 TrendMoving averages
Updated 4 days ago · MPL-2.0 GitHub repository of Linda Raschke Setup [JR]

SMC Exit Signal

by skipp-dev
1 stars

SMC Exit Signal is an overlay companion indicator that manages position lifecycle states driven by external Smart Money Concepts engine outputs. It monitors trigger levels, stops, and take-profit targets to track active trades directly on the chart. It can dyn

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of SMC Exit Signal

Drawing Box Zone Reentry

by pineforge-4pass
1 stars

This strategy detects gap-up price zones where the current low is higher than the high from two bars prior, creating visual box objects on the price chart. When price re-enters the boundaries of the most recent gap zone while flat, the strategy opens a long po

Strategy v6 Support & resistanceBreakout
Updated 7 days ago · Apache-2.0 GitHub repository of Drawing Box Zone Reentry

P Syn Inputs All

by GammaExpansion
1 stars

This Pine Script v6 indicator tests every supported input type including integers floats booleans strings textareas sources colors times prices symbols timeframes and sessions. It sums all selected input values then plots that total along with the close price

Indicator v6
Updated 7 days ago · MIT GitHub repository of P Syn Inputs All

An indicator meant for the 15-minute chart that extracts delta-based points of interest from each session, turns them into ATR-sized zones with contamination and freshness rules, and marks the first close through a zone edge plus an ATR buffer. A break can opt

Indicator v6 VolumeSupport & resistance Repaints
Updated 8 days ago · GPL-3.0 GitHub repository of Delta Break and Retest Stage 5 Break Detection
1 stars

This indicator calculates the distance in ATR units to the nearest higher timeframe OHLC level from the current close price. It identifies the closest level above or below the price and computes the average of near and big levels distances. The script plots we

Indicator v6 Support & resistanceVolatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 C1b · HEDEF MESAFESİ

1m Spot Fib Scalper

by MuhammadMuhamid
1 stars

A long-only strategy for one-minute spot charts that waits for a bullish break of structure above a swing high, then parks an entry at a Fibonacci retracement of the impulse leg, defaulting to the 0.618 level inside a 0.5 to 0.618 zone. The stop goes below the

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 13 days ago · None stated GitHub repository of 1m Spot Fib Scalper

Types Demo

by Alaamo7
1 stars

Types Demo is an educational indicator designed to illustrate fundamental Pine Script variable types, including boolean, integer, float, string, and color. It checks whether the current bar is bullish and plots the closing price in green within a separate pane

Indicator v6 Candlestick patterns
Updated 2 months ago · Custom licence GitHub repository of Types Demo

Median Cascade Trend

by vedkanani123
1 stars

A price-chart indicator by BackQuant that smooths a chosen source through up to three causal median filters, then a two-pole Super Smoother, to draw a trend line coloured by direction. A chop filter can block trend changes when directional efficiency or ATR-no

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Median Cascade Trend

XSP Daily Lotto

by majohnst
1 stars

This strategy models a zero-days-to-expiration (0DTE) Opening Range fade system on the price chart, designed around Mini-SPX index options. It calculates an opening range box and gauges directional sentiment from an external symbol like ES futures. Bullish con

Strategy v6 Sessions & timeSupport & resistance
Updated 4 months ago · None stated GitHub repository of XSP Daily Lotto

Quad Rotation 40 4

by rubbermetal
1 stars

Quad Rotation 40 4 is the slow pane of a four-stochastic setup with periods 9, 14, 40 and 60. It plots the 40/4 stochastic K and D lines in a separate pane with oversold and overbought zones, K/D cross triangles inside extreme zones, and a convergence band wei

Indicator v6 Oscillators & momentumDivergence
Updated 4 months ago · MPL-2.0 GitHub repository of Quad Rotation 40 4

Multi-Timeframe Trend Alignment

by shubhamtaywade82
1 stars

Compares price with a moving average on four selectable timeframes, defaulting to 15 minutes, 1 hour, 4 hours and 1 day. Each timeframe scores plus one, minus one or zero, and the four are summed into an alignment score from minus four to plus four. It plots i

Indicator v6 TrendMoving averages Archived
Updated 5 months ago · None stated GitHub repository of Multi-Timeframe Trend Alignment

Crypto AMT VP Flow PA

by latifangren
1 stars

An overlay indicator for crypto charts that combines a volume profile with value area, an anchored VWAP with bands, an order flow proxy from lower-timeframe delta, relative volume and cumulative delta, and price action based on swing pivots and ATR rejection w

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT VP Flow PA
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-3
1 stars

An indicator on the price chart that draws an ATR-based trailing stop with a smooth tightening phase. The stop starts at a multiple of a 200 period ATR from the extreme and flips when the close crosses it. After a flip, the stop moves closer to price along a s

Indicator v6 TrendVolatility & bands
Updated 6 months ago · None stated GitHub repository of Sigmoid Transition Trailing Stop
1 stars

A macro strategy that builds a global central bank liquidity series from the Fed balance sheet, Treasury account, reverse repo, ECB, People's Bank of China and Bank of Japan, and a combined M2 money supply series, each convertible to dollars and switchable. It

Strategy v6 TrendMoving averages
Updated 7 months ago · None stated GitHub repository of Liquidity Moving Average Cross
1 stars

An indicator on the price chart that draws a zigzag of swing highs and lows from a chosen timeframe, with length, depth and highlight level inputs and an option for a curved line. The recursive depth builds higher-order swings from lower ones. It can attach RS

Indicator v6 Support & resistanceTrend Repaints
Updated 1 year ago · None stated GitHub repository of Multi-Timeframe Recursive Zigzag

TESLA-BestPosition

by theteelek
1 stars

TESLA-BestPosition is a long-only dollar-cost averaging strategy that combines custom Relative Strength Index levels with smoothed highest-high and lowest-low channels. It calculates 10-period exponential moving averages of highest highs and lowest lows over a

Strategy v6 Mean reversionOscillators & momentum
Updated 1 year ago · None stated GitHub repository of TESLA-BestPosition

ValueAtTime

by ivansoft
1 stars

A Pine Script v6 library that stores timestamped values and retrieves the value at a past point in time, such as one week, one month or year-to-date ago. It defines a data type with parallel time and value arrays, helper functions that limit array size to the

Library v6 Repaints
Updated 1 year ago · None stated GitHub repository of ValueAtTime

Dead Cat Bounce

by TradersPost
228 stars

Calculates consecutive bar sequences that fail to create new price extremes and identifies potential reversal breakout points. When a run breaks, the script plots measured move projection arrows, high-water mark lines, and Fibonacci levels directly on the pric

Strategy v6 BreakoutMean reversion
Updated 3 months ago · None stated GitHub repository of Dead Cat Bounce

Calculates and plots an Autoregressive Finite Impulse Response (AFIRMA) moving average directly on the price chart. It weights historical price data using selectable windowing functions, including Hanning, Hamming, Blackman, and Blackman-Harris filters. An opt

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Autoregressive FIR Moving Average (AFIRMA)

Strategy Template

by iamrichardD
57 stars

This strategy template implements an EMA trend filter paired with MACD momentum confirmations. Long positions trigger when the fast EMA is above the slow EMA alongside a bullish MACD crossover and positive histogram, while short positions require the reverse.

Strategy v6 TrendOscillators & momentum
Updated 1 year ago · Apache-2.0 GitHub repository of Strategy Template

Simple RSI

by dcaoyuan
55 stars

Simple RSI calculates and plots the standard Relative Strength Index oscillator in a separate pane. It tracks price momentum based on a user-defined calculation length, defaulting to 13 bars, applied to a selectable price source such as the close. Dashed horiz

Indicator v6 Oscillators & momentum
Updated 6 months ago · Apache-2.0 GitHub repository of Simple RSI
53 stars

This overlay indicator calculates the 14-period Relative Strength Index to identify overbought and oversold market conditions. When RSI crosses key thresholds, it plots initial long or short entry labels directly on the price chart. If price continues moving a

Indicator v6 Oscillators & momentumMean reversion
Updated 2 months ago · MPL-2.0 GitHub repository of RSI Multi-Layer Entry Indicator

Session Raid Stats

by TamaraKGreen
47 stars

Session Raid Stats highlights custom session price ranges and projects range extension lines at fixed point intervals above and below session highs and lows. It identifies liquidity raids exceeding user-defined point thresholds within a specified time cutoff f

Indicator v6 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Session Raid Stats
47 stars

Calculates the Composite Fractal Behavior metric across multiple depth tiers to analyze trend persistence and cycle behavior. It evaluates fractal pattern ratios across logarithmic period steps, smooths the resulting index, and applies Jurik Moving Average fil

Indicator v6 Oscillators & momentumVolatility & bands
Updated 8 months ago · MIT GitHub repository of Composite Fractal Behavior (CFB)

Zen Trading Toolkit

by Zen-Tim
29 stars

Zen Trading Toolkit is an overlay indicator that plots average bar range measured-move targets from the prior regular-hours close, plus optional yesterday high, low, close and range projections. It draws an N-bar opening-range box and a volatility table of ave

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Zen Trading Toolkit
16 stars

Seykota Alt 21: Breakeven Lock is a trend-following breakout strategy based on Donchian channels and ATR position sizing. It enters positions on Donchian channel breakouts and scales in up to multiple units as price moves in favor. The system moves stop losses

Strategy v6 TrendBreakout
Updated 12 months ago · None stated GitHub repository of Seykota Alt 21: Breakeven Lock

This strategy plots an ATR Chandelier trailing stop on the price chart and tracks a directional trend state. It marks confirmed flips, weak body-rejected flips, and wick traps, and colors bars as price nears warning or danger zones around the flip trigger. Ada

Strategy v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Chandelier Flip Radar [WavesUnchained]

Quantum Structure | jjart

by MeridianAlgo
9 stars

This indicator analyzes market structure and identifies key swing highs, swing lows, and consolidation ranges across multiple timeframes. It automatically adapts swing lengths and consolidation thresholds according to chosen profiles for scalping, intraday, or

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of Quantum Structure | jjart

ADX Dots

by lunarticktrading
7 stars

This indicator evaluates trend strength by calculating the Average Directional Index (ADX) and plotting colored dots at a fixed horizontal level in a separate pane. The color of each dot dynamically indicates whether the trend is weak, medium, or strong based

Indicator v6 Trend
Updated 2 weeks ago · None stated GitHub repository of ADX Dots

Pulse Mean Accelerator

by eddiebelaval
7 stars

This indicator overlays a dynamic moving average on the price chart by adjusting a baseline mean with a pulse acceleration factor. It measures rate of change differences between price and the moving average, scaling the displacement by volatility via standard

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Pulse Mean Accelerator

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