Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 36)

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

3 stars

The Divergence Screener by Trendoscope identifies regular and hidden bullish and bearish divergences between price action and technical oscillators in a separate pane. It supports multiple oscillators including RSI, CCI, CMO, and COG, as well as custom externa

Indicator v6 DivergenceOscillators & momentum Repaints
Updated 12 months ago · None stated GitHub repository of Divergence Screener [Trendoscope]

Ultimate Trading System

by EngineeredSuccess
3 stars

The Ultimate Trading System is an integrated indicator that combines multiple analysis methodologies—including Pi Cycle Top, SPX/Gold ratio, Elliott Wave, and multi-source market signals—into a composite oscillator scored from 0 to 100. Plotted in a separate p

Indicator v6 Screeners & dashboardsOscillators & momentum
Updated 1 year ago · Custom licence GitHub repository of Ultimate Trading System
2 stars

MasterTrader V1 is an indicator that plots two exponential moving averages (fast length 9, slow length 21) and RSI (length 14) on the close price chart. It generates long entry signals when the fast EMA crosses above the slow EMA, RSI stays between 30 and 70,

Indicator v6 TrendOscillators & momentum
Updated 2 days ago · None stated GitHub repository of MasterTrader V1 Master Trader
2 stars

This intraday strategy is designed for 5-minute ETF trading, specifically tailored for leveraged assets like TQQQ. It evaluates simple moving average alignment across three lengths and calculates consecutive rising or falling bars over a lookback window to ide

Strategy v6 TrendMoving averages
Updated 9 days ago · None stated GitHub repository of TQQQ MA Accumulation v3-5m

Daily Seasonality

by piecioshka
2 stars

Daily Seasonality colors the chart background according to the day of the week to highlight recurring weekly price patterns. It draws distinct rainbow color overlays directly on the main price chart for each day from Monday to Sunday. Users can adjust backgrou

Indicator v6 Sessions & time
Updated 12 days ago · MIT GitHub repository of Daily Seasonality
2 stars

The SuperTrend Regime Confluence strategy combines an adaptive SuperTrend indicator with market regime detection to generate trading signals. It computes a composite conviction score using an ADX regime lookback, a trend EMA, and a volume moving average. Trade

Strategy v6 TrendVolatility & bands
Updated 2 weeks ago · MIT GitHub repository of SuperTrend Regime Confluence

PVSR Candles MP

by midngtpickle
2 stars

