Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 32)

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

11 stars

The Stochastic Divergence Strategy calculates the Stochastic oscillator (%K and %D) to identify regular bullish and bearish divergence patterns against price pivots. It plots the oscillator and divergence lines in a separate indicator pane. Entries trigger on

Strategy v6 Oscillators & momentumDivergence
Updated 5 months ago · Apache-2.0 GitHub repository of Stochastic Divergence Strategy
9 stars

ADX Advanced calculates Directional Indicators (DI+ and DI-) alongside the Average Directional Index (ADX) to gauge trend strength and direction. The script features selectable smoothing methods for the ADX curve, including EMA, SMA, RMA, WMA, SuperSmoother, T

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of ADX Advanced [WavesUnchained]

Nexural Fisher Pro

by JasonTeixeira
9 stars

Nexural Fisher Pro is an advanced Fisher Transform indicator that plots in a separate pane. It calculates the Fisher transform using a configurable source such as high-low average. It incorporates adaptive period based on dominant cycle, volume-weighted calcul

Indicator v6 Oscillators & momentumMoving averages
Updated 2 weeks ago · Custom licence GitHub repository of Nexural Fisher Pro

CE 1M + 3M Buy, Sell, Hold

by MeridianAlgo
9 stars

This indicator evaluates trend direction using Chandelier Exit calculations across two timeframes: the current chart and a requested 3-minute timeframe. A custom Chandelier Exit function calculates ATR-based trailing stop bands to determine directional bias. W

Indicator v6 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of CE 1M + 3M Buy, Sell, Hold

TR IV Surface

by Enesp4rl4k
7 stars

This TradingView indicator draws an IV surface snapshot table on the price chart for VIOP options. It displays the ATM term structure with expiry, DTE, and ATM IV percent rows, plus 25-delta skew and term slope in vol points. The table updates statically on th

Indicator v6 Volatility & bandsSupport & resistance
Updated 7 days ago · MIT GitHub repository of TR IV Surface

Intraday Levels

by lunarticktrading
7 stars

Intraday Levels plots prior period price levels and session ranges on the price chart. It can draw previous weekly and previous daily open, high, low, and close as separate lines, each with its own visibility and color. It also marks the Asia and London sessio

Indicator v6 Support & resistanceSessions & time
Updated 2 weeks ago · None stated GitHub repository of Intraday Levels

Directional Movement Index

by eddiebelaval
7 stars

This indicator calculates the Directional Movement Index from TradingView's built-in DMI function and plots plus DI and minus DI in a separate pane. An optional ADX line can be shown. It marks plus-DI crossovers above minus DI with a green background and the o

Indicator v6 Oscillators & momentum
Updated 3 months ago · None stated GitHub repository of Directional Movement Index
7 stars

Lorentzian Classification is a machine learning indicator that applies a k-nearest neighbors algorithm using Lorentzian distance to analyze market patterns. It processes configurable technical indicators, including RSI, WaveTrend, CCI, and ADX, as feature vect

Indicator v6 AI / machine learningOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Lorentzian Classification
6 stars

Capital41 ATR Volatility Bands v2 draws ATR-based bands around a customizable basis moving average on the price chart to visualize potential volatility ranges. The basis can be set to EMA or SMA, with adjustable lengths for both basis and ATR. It optionally pl

Indicator v6 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Capital41 ATR Volatility Bands v2

Forever Model

by alboogycOdR
6 stars

The Forever Model indicator draws Fair Value Gap boxes directly on the price chart to highlight potential support and resistance zones. It plots confirmation lines that can extend to the current bar and optionally displays labels. A customizable dashboard appe

Indicator v6 SMC / ICT / price actionScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Forever Model

This indicator overlays the previous 1-hour candlestick onto lower timeframe charts, such as the 15-minute timeframe. It requests the open, high, low, and close prices of the prior completed 60-minute bar using security calls and renders them directly on the p

