Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 3)

Scripts written for Pine Script version 5. They still run in TradingView as they are, and the Pine Editor can convert them to version 6.

Pine scripts4,643
Code shown here2,378open licence
Updated in a year2,687
No repaint flag4,051

Pine Script v5: Indicators, Strategies and Libraries

Bollinger Bands

by trsdn
6 stars

This indicator plots classic Bollinger Bands on the price chart. It calculates a simple moving average of the selected source as the basis, then places upper and lower bands a chosen number of standard deviations away from that average. A translucent fill mark

Indicator v5 Volatility & bandsMoving averages
Updated 6 days ago · MIT GitHub repository of Bollinger Bands
6 stars

This strategy identifies long gap-and-go breakout opportunities on intraday US stock charts. It filters equities across three sequential stages: verifying fundamental criteria (minimum three-year average ROCE and market capitalization via financial data reques

Strategy v5 TrendBreakout
Updated 3 months ago · MIT GitHub repository of Quality Trend-Join-Long (gap-and-go)

MultiPeriodOverBS

by wanjo-tech
6 stars

This strategy calculates volume-weighted Relative Strength Index (RSI) values across multiple timeframes, specifically 15-minute and daily periods. It averages the resulting short- and long-term RSIs into an oscillator to identify extreme overbought and overso

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · None stated GitHub repository of MultiPeriodOverBS

Mxwll Suite

by eonfutures
6 stars

Mxwll Suite is a comprehensive price action and Smart Money Concepts (SMC) technical indicator that plots market structure, key price levels, and order flow zones directly on the main price chart. It detects internal and external market structures including Br

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Mxwll Suite

Wiseplat Sideways

by WISEPLAT
6 stars

The Wiseplat Sideways indicator identifies dynamic consolidation periods and highlights ranging price action directly on the chart. It evaluates price variation across consecutive bars against a configured percentage threshold to detect sideways movement. When

Indicator v5 Volatility & bandsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Wiseplat Sideways

Edge 59

by subos2008
6 stars

This indicator identifies trend-following breakout opportunities by combining directional movement, trend channels, and multi-period price extremes. It calculates an ADX-colored weighted moving average, a linear regression trend filter based on a volatility ch

Indicator v5 TrendBreakout
Updated 2 years ago · Custom licence GitHub repository of Edge 59
6 stars

This indicator aggregates buy and sell signals from four technical tools: Exponential Moving Averages, Bollinger Bands, Fisher Transform, and MACD. It evaluates specific price conditions and crossovers to classify market states into Strong Buy, Weak Buy, Stron

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of 4 Indicator Signal Strategy

VOIDRLM

by voidrlm
6 stars

The script VOIDRLM combines multiple technical analysis tools into a single overlay indicator on the price chart. It calculates multi-timeframe pivot points, volume-weighted average price (VWAP), customizable moving averages, moving average clouds, supply and

Indicator v5 TrendMoving averages Repaints
Updated 3 years ago · None stated GitHub repository of VOIDRLM
6 stars

This indicator plots multiple types of moving averages on the price chart including SMA, EMA, ALMA, EPMA, and others. Users select the MA type and can apply the same parameters to all or each individually. Key inputs include offset, gamma, smooth, sigma, and w

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Moving Averages Refurbished
5 stars

This strategy calculates Bollinger Bands and monitors band width relative to a historical moving average to identify low-volatility squeeze regimes. It draws upper, lower, and basis bands directly on the price chart while shading squeeze periods in yellow. A l

Strategy v5 Volatility & bandsBreakout
Updated yesterday · MIT GitHub repository of Bridge 04 - Bollinger Squeeze
5 stars

This strategy calculates a Moving Average Convergence Divergence (MACD) and signal line using 12 and 26-period simple moving averages requested from a fixed 5-minute timeframe. It enters a long position when the MACD line crosses above the signal line while th

Strategy v5 Oscillators & momentumMoving averages Repaints
Updated 2 weeks ago · MIT GitHub repository of Broken MACD Strategy

HH-LL Buy/Sell + EMA

by vinitpatil519
5 stars

This overlay indicator classifies market structure with an ATR-based ZigZag that marks higher highs, higher lows, lower highs, and lower lows. A state machine plots buy and sell labels on the confirmation bar, not on the earlier pivot, and by default waits for

Indicator v5 TrendSupport & resistance
Updated 2 months ago · None stated GitHub repository of HH-LL Buy/Sell + EMA
5 stars

This overlay marks order blocks on the price chart at the origin of an impulsive move when that candle anchors a Fair Value Gap. Several recent swings are tracked so clustered highs and lows each keep a block. Detection uses the first gap off a swing or a stru

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · MIT GitHub repository of FVG Validated Order Blocks

SuperThree

by anishmanissery
5 stars

SuperThree is an enhanced Supertrend indicator designed to identify uptrends, downtrends, sideways consolidation, and counter-trend momentum. It calculates upper and lower bands based on Average True Range (ATR) and a multiplier factor. Visual fills on the pri

Indicator v5 TrendVolatility & bands
Updated 4 months ago · MIT GitHub repository of SuperThree
5 stars

This strategy enters one long trade when the bar low comes within a set point tolerance of the prior day's low and the close finishes above that level. Entries are allowed only inside a UTC session and are blocked after a Friday cutoff hour. It stays flat unti

Strategy v5 Support & resistanceMean reversion Repaints
Updated 5 months ago · MIT GitHub repository of PDL — Prior Day Level Retest (Bull)

Path A — ORB (Demo)

by plutothedev
5 stars

This indicator calculates the opening range high and low for the first N minutes of a user-defined session. It plots the ORB levels on the price chart and emits long breakout signals when price closes above the ORB high and short breakout signals when price cl

Indicator v5 BreakoutSessions & time
Updated 5 months ago · Custom licence GitHub repository of Path A — ORB (Demo)
5 stars

This overlay indicator marks market structure on the price chart. It detects swing highs and lows with a configurable lookback, then labels Break of Structure only after a two-candle retracement check. It also marks Change of Character and a dual Change of Cha

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of BOS & CHOCH with FVG & Fib Zones

Trended CVD modified

by rubystar0512
5 stars

This indicator calculates directional cumulative volume delta across price swings identified by an imported ZigZag library. It tracks bar-by-bar volume signs based on price direction and evaluates net volume across individual price legs directly on the price c

Indicator v5 VolumeTrend
Updated 2 years ago · None stated GitHub repository of Trended CVD modified

CTF Raid Indicator

by jerryinyang
5 stars

This indicator detects stop hunts, liquidity raids, and Rob Hoffman Inventory Retracement Bar breakouts directly on the main price chart. It tracks bullish and bearish retracement bars using dynamic arrays, identifying when incoming price action breaks these s

Indicator v5 SMC / ICT / price actionBreakout
Updated 2 years ago · None stated GitHub repository of CTF Raid Indicator

Koncord + MACD

by Following-BTC
5 stars

This indicator combines the Koncorde oscillator with a traditional Moving Average Convergence Divergence (MACD) indicator in a separate pane. It calculates Koncorde using a mixture of the Relative Strength Index (RSI), Money Flow Index (MFI), Bollinger Bands o

Indicator v5 Oscillators & momentumVolume
Updated 2 years ago · None stated GitHub repository of Koncord + MACD

This technical indicator combines multiple popular analysis tools into a single price chart overlay to optimize chart space. It calculates and plots the complete Ichimoku Cloud, 50 and 200 Simple Moving Averages, and standard Bollinger Bands. Furthermore, it t

Indicator v5 TrendMoving averages Repaints
Updated 3 years ago · None stated GitHub repository of Ichimoku + MAs + Bollinger + Liquidity Zone
5 stars

This indicator plots three volume-weighted average price lines on the price chart. Each line is anchored at a swing low, a swing high, or the highest-volume candle found inside a user-set lookback measured in days. It requests daily timestamps and chart-timefr

Indicator v5 VolumeSupport & resistance Repaints
Updated 3 years ago · MPL-2.0 GitHub repository of Armaan-Harpal-Custom-AAVWAP

ADW - Colour Trend

by ADWilkinson
5 stars

ADW - Colour Trend is an overlay indicator that normalizes the bar high and low against the highest high and lowest low over a chosen length, then averages those values. It paints price bars green when the average is above minus forty, red when it is below min

Indicator v5 Trend
Updated 3 years ago · Custom licence GitHub repository of ADW - Colour Trend

Smart Money Concepts

by northvia
5 stars

This indicator plots smart-money market structure on the price chart. It marks internal and swing breaks of structure and changes of character, optional swing points, and strong or weak highs and lows. It draws internal and swing order blocks filtered by volat

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 3 years ago · None stated GitHub repository of Smart Money Concepts
5 stars

This indicator identifies Fair Value Gaps by detecting price imbalances between the current bar and two bars prior on both current and higher timeframes. It draws shaded boxes on the price chart representing bullish and bearish gaps, along with optional midpoi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 years ago · None stated GitHub repository of Fair Value Gap SpaceManBTC

This overlay indicator plots Central Pivot Range levels and bands across yearly, quarterly, monthly, weekly, daily, and six-hour periods. Each timeframe can be shown or hidden, and pivot and band colors are set separately. It also marks MACD momentum and EMA t

Indicator v5 Support & resistanceOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Pivot Boss Multi Timeframe CPR with MACD and EMA
5 stars

Greeffer's Scalping Indicator overlays higher-timeframe exponential moving averages, Bollinger Bands, and Donchian channels on the price chart. It flags a long when price touches the lower Donchian and lower band while the faster averages are not stacked beari

Indicator v5 Moving averagesVolatility & bands
Updated 4 years ago · None stated GitHub repository of Greeffer's Scalping Indicator

ADX Trend Filter

by latentwill
4 stars

This strategy enters long when a series labeled ADX is above a threshold and RSI is below 40, and enters short when that series is above the threshold and RSI is above 60. Both series are calculated with the RSI function, so the trend filter is not a true ADX.

Strategy v5 TrendOscillators & momentum
Updated 7 days ago · None stated GitHub repository of ADX Trend Filter

42H Map

by aurorascarlet1102
4 stars

42H Map calculates custom time cycle structures and session ranges directly on the price chart. It partitions market action into forty-two-hour cycles, ten-and-a-half-hour micro-sessions, half-week periods, and quarter-month segments to track highs, lows, and

Indicator v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of 42H Map
4 stars

This overlay indicator draws an on-chart depth-of-market table that splits volume at each price tick into estimated buy volume, sell volume, delta, and session volume. Growing text bars compare buyers and sellers, and recent bars approximate resting bid and as

Indicator v5 VolumeScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of Custom DOM - Bookmap Style
4 stars

This indicator combines five normalized oscillator channels: RSI, stochastic, MACD histogram, money flow index, and the ADX directional difference. It cross-subtracts channel pairs with a fixed or correlation-based weight meant to reduce shared overlap, then s

Indicator v5 Oscillators & momentumVolume
Updated 6 months ago · None stated GitHub repository of MVSU Decontamination

Bollinger Squeeze Breakout

by LePotoRico2105
4 stars

Calculates standard Bollinger Bands and identifies volatility contraction when band width drops below a percentage of its moving average. The strategy enters long positions when a confirmed candle closes above the upper band following a recent squeeze, and ent

Strategy v5 Volatility & bandsBreakout
Updated 6 months ago · MIT GitHub repository of Bollinger Squeeze Breakout
4 stars

This indicator recolors price candles from recent volume and range. It marks climax bars when current volume times range exceeds the prior ten-bar peak or volume is at least twice a ten-bar average, and rising bars at one and a half times that average. Bullish

Indicator v5 VolumeCandlestick patterns
Updated 9 months ago · None stated GitHub repository of Price-Volume Analysis

GainzAlgo V2 [Alpha]

by krishnandank
4 stars

This indicator generates buy and sell signals based on engulfing candlestick patterns, a candle stability ratio relative to true range, RSI thresholds, and a multi-bar price momentum condition. It draws visual signal labels on the chart alongside suggested tak

Indicator v5 Candlestick patternsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of GainzAlgo V2 [Alpha]

DAHAB+ SMC + IDMT

by Rjoubodai25
4 stars

This SMC indicator for TradingView calculates and plots Order Blocks, Fair Value Gaps, market structure trend lines, and Enhanced Inducement Detector signals on the price chart. Bullish and bearish boxes highlight Order Blocks and FVG, while trend lines extend

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of DAHAB+ SMC + IDMT
4 stars

This strategy plots three exponential moving averages on the price chart and uses RSI for exits. It opens a long when the fastest EMA crosses above the middle EMA while remaining above the slowest EMA and the bar closes above its open. Shorts use the opposite

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Tendency EMA + RSI [Alorse]

Trix Strategy V2

by CryptoRobotFr
4 stars

This strategy trades trend continuations using a triple moving average oscillator (TRIX) and a long-term moving average baseline. It opens long positions when price is above the long moving average and the TRIX histogram crosses above zero, and opens short pos

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Trix Strategy V2

OrderEncoder

by algoboy-kevin
4 stars

This utility library formats automated trading alert messages into structured JSON strings for external execution. It provides functions to construct text payloads for opening limit orders, cancelling existing limit orders, and closing all active positions wit

Library v5
Updated 2 years ago · None stated GitHub repository of OrderEncoder
4 stars

Davids Ichimoku Cloud Break is an overlay strategy that generates trade signals based on Ichimoku Cloud breakout conditions combined with an optional MACD entry filter. It calculates and plots the Conversion Line, Base Line, Lagging Span, and Leading Spans dir

Strategy v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Davids Ichimoku Cloud Break

ARANLAR

by Kalumur
4 stars

ARANLAR is an overlay indicator that combines a Tillson T3 moving average, WMA crossover signals, price channel boundaries, and dynamic Fibonacci retracement levels. It plots a color-coded T3 line to show short-term trend direction and triggers buy (AL) or sel

Indicator v5 Moving averagesTrend
Updated 2 years ago · None stated GitHub repository of ARANLAR

Vol-Targeted Position Size

by Robot-Wealth
4 stars

This indicator calculates volatility-targeted position sizes using an exponentially weighted moving average volatility forecast. It plots the target position size along with upper and lower no-trade buffer boundaries in a separate pane. A dashboard table in th

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of Vol-Targeted Position Size

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