Pine Library · 4,367 open-source scripts

Free Pine Script v6 Scripts (page 37)

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 indicator measures how far the current low sits below the highest high of the last 252 bars, expressed in 50-period ATR units and plotted as a negative value capped at 12. It draws that distance in a separate pane and colors the line green, yellow, or red

Indicator v6 Volatility & bandsSupport & resistance
Updated 2 months ago · MPL-2.0 GitHub repository of Webby's ATR Off 52-Week High
1 stars

This educational script demonstrates compound logical expressions in Pine Script v6. It evaluates three simultaneous conditions: whether the current bar is bullish, whether its closing price is higher than the previous bar's close, and whether its volume excee

Indicator v6 Candlestick patternsVolume
Updated 2 months ago · Custom licence GitHub repository of Compound Expression Demo

EMA + Supertrend + OBV

by vedkanani123
1 stars

A price-chart indicator that stacks a 21, 50 and 200 EMA ribbon with a Supertrend line and an ATR-based volatility stop. On-balance volume trend and a volatility-percentile regime feed a scoring step, and a multi-timeframe heatmap table shows the combined read

Indicator v6 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of EMA + Supertrend + OBV
1 stars

A counter-trend strategy that fades price when it reaches a Pivot Point SuperTrend band, selling into upward stretches and buying into downward ones. Signals can fire on a touch of the band, on a regime flip, or both. Optional filters use the opening range of

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · None stated GitHub repository of Contra Pivot SuperTrend Fade

Regime Trend Rider

by jayadevrana
1 stars

This long-only trend strategy trades only while price is above a 200-period SMA that is also rising. It enters when price crosses back above a 20-period EMA after a pullback within that uptrend, and exits on an ATR-based chandelier trailing stop that ratchets

Strategy v6 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of Regime Trend Rider
1 stars

This indicator calculates smart money concepts and market microstructure data to filter trades based on premium and discount zones, order blocks, liquidity cascades, and session phases. It draws rejection markers and market structure elements directly on the p

Indicator v6 SMC / ICT / price actionSupport & resistance

Buddha Price Line

by DarthBuddha
1 stars

A small chart-overlay indicator that marks the latest price with a coloured arrow line extending to the right of the last bar. The colour depends on the last bar: one colour when the close is above the previous close, another when it is below, and a neutral co

Indicator v6
Updated 3 months ago · MIT GitHub repository of Buddha Price Line

Fusion Cipher Toolkit

by shahzaib-574
1 stars

This indicator combines several oscillators in a separate pane: a wave momentum line with signal, a money flow area with selectable models, a VWAP-based oscillator, RSI and Stochastic RSI. It marks dots where several conditions agree, with a minimum confluence

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Fusion Cipher Toolkit

GEKO Ultimate - UO Williams Baseline

by grzegorzkowalskigk-jpg
1 stars

This strategy applies Larry Williams' Ultimate Oscillator rules, blending 7, 14 and 28 period buying pressure, and draws in a separate pane. A long entry needs the oscillator below 30, a bullish price divergence and a break above the oscillator peak from that

Strategy v6 Oscillators & momentumDivergence
Updated 3 months ago · Custom licence GitHub repository of GEKO Ultimate - UO Williams Baseline

MRM Scanner

by majohnst
1 stars

The MRM Scanner is a multi-symbol technical analysis tool that scans a user-defined watchlist of up to 20 stock symbols. It calculates a cloud from 144 and 169 EMAs along with Fibonacci retracement levels based on swing highs and lows over a configurable lookb

Indicator v6 Screeners & dashboardsMoving averages
Updated 4 months ago · None stated GitHub repository of MRM Scanner
1 stars

This indicator performs Smart Money Concepts market structure analysis directly on the main price chart. It detects structural swing points including Higher Highs, Higher Lows, Lower Lows, and Lower Highs, while identifying Break of Structure (BoS) and Change

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of SMC Market Structure Indicator
1 stars

An overlay that trades pullbacks to VWAP in the direction of a higher-timeframe EMA trend. In an uptrend with VWAP rising it signals a buy when price dips back to VWAP, and in a downtrend a sell when price rallies to it. A stricter grade needs price to have st

Indicator v6 Mean reversionTrend
Updated 4 months ago · None stated GitHub repository of VWAP Pullback A+ Dip Scanner

TwoSweepsModel

by riegodavid-git
1 stars

An overlay indicator that looks for swing failure patterns, where price pokes beyond an earlier pivot and closes back, on the 30-minute and 1-hour timeframes, and combines them with fair value gap and inverse gap detection on the chart timeframe, intended for

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of TwoSweepsModel

NQ VIX IB Levels

by qmqvt44stq-del
1 stars

An indicator for the price chart that draws intraday price levels above and below the session by blending an initial balance extension with a volatility-index implied move, then adding a point offset. The volatility index is chosen automatically from the futur

Indicator v6 Support & resistanceVolatility & bands
Updated 4 months ago · None stated GitHub repository of NQ VIX IB Levels
1 stars