Indicator v6 Candlestick patterns
Updated 1 year ago · MIT GitHub repository of H1 Candle as True Shadow on M15

PineDraw

by 345-strategies
5 stars

PineDraw is a Pine Script v6 library that provides object primitives for drawing and updating price levels on the chart. It enables indicators and strategies to maintain lines, boxes, and labels in place by updating existing objects instead of deleting and rec

Library v6 Support & resistance
Updated 4 days ago · MPL-2.0 GitHub repository of PineDraw
5 stars

RG Structure is a pivot-constrained break-and-retest strategy that calculates dynamic trendlines, market structure changes, and regime states on the price chart. It identifies support and resistance lines through pivot points and evaluates break-and-retest sig

Strategy v6 TrendSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of RG Structure Visual Edition

Week candle backward shift

by chaise-cogent
5 stars

This indicator rebuilds one-week candles so their start day is shifted backward by a chosen number of days, from zero through six. On a weekly chart it requests daily open, high, low, and close and assigns them to custom weekly values, with a separate calculat

Indicator v6 Candlestick patternsSessions & time
Updated 7 months ago · MIT GitHub repository of Week candle backward shift

Moment-Based Adaptive Detection calculates higher-order statistical moments, including mean, deviation, skewness, kurtosis, and hyper-kurtosis, on price data to construct adaptive distribution bands on the main chart overlay. It computes a central basis line a

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

High - Low

by SiegerTerpstra
5 stars

High - Low measures the price range between the high and low of each bar to analyze market volatility and price expansion or contraction. It plots a histogram representing the per-bar high-low range along with a simple moving average line to highlight smoothed

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of High - Low
4 stars

Elton's Predictions Decision Engine synthesizes thirty selectable strategy algorithms or an auto-detect mode into unified buy, sell, or wait verdicts directly on the price chart. It calculates higher-timeframe trend alignment, confidence scores, and ATR-based

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 days ago · None stated GitHub repository of Elton's Predictions Decision Engine
4 stars

This indicator identifies and plots support and resistance zones based on specific Gann cycle timing timestamps. It checks whether lower or higher timeframe bars correspond to pre-configured cycle times, creating zones defined by the bar high and low. When pri

Indicator v6 Support & resistanceBreakout
Updated 2 days ago · None stated GitHub repository of Gann Cycle Support/Resistance Zones

Ultimate Combo v1

by DexWilder
4 stars

This overlay strategy is written for MES and ES five-minute charts. It calculates a fast and slow EMA, a 200-period trend EMA, session VWAP, RSI, ATR, and a volume moving average, and it can restrict trading to an exchange-time session. Inputs set RSI extremes

Strategy v6 TrendOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Ultimate Combo v1
4 stars

This overlay indicator draws KOLA pivot support and resistance, order blocks, optional change-of-character and break-of-structure marks, SIDO swing chart patterns, and Fibonacci or OTE levels on the price chart. Touch counts use an ATR percentage zone. Spike s

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 2 weeks ago · MIT GitHub repository of GOM KOLA SIDO — Full Integration
4 stars

Meridian Options Context plots a separate-pane directional context for liquid options underlyings. It normalizes trend from fast and slow EMAs, RTH VWAP and opening-range displacement, RSI and short-return momentum, relative volume participation, persistence,

Indicator v6 Oscillators & momentumMoving averages Repaints
Updated 7 weeks ago · MPL-2.0 GitHub repository of Meridian - Options Context
4 stars

This strategy identifies Bitcoin price trends using fast and slow EMA crossovers filtered by RSI and a 200 EMA. It plots the EMAs and entry signals on the price chart. Bullish crossovers open long positions with ATR-based stop loss and take profit. Bearish cro

Strategy v6 TrendOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Bitcoin BTC Strategy [trugurpala]
4 stars

This indicator plots volume-weighted support and resistance zones on the price chart. It finds swing pivots, clusters them by ATR distance, and keeps only zones that receive a minimum number of confirmed touches. Strength presets switch between local, swing, a

Indicator v6 Support & resistanceVolume
Updated 4 months ago · MIT GitHub repository of Support and Resistance Zones [FEELS]

Prop Firm ICT Sniper | Survival Mode

by thesenegalesehitch
4 stars

This strategy overlays the price chart and sizes cash positions from account equity using a selectable Phase 1 or Phase 2 risk percent. It tracks net profit by calendar day and blocks new risk once the phase daily-loss limit is reached. Swing sensitivity sets

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · Custom licence GitHub repository of Prop Firm ICT Sniper | Survival Mode
4 stars

This long-only strategy plots an asymmetric ATR channel around a rolling moving average on the price chart. It enters long when a confirmed close breaks above the upper band and exits when a confirmed close breaks below the lower band. An optional setting exit

Strategy v6 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of RMA ATR Bands (Long Only)

RSI

by YooooungLee
4 stars

The RSI indicator calculates the Relative Strength Index using a chosen length and plots the RSI line in a separate pane. It draws horizontal bands at the upper and lower thresholds along with a background fill between them. Labels appear on the chart when the

Indicator v6 Oscillators & momentum
Updated 10 months ago · Apache-2.0 GitHub repository of RSI

MACD Histogram

by degenview
3 stars

This indicator calculates the standard MACD from the close using fast and slow lengths and a signal length. It plots the MACD line, the signal line, and a column histogram in a separate pane, plus a zero line. Histogram bars use four colors that distinguish ri

Indicator v6 Oscillators & momentum
Updated 2 days ago · GPL-3.0 GitHub repository of MACD Histogram

Trend Strength Index

by AkashSasikumar47
3 stars

This indicator measures market trend strength by comparing net price change to cumulative bar-to-bar volatility over a specified lookback period. It plots two lines in a separate pane: a fast smoothed Trend Strength Index line based on the user-defined smoothi

Indicator v6 TrendOscillators & momentum
Updated 2 weeks ago · MIT GitHub repository of Trend Strength Index

Risk-Managed Scaffold

by jpantsjoha
3 stars

This strategy enters long when a 20-period EMA crosses above a 50-period EMA and price is above the previous closed daily close. It sizes the position from a percentage of equity and the ATR stop distance, then exits with an ATR stop and a reward-to-risk limit

Strategy v6 TrendMoving averages
Updated 4 weeks ago · Custom licence GitHub repository of Risk-Managed Scaffold

Stella's SuperTrend Basic

by stella-entry
3 stars

Stella's SuperTrend Basic is a trend-following strategy that calculates the SuperTrend indicator directly on the price chart. It enters long positions when the price crosses above the SuperTrend line and switches to short positions when the price crosses below

Strategy v6 Trend
Updated 8 months ago · MIT GitHub repository of Stella's SuperTrend Basic
3 stars

This indicator calculates multi-source analysis signals based on The Trading Parrot methodology, combining SOPR proxy calculations, custom volume-weighted RSI, liquidity support and resistance levels, volume spike detection, and pattern recognition. It outputs

Indicator v6 Oscillators & momentumVolume
Updated 1 year ago · Custom licence GitHub repository of Trading Parrot Multi-Source Analysis

QQQ MA Accumulation v2

by yalili8521
2 stars

This intraday strategy calculates fast, mid, and slow Simple Moving Averages to confirm alignment alongside steady bar accumulation on short timeframes. It filters entries by rejecting large candle spikes and restricting execution to a defined morning session

Strategy v6 TrendMoving averages
Updated 9 days ago · None stated GitHub repository of QQQ MA Accumulation v2

Bollinger Bands

by piecioshka
2 stars

This indicator plots standard Bollinger Bands directly on the price chart using a simple moving average and standard deviation bounds. It displays filled background channels between the center moving average and the outer bands. Optional mean-reversion signal

Indicator v6 Volatility & bandsTrend
Updated 12 days ago · MIT GitHub repository of Bollinger Bands
2 stars

Modern Ichimoku Cloud [GBB] is an advanced trend and momentum indicator that enhances classic Ichimoku Kinko Hyo with multi-layered structural analysis. It plots traditional Tenkan-sen, Kijun-sen, Senkou Spans, and Chikou Span on the price chart while offering

Indicator v6 TrendSupport & resistance
Updated 2 weeks ago · MIT GitHub repository of Modern Ichimoku Cloud [GBB]

Pivots MP

by midngtpickle
2 stars

Pivots MP draws Fibonacci or Camarilla pivot levels on the price chart. It plots the central pivot plus resistance and support pairs from R1/S1 through R5/S5 for a chosen period, from hourly through multi-year, and can keep earlier periods according to the loo

Indicator v6 Support & resistance Repaints
Updated 4 weeks ago · Custom licence GitHub repository of Pivots MP

Market Structure

by TamTH-Dev
2 stars

Market Structure identifies and visualizes key market structure developments directly on the price chart. It calculates swing highs and swing lows using pivot detection with a five-bar lookback alongside an Average True Range filter to track structure. The ind

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

Market Regime Dashboard

by vantradelabs
2 stars

The Market Regime Dashboard is a multi-timeframe dashboard indicator that evaluates market conditions across three user-defined timeframes. It measures four core dimensions: trend strength using ADX and DI direction, momentum using RSI z-scores, volatility via

Indicator v6 Screeners & dashboardsTrend
Updated 2 months ago · Custom licence GitHub repository of Market Regime Dashboard
2 stars

Calculates entry signals, stop loss levels, and five take-profit targets based on a 7-factor dual scoring engine. The system evaluates short-term market bias using EMA 9 and 21 crossovers, VWAP, RSI, MACD, ADX, relative volume, and multi-timeframe 5-minute RSI

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 months ago · Custom licence GitHub repository of Sniper Entry/Exit with SL&TP

Custom Oscillator

by danielbodnar
2 stars

This reference script provides practical Pine Script v6 code examples for creating custom indicators. It includes a smoothed Relative Strength Index oscillator plotted with overbought and oversold background zones, a multi-timeframe moving average overlay with

Indicator v6 Oscillators & momentumMoving averages
Updated 2 months ago · MIT GitHub repository of Custom Oscillator

ICT HTF MSS & Liquidity

by alvinng214
2 stars

This indicator detects market structure shifts and liquidity levels on a user-selected higher timeframe using ICT concepts. It plots open and claimed liquidity lines on the price chart along with break of structure (BOS) and fair value gap (FVG) zones to highl

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT HTF MSS & Liquidity

HVC Watcher

by major
2 stars

This indicator identifies High Volume Close (HVC) and Highest Volume Ever (HVE) events directly on the price chart. It calculates a volume simple moving average and detects bars where volume exceeds a configured multiple of that average. Detected bars can disp

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · Apache-2.0 GitHub repository of HVC Watcher

This indicator identifies swing highs and swing lows to detect institutional order blocks and breaker blocks, plotting them as colored boxes directly on the price chart. It provides optional alert triggers when new order blocks form. User settings allow toggli

Indicator v6 SMC / ICT / price actionSupport & resistance
2 stars

This mean-reversion trading strategy targets XAUUSD during the Asian trading session. It generates buy signals when price touches the lower Bollinger Band and RSI is oversold, and sell signals when price reaches the upper band and RSI is overbought. Trades are

Strategy v6 Mean reversionSessions & time
Updated 4 months ago · None stated GitHub repository of XAUUSD Mean Reversion Strategy

Volume

by mhs54
2 stars

This indicator displays normalized volume on a 0 to 100 relative scale within a separate indicator pane. It identifies the highest volume over a customizable lookback period and rescales volume values accordingly, maintaining visual consistency across differen

Indicator v6 VolumeMoving averages
Updated 6 months ago · None stated GitHub repository of Volume

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