PVSR Candles MP is a Pine Script indicator that colors candlesticks on the price chart according to synchronized Price Volume Spread Ratio Analysis. It classifies each bar as climax volume (colored green or red when volume meets or exceeds average or volume-sp

Indicator v6 VolumeCandlestick patterns
Updated 4 weeks ago · Custom licence GitHub repository of PVSR Candles MP

Money Flow Index

by TamTH-Dev
2 stars

This indicator calculates and plots multi-timeframe Money Flow Index (MFI) values in a separate pane. It features two distinct MFI lines: a fast MFI based on the current or custom timeframe, and a slow MFI using a higher timeframe or automatic step-up timefram

Indicator v6 Oscillators & momentumVolume
Updated 6 weeks ago · None stated GitHub repository of Money Flow Index

Strategy Examples

by danielbodnar
2 stars

Strategy Examples is a Pine Script strategy template demonstrating multiple classic technical trading approaches directly on the price chart. It incorporates a moving average crossover system using SMA or EMA, an RSI mean reversion model operating on overbough

Strategy v6 Moving averagesOscillators & momentum
Updated 2 months ago · MIT GitHub repository of Strategy Examples

This indicator plots higher time frame market structure shifts and liquidity levels on the price chart. It identifies pivots, break of structure events, and fair value gaps from higher timeframe data to mark claimed liquidity pools and BOS+FVG setups. Liquidit

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of ICT HTF MSS & Liquidity (fadi) - Modified

IBD Power Trend

by major
2 stars

This indicator tracks Investor's Business Daily style Power Trend rules and setup conditions in a separate pane. It evaluates whether price lows hold above an exponential moving average, verifies that the fast EMA remains above a rising simple moving average,

Indicator v6 TrendMoving averages
Updated 3 months ago · Apache-2.0 GitHub repository of IBD Power Trend

ICT Smart Money Pro

by Kalki-Teja-Patimidi
2 stars

ICT Smart Money Pro is an all-in-one overlay indicator designed to highlight Inner Circle Trader concepts directly on the price chart. It detects swing highs and lows to plot Break of Structure and Change of Character levels, tracks liquidity pools and inducem

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of ICT Smart Money Pro
2 stars

This strategy captures momentum moves on gold by combining Bollinger Band breakouts with EMA trend confirmation. It restricts trade entry to active European and US trading sessions based on specified hours. Exits are managed dynamically through an ATR-based in

Strategy v6 BreakoutTrend
Updated 4 months ago · None stated GitHub repository of XAUUSD Momentum Breakout Strategy
2 stars

Lakshmi v1 Institutional Flow Engine indicator calculates a Magic Line using ATR(14) multiplied by golden ratio 1.618 anchored to daily midpoint close. It plots demand and supply zones derived from volume profile bins and fair value gaps on 4H and daily charts

Indicator v6 SMC / ICT / price actionVolume
Updated 6 months ago · None stated GitHub repository of Lakshmi Institutional Flow Engine

This indicator serves as a grid range plugin for the Grid Bot framework by calculating an RSI-based channel. Plotted in a separate pane, it computes smoothed RSI levels, overbought and oversold thresholds, and channel width constraints using custom multi-timef

Indicator v6 Oscillators & momentumVolatility & bands Repaints
Updated 8 months ago · MIT GitHub repository of Grid Bot Grid Range Plugin RSI Channel [psyll]
2 stars

Calculates the divergence between global money supply growth and benchmark equity performance to highlight potential market turning points. It aggregates M2 money supply metrics across major economies—including the US, China, Eurozone, Japan, UK, Canada, and S

Indicator v6 DivergenceScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Central Bank Liquidity Gap Indicator

Reverse Stochastic

by mushroom-men-Trading
2 stars

This indicator converts a smoothed stochastic oscillator back into price levels. It calculates a reverse stochastic from close, high, and low using configurable K length, D length, and smoothing, then maps fixed scale points, including bull and bear control zo

Indicator v6 Oscillators & momentumSupport & resistance
Updated 9 months ago · None stated GitHub repository of Reverse Stochastic

The Industry Indices Comparison - SWE indicator displays a performance dashboard table directly on the price chart to evaluate relative sector strength. It tracks up to eleven Swedish industry sector indices against a selected benchmark index. The indicator ca

Indicator v6 Screeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of Industry Indices Comparison - SWE

Time

by Electrified-Trading
2 stars

This library provides utilities for measuring time in Pine Script. Functions retrieve milliseconds per bar based on timeframe, calculate the start of the day from a datetime, get time of day, and convert timespans between units like seconds, minutes, days to b

Library v6
Updated 1 year ago · MPL-2.0 GitHub repository of Time
1 stars

A test indicator on the price chart that plots a trailing stop level derived from the wick of the last closed candle. The long stop sits below the previous low and the short stop above the previous high, each offset by an amount that can combine an ATR multipl

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of Wick Trailing SL Test
1 stars

Looks for a large, strong-bodied candle, measured against ATR with a body-to-range filter and a largest-in-lookback check, and treats it as an impulse. It then draws a ladder of range-extension levels from that candle's low and range width, with optional price

Indicator v6 Support & resistanceVolatility & bands
Updated 2 days ago · None stated GitHub repository of Impulse 4H Range Levels

Market-Neutral Pairs

by nvolpe2007-cell
1 stars

Calculates a z-score of the log price ratio between two crypto pairs, chosen from three Kraken combinations, and shows it in a separate pane. Over a lookback of 168 bars it flags entry when the absolute z-score passes 2, exit when it falls to 0.5, a stop at 3.

Indicator v6 Mean reversion
Updated 2 days ago · None stated GitHub repository of Market-Neutral Pairs

Ghost Flow

by mphinance
1 stars

A price-chart overlay that grades a setup from several axes: a Hull trend band with an optional EMA ribbon, Chaikin money flow strength, an ATR-based compression and expansion measure, trend age in bars, and a Williams %R exhaustion gauge. It adds a Bounce 2.0

Indicator v6 TrendVolume
Updated 3 days ago · Custom licence GitHub repository of Ghost Flow
1 stars

A separate-pane indicator, short title NATSE 3.0, that estimates trend state from log price with a two-state Kalman filter. It blends velocity, efficiency and displacement scores using adjustable weights, then compares the result with adaptive bands set by a l

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · None stated GitHub repository of Adaptive Trend State Engine 3.0

Divergence Engine

by jayadevrana
1 stars

This indicator plots an RSI oscillator in a separate pane with fixed overbought and oversold lines. It stores confirmed RSI pivot highs and lows, then compares each new pivot with the previous one inside a bar-gap window. A lower price low with a higher RSI lo

Indicator v6 Oscillators & momentumDivergence
Updated 4 days ago · MPL-2.0 GitHub repository of Divergence Engine

SMC Breakout Overlay

by skipp-dev
1 stars

The SMC Breakout Overlay indicator draws breakout and breakdown boxes on the price chart using Smart Money Concepts structure detection. It triggers on BOS and CHoCH signals from a chosen structure source including library, engine BUS, or local pivots, and can

Indicator v6 SMC / ICT / price actionBreakout
Updated 4 days ago · None stated GitHub repository of SMC Breakout Overlay

Week 02

by moonyroy
1 stars

This indicator plots ZigZag lines on the price chart to map swing highs and lows. It detects break_high and break_low events to identify pivot points. The code supports a primary chart timeframe and optional second timeframe ZigZag with selectable modes such a

Indicator v6 TrendSupport & resistance
Updated 6 days ago · None stated GitHub repository of Week 02

Candlestick Patterns

by pineforge-4pass
1 stars

This strategy detects bullish and bearish engulfing candles, hammers, shooting stars, and morning stars from current and prior bar bodies. It enters long when a bullish pattern occurs while price is below a simple moving average, and short when a bearish patte

Strategy v6 Candlestick patternsTrend Repaints
Updated 7 days ago · Apache-2.0 GitHub repository of Candlestick Patterns

I_extremes

by GammaExpansion
1 stars

I_extremes plots a collection of built-in extreme, pivot, ranking and statistical series in a separate pane. It draws 20-bar highest and lowest values, pivot highs and lows, value-when and bars-since results, and flags for close crossing a 20-period simple mov

Indicator v6 Support & resistanceMoving averages
Updated 7 days ago · MIT GitHub repository of I_extremes

EMA-Volume-Momentum

by engtuncay
1 stars

This indicator overlays two exponential moving averages (defaults 50 and 200) alongside scaled volume moving averages on the price chart. It calculates volume momentum via RMA and On-Balance Volume (OBV) compared to its EMA. The script highlights trend changes

Indicator v6 Moving averagesVolume
Updated 7 days ago · None stated GitHub repository of EMA-Volume-Momentum

Hash Supertrend

by kanylbullen
1 stars

A Supertrend strategy with adjustable ATR length and multiplier, drawn on the price chart. It sizes positions at a percentage of equity and offers an optional time filter limiting trading to chosen hours. Visual options include colour intensity, a glow effect,

Strategy v6 TrendVolatility & bands
Updated 8 days ago · None stated GitHub repository of Hash Supertrend

Adaptive Trend Flow

by rosijay17-cmd
1 stars

An indicator that draws a volatility band trend line on the price chart. A basis is built from two EMAs of the typical price, and bands sit above and below it at a multiple of smoothed standard deviation. The trend flips to bullish when price closes above the

Indicator v6 TrendVolatility & bands
Updated 8 days ago · GPL-3.0 GitHub repository of Adaptive Trend Flow
1 stars

A Pine v6 research strategy for crypto charts that scores several modules, namely RSI, Fibonacci Bollinger Bands, a trend moving average with higher timeframe filter, Ichimoku, candlestick patterns and chart patterns, then enters when a weighted score passes a

Strategy v6 Oscillators & momentumVolatility & bands
Updated 12 days ago · MIT GitHub repository of Crypto TA Pro v6 Megalithic Research

DEPV2 A4 Volatilite

by YuceSezar89
1 stars

This indicator measures volatility expansion by comparing the current True Range against a historical slow Average True Range. It also computes a fast-to-slow Average True Range ratio to detect market calm. When True Range expansion exceeds a user-defined thre

Indicator v6 Volatility & bands
Updated 13 days ago · None stated GitHub repository of DEPV2 A4 Volatilite

MTF Confluence Spot Strategy

by MuhammadMuhamid
1 stars

A long-only spot strategy where each filter has its own timeframe and on/off switch, and a trade needs every enabled filter to pass. Gates include Supertrend, RSI and Volume Flow Indicator, with structure filters such as support zones, supply and demand, liqui

Strategy v6 SMC / ICT / price actionTrend
Updated 13 days ago · None stated GitHub repository of MTF Confluence Spot Strategy

This statistical indicator calculates the confidence interval around a user-defined trade count and observed win rate using the Wilson score interval method. It displays an on-chart table showing the plausible win rate range, total interval width, and whether

Indicator v6 Screeners & dashboards
Updated 2 weeks ago · MPL-2.0 GitHub repository of Taught to Trade - Sample Size Panel

Model X

by Just-beyond-z
1 stars

An overlay that draws 4-hour, 7-hour and daily candles next to the current chart and marks the closes of the second and third candles in a multi-candle framework, with an optional alert on the third. It can show previous day, week and month high and low levels

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of Model X

ORB + Targets

by kasutu
1 stars

An opening range breakout indicator that records the high and low of a configurable session window (default 06:00 to 06:20 in a chosen timezone) and draws them on the price chart. After the window closes it marks a close beyond either edge, optionally requirin

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

Pin Bar Strategy

by moonyroy
1 stars

This strategy identifies long and short pin bar candlestick patterns aligned with trend conditions defined by an Exponential Moving Average (EMA) and an Average True Range (ATR) filter. Long trades enter when an uptrend is active, price is near the EMA, and a

Strategy v6 Candlestick patternsTrend
Updated 3 weeks ago · None stated GitHub repository of Pin Bar Strategy

Previous-Day Levels

by JACKZHOU0521
1 stars

Previous-Day Levels plots the prior-day high, prior-day low, and an optional prior-day midpoint directly on the price chart. It evaluates price interactions with these benchmark levels to highlight breakouts and rejections upon bar close. Breakout signals trig

Indicator v6 Support & resistanceBreakout
Updated 5 weeks ago · None stated GitHub repository of Previous-Day Levels

VSA Wyckoff Volume

by DEVfancybear
1 stars

The VSA Wyckoff Volume indicator plots volume columns in a separate pane, color-coded by their relative intensity compared to a moving average of volume. It categorizes volume into ultra high, very high, high, normal, and low levels based on configurable ratio

Indicator v6 Volume
Updated 7 weeks ago · MIT GitHub repository of VSA Wyckoff Volume
1 stars

The BMoon System Order Block indicator projects price levels and reflection zones on the main chart using user-selected time and price anchor points. It features an optional Auto Fibonacci mode that computes price range boundaries, along with an Adaptive Smart

Indicator v6 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of BMoon System Order Block

Strategy Template

by MoDarK-MK
1 stars

This strategy template provides a modular foundation for building TradingView v6 backtests. It uses a placeholder Exponential Moving Average crossover signal combined with customizable filters for higher-timeframe trend alignment, volatility regime thresholds,

Strategy v6 TrendMoving averages
Updated 8 weeks ago · MPL-2.0 GitHub repository of Strategy Template

TRAMA Turtle

by dwightspitz
1 stars

A strategy that draws a triple Hull moving average cloud and up to five TRAMA adaptive average clouds on the price chart, each with its own length, delay and timeframe. Only the Hull and first TRAMA clouds are on by default. It includes ATR-based position sizi

Strategy v6 TrendMoving averages
Updated 2 months ago · MIT GitHub repository of TRAMA Turtle

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