This overlay indicator is a companion dashboard for Bursa Malaysia stocks. It builds a table that shows Minervini trend-template conditions, VCP squeeze tightness, volume surge and contraction, price and average-volume liquidity filters, and an MCDX banker or

Indicator v6 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Minervini VCP Dashboard v8 KLSE

EMA Channel Reversal

by rubbermetal
1 stars

EMA Channel Reversal is a strategy that plots a 200-period EMA channel built from highs, closes and lows, plus fast and slow momentum EMAs with an optional glow. Entries follow a tracked sequence of breakout, momentum confirmation and pullback, with an alterna

Strategy v6 TrendMoving averages
Updated 4 months ago · MPL-2.0 GitHub repository of EMA Channel Reversal

The If Wrapped Subexpression Condition strategy is an exponential moving average crossover trading model. It calculates an 8-period fast EMA and a 21-period slow EMA from closing prices. The strategy executes a long entry when the fast EMA crosses above the sl

Strategy v6 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of If Wrapped Subexpression Condition

Deep Trades Whales Canonical

by shubhamtaywade82
1 stars

Flags unusually heavy volume bars on the price chart as possible large-participant activity. Detection combines a volume percentile gate with a z-score, then scales ATR thresholds by a low, normal or high volatility regime. It marks price impact bars, iceberg-

Indicator v6 VolumeVolatility & bands Archived
Updated 5 months ago · None stated GitHub repository of Deep Trades Whales Canonical
1 stars

This indicator provides a comprehensive toolkit for crypto chart analysis. It calculates and plots Volume Profile boxes with value area and acceptance bars, VWAP with standard deviation bands, multiple EMAs for trend filtering including HTF bias, lower timefra

Indicator v6 VolumeSupport & resistance
Updated 5 months ago · MIT GitHub repository of Crypto AMT Toolkit v4 Safe LTF

Renko Reversal

by PETERSAMUELOPS12
1 stars

A strategy that trades direction flips on ATR-sized Renko-style bricks. A long opens after a set number of consecutive up bricks and closes after the same number of down bricks, with optional shorts. Brick size can be a fixed value or ATR multiplied by a facto

Strategy v6 Trend
Updated 5 months ago · None stated GitHub repository of Renko Reversal

AlgoBot VWAP Pullback Strategy

by ghostnathan30-ops
1 stars

A futures strategy for 15-minute charts that builds a daily-reset VWAP with standard deviation bands. It requires several consecutive bars on one side of VWAP, then a pullback to within a small percentage of it and a bar closing in the trend direction. Entries

Strategy v6 TrendSessions & time
Updated 6 months ago · None stated GitHub repository of AlgoBot VWAP Pullback Strategy

An indicator for the price chart, written with gold on a three-minute chart in mind, that looks for long and short setups. It detects regular or hidden divergences on RSI, MACD, MACD histogram, stochastic and optionally CCI, momentum and MFI, and needs a minim

Indicator v6 DivergenceOscillators & momentum
Updated 6 months ago · None stated GitHub repository of Gold Strategy - Divergence + ATR + RSI
1 stars

This indicator reads the native footprint of each bar to find buy and sell volume imbalances at each price row. A row counts as imbalanced when one side exceeds the other by a set multiplier, checked diagonally or across the row depending on the chosen method,

Indicator v6 Volume
Updated 6 months ago · None stated GitHub repository of Footprint Imbalance Delta

This indicator plots intraday reversal signals and automatic stop loss levels tailored for the 5-minute chart. It identifies three-candle reversal patterns synchronized to 15-minute blocks, triggering buy signals when two consecutive green bars break above the

Indicator v6 Candlestick patternsBreakout
Updated 6 months ago · None stated GitHub repository of Intraday BUY/SELL & AUTO SL (5-min timeframe only) by chaitu50c

BTCDOM Strategy

by AlanGuo
1 stars

A long-only strategy that reads Bitcoin daily closes through request.security and compares them with a 30-day simple moving average widened by a slippage percentage. It buys when Bitcoin falls below the lower offset line and closes the position when Bitcoin ri

Strategy v6 Mean reversionMoving averages
Updated 7 months ago · None stated GitHub repository of BTCDOM Strategy

Marubozu Detector with Table

by gabriel-klettur
1 stars

This indicator identifies bullish and bearish Marubozu candlestick patterns directly on the price chart. It determines pattern validity by calculating upper and lower wick sizes relative to the full candle range and comparing them against a configurable wick t

Indicator v6 Candlestick patternsScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Marubozu Detector with Table
1 stars

The quality-first preset of a strategy that routes orders to MetaTrader through connector alert messages. Inputs cover symbol prefix, suffix and mapping, lot size, a magic number, a pip multiplier and a base risk percentage, with higher risk tiers for selected

Strategy v6 Breakout
Updated 7 months ago · None stated GitHub repository of Energy Block V11 Quality First

BTC ATH Golden Cycle

by ymlee1104
1 stars

BTC ATH Golden Cycle is a Bitcoin-focused strategy script that plots time-based halving cycles, supply and demand zones, a ZigZag indicator, a Rainbow ribbon, and an Ichimoku Cloud directly on the main price chart. The script models historical and projected BT

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

An indicator for four-hour charts that builds a rolling VWAP with standard deviation bands. A long signal appears when one bar closes below the lower band and the next closes back above it, and the reverse for shorts. Filters skip trades when ATR volatility is

Indicator v6 Mean reversionVolatility & bands
Updated 7 months ago · None stated GitHub repository of V21 VWAP Mean Reversion
1 stars

This intraday strategy identifies mean-reversion fade setups around the previous day's high and low (PDH/PDL). Operating within a configurable morning session window, it seeks rejection setups confirmed by volume spikes above an average threshold. Trades use s

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of PDH/PDL Mean Reversion Fade

RSI Divergence Detector

by knectardev
1 stars

This indicator calculates the Relative Strength Index (RSI) and detects regular and hidden bullish and bearish divergences between price movement and RSI values. It identifies pivot highs and pivot lows across both price action and the RSI oscillator using a c

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

Fib Harvester

by anil-sn
1 stars

A chart-overlay indicator that builds a volatility-based trend line from a smoothed price range and marks entries when the trend flips, plus reload entries after pullbacks. Each entry gets a stop sized from the distance to the trend line or an ATR multiple, an

Indicator v6 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Fib Harvester

SFA Value Position HTF v1

by genesisgrubio39
1 stars

A Pine library that exports one function returning fifteen values for higher-timeframe cycle ranges. From swing high and low inputs, by time or bar index, it tracks the latest price cycle, then gives its low, high, middle and quartile levels. It also returns p

Library v6
Updated 10 months ago · None stated GitHub repository of SFA Value Position HTF v1

The Aetherium Institutional Market Resonance Engine is an overlay indicator that combines coherence analysis, institutional liquidity scanning, and cycle resonance to identify market setups. It measures directional market alignment, calculates volume spike clu

Indicator v6 SMC / ICT / price actionSupport & resistance Repaints

CVD Trend Activation

by turnupdigital
1 stars

An indicator that plots cumulative volume delta in a separate pane, using lower timeframe volume data requested for a chosen anchor period. A trend mode is flagged when delta moves above a positive threshold or below the matching negative one, and values betwe

Indicator v6 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of CVD Trend Activation

Supertrend

by yagyesh-bobde
1 stars

Calculates the standard Supertrend indicator using built-in Pine Script functions based on Average True Range (ATR) and a multiplier factor. It plots a green support line during an uptrend and a red resistance line during a downtrend directly on the price char

Indicator v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Supertrend

Lab-Doi-04

by theteelek
1 stars

This strategy plots on the price chart and uses daily EMA crossovers to generate signals for opening long positions in crypto trading. It activates between user-defined start and end dates and enters long trades when the fast EMA exceeds the slow EMA with bar

Strategy v6 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Lab-Doi-04

Parabolic SAR

by Studentcodee
1 stars

The Parabolic SAR strategy calculates the Parabolic SAR value to detect trend reversals on the price chart. It starts with a given acceleration factor and adjusts it dynamically between start and maximum values based on price movements. Long entries occur when

Strategy v6 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Parabolic SAR
1 stars

A strategy that trades with a short and a long EMA. A long entry needs price above the short EMA, which is above the long EMA, plus RSI below a level or price within a tolerance of a pivot low. Shorts mirror this in a downtrend near pivot highs. Each entry get

Strategy v6 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Profit Factor Optimized Strategy

P/E BANDs

by lumduan
1 stars

An indicator in a separate pane that divides price by trailing twelve month diluted earnings per share to get a price to earnings series, then wraps it in Bollinger-style bands. The basis can be an SMA, EMA, SMMA, WMA or VWMA of the chosen length, with upper a

Indicator v6 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of P/E BANDs

量价指标

by fuyuanyuan
1 stars

This indicator combines volume-price divergence detection, RSI-filtered volume breakouts, and MACD divergence signals on the price chart. It evaluates price extremes relative to volume levels to detect volume-price divergences with arrow shapes. It also identi

Indicator v6 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of 量价指标

LibraryCOT

by ivansoft
1 stars

A Pine Script v6 library that supports Commitment of Traders data requests. It holds the metric names and allowed directions (long, short, spreading) for the legacy, disaggregated and financial CFTC report types, so that other scripts can build the right data

Library v6
Updated 1 year ago · None stated GitHub repository of LibraryCOT
947 stars

Nick Rypock Trailing Reverse plots a percentage trailing stop on the price chart and reverses its direction when the close crosses that level. In an uptrend it trails below the highest close by the correction coefficient; in a downtrend it trails above the low

Indicator v6 Trend
Updated 12 days ago · GPL-3.0 GitHub repository of Nick Rypock Trailing Reverse

This indicator scans a pasted list of symbols for RSI directional momentum and shows matching long and short signals in a table in a separate pane. The user chooses continuous break, continuous retracement, flip break, flip retracement, divergence, or hidden d

Indicator v6 Oscillators & momentumDivergence
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup - RSI Directional Momentum Scanner

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