Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 64)

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

714AutoM8trDST

by alboogycOdR
6 stars

Calculates Smart Money Concepts market structure elements including internal and swing breaks of structure, change of character, and order blocks directly on the price chart. It highlights bullish and bearish structures, customizable internal and swing order b

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of 714AutoM8trDST
3 stars

This indicator overlays smart-money structure on the price chart. It draws supply and demand zones from swing highs and lows, labels those swings as higher or lower highs and lows, and marks zones broken by a close as break-of-structure lines. Fair-value gaps

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

Price Action Concepts [StratifyTrade] identifies smart money concepts directly on the price chart. It plots swing and internal market structure breaks, changes of character, order blocks with volume activity metrics, and equal highs or lows. In addition, it di

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of Price Action Concepts [StratifyTrade]

Market Cipher SR

by TamTH-Dev
2 stars

This indicator plots daily support and resistance levels, volume-filtered fractal levels, and an optional VWAP overlay on the price chart. It calculates daily pivot highs, lows, and their midpoint, alongside fractal support and resistance based on candle swing

Indicator v5 Support & resistanceVolume Repaints
Updated 6 weeks ago · None stated GitHub repository of Market Cipher SR

cd_sweep&cisd_Cx

by alvinng214
2 stars

This indicator overlays higher-timeframe structure on the price chart. It draws HTF range boxes, an HTF candle, remaining time, and optional bias from a chosen higher timeframe. Sweep boxes mark swept ranges, CISD lines mark delivery shifts, and an SMT view ca

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of cd_sweep&cisd_Cx

Fair Value Gap Strategy

by wynnforthework
2 stars

This strategy identifies and plots Fair Value Gaps (FVG) and Balanced Price Ranges (BPR) directly on the price chart. It generates trading signals when price retraces into active gap zones using a customizable entry ratio coefficient. Stop loss levels are plac

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Fair Value Gap Strategy
2 stars

This educational indicator calculates and visualizes market gap sizes in a separate pane. It computes two distinct metrics: the absolute percentage gap between the current bar open and the previous close, and the percentage gap distance between the current bar

Indicator v5 Candlestick patternsVolatility & bands
Updated 2 years ago · None stated GitHub repository of Candlesticks - Calculating Gaps

My Script

by majixai
1 stars

This indicator draws price data on the chart. It uses a plot budget function to limit the number of plots and displays close, high, and low prices. The script also provides functions to draw dynamic boxes and lines on the price chart. Arrays manage these objec

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 days ago · None stated GitHub repository of My Script
1 stars

A large detection indicator that merges many volume and price-pattern engines into numbered signals drawn as shapes on the price chart. Components include pocket pivot detection, displacement measured in standard deviations, a VWMA with ATR Supertrend, relativ

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 5.4 Tick-Friendly

Hurst Peak Marker V2

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the second revision of a Hurst cycle peak marker. It passes the hl2 price through bandpass filters for cycles from 1 day to 18 years and draws labels and lines at cycle peaks. Each cycle has its own bandwidth and

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V2

Neural Network

by zhuzp98
1 stars

A strategy that scores many indicators and trades when the total reaches a set threshold. Inputs weight an EMA trend, SuperTrend, Parabolic SAR, Hull average, RSI, MACD, WaveTrend, Stochastic, Bollinger and ATR signals, including divergences. Separate strong a

Strategy v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Neural Network

VHF Indicator

by JohnsonHsiao
1 stars

This indicator calculates the Vertical Horizontal Filter (VHF) to help identify whether a market is trending or ranging. It measures the difference between the highest and lowest close over a user-defined period and divides it by the sum of absolute bar-to-bar

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of VHF Indicator

FunctionNNLayer

by ricardosantos79
261 stars

FunctionNNLayer is a Pine Script v5 library providing a generalized neural network layer computation. It accepts an input array, a weight matrix flattened into an array, the target number of nodes, a bias value, and an activation function name. It computes per

Library v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of FunctionNNLayer
257 stars

Calculates three weighted moving averages (11-period, 48-period, and 200-period WMAs) to evaluate market trend conditions directly on the price chart. It monitors crossovers between price and WMAs as well as crossovers between the moving averages themselves to

Indicator v5 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Snag - NEW SWING FAST

AlphaTrend

by hasnocool
106 stars

AlphaTrend calculates a trailing trendline using ATR bands combined with momentum or volume filters (MFI by default, or RSI when volume data is disabled). It plots the AlphaTrend line alongside a two-bar delayed reference line directly on the price chart. The

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of AlphaTrend

Volume

by be-thomas
65 stars

This indicator plots volume as columns in a separate pane. Bar color is the bull input when close is above open and the bear input otherwise. A running count of consecutive volume rises or falls, clamped between one and the gradient-levels setting, sets column

Indicator v5 Volume
Updated 6 days ago · GPL-3.0 GitHub repository of Volume

Hourly Time Levels

by TamaraKGreen
46 stars

Hourly Time Levels plots opening price horizontal lines and text labels at specific user-selected times of the trading day directly on the main price chart. It marks key intraday timestamps such as midnight, market opens, and specific hourly intervals includin

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Hourly Time Levels

Dark Cloud Cover - Bearish

by TWODS-CAPITAL
37 stars

Identifies the two-candle Dark Cloud Cover bearish reversal candlestick pattern on price charts. The indicator evaluates the prevailing trend using optional simple moving averages (SMA 50 or SMA 200) and checks for a strong bullish candle followed by a bearish

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Dark Cloud Cover - Bearish

FairValueGap E003

by ruckard
13 stars

Calculates the distance between the current price and the opposite end of the latest fair value gap, entering trades on the expectation that price will partially fill the gap. It incorporates risk management with customizable stop loss, take profit based on ri

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FairValueGap E003
6 stars

This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela

Strategy v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of Advanced ORB + ICT Strategy
3 stars

This overlay indicator draws supply and demand zones from prior swing highs and lows, treating supply as resistance and demand as support. It places price-action labels at swing points using higher-high, lower-high, higher-low, and lower-low tags. It also plot

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of CSW Technical-Analysis
3 stars

Price Action Market Structure Sweeps identifies swing and internal market structure events, including Break of Structure (BOS) and Change of Character (CHoCH). It overlays key high and low levels across daily, weekly, monthly, and yearly timeframes, while mark

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of Price Action Market Structure Sweeps
2 stars

This overlay indicator detects price contractions from confirmed pivot highs and lows. When price later breaks above the contraction high or below the contraction low, it draws a bullish or bearish box between those extremes and a midline at their average. Sep

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 6 weeks ago · None stated GitHub repository of Master Pattern [LuxAlgo]

This Pine Script v5 library exports SwitchingColorMode, which takes a color and a mode string and returns a theme-adjusted color. It reads red, green, blue, and transparency, classifies brightness into coarse channel buckets, and labels the color as hard dark,

Library v5
Updated 2 months ago · None stated GitHub repository of Dark Light Theme TradingFinder Switching Colors Library

Gucci 1.0

by wynnforthework
2 stars

Gucci 1.0 is a Pine Script strategy that identifies trend reversals using 55 EMA and 200 EMA crossovers combined with custom high and low levels from recent closes. It plots open, close, high/low period values, and both EMAs on the price chart. Long signals fi

Strategy v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Gucci 1.0

Data Types

by Web3Degenerate
2 stars

This indicator is a tutorial script that declares Pine Script values of several built-in types and plots a few of them. It assigns an integer, decimal and scientific-notation floats, a boolean, built-in, hex and RGB colors, and strings that include escapes and

Indicator v5
Updated 2 years ago · None stated GitHub repository of Data Types

An indicator that converts RSI, MACD histogram, Bollinger position, ATR, Stochastic, OBV change, ADX and VWAP deviation into z-scores, combines them with adjustable weights into one composite score, and smooths it with a Kalman filter. Buy and sell labels appe

Indicator v5 Oscillators & momentumAI / machine learning

Hurst Peak Marker V3

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the third revision of a Hurst cycle peak marker. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and draws labels and lines where cycle peaks form. Per-cycle bandwidth and period i

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V3

RSI Divergence Detector

by knectardev
1 stars

The RSI Divergence Detector identifies regular and hidden divergences between price movement and the Relative Strength Index (RSI). It calculates price and RSI pivot highs and lows over a customizable lookback window to detect bullish and bearish setups. Upon

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

An overlay indicator that is one component of a weighted scoring system. It draws a 200-bar trend EMA and four shorter EMAs of 9, 21, 55 and 100 bars, with fills between price and each average coloured by slope. It also converts the trend into weighted scores:

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Neural Network Sub 11 Trend EMA

Williams Inducator

by JohnsonHsiao
1 stars

Williams Inducator calculates a basic Williams %R style momentum oscillator over a configurable lookback period. It determines the highest high and lowest low across the specified bars, measures the position of the closing price within that range, and scales t

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Williams Inducator
330 stars

Range Filter [Alorse] is a technical indicator overlay for TradingView designed to filter market volatility and identify price trends. It calculates a smoothed range based on historical volatility using a configurable sampling period and multiplier applied to

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Range Filter [Alorse]

FunctionNNPerceptron

by ricardosantos79
261 stars

This library exports a generalized perceptron node for neural networks. The function takes float arrays of inputs and weights, adds a bias, and applies a named activation function to the weighted sum. Bias defaults to 1.0 and the activation defaults to sigmoid

Library v5 AI / machine learning
Updated 4 years ago · None stated GitHub repository of FunctionNNPerceptron

Snag - No Repaint ES 1m Strategy Candle Bar is an overlay strategy designed for short-term futures trading. It calculates custom price aggregations, pivot levels, and averages across multiple higher timeframes including 3-minute, 5-minute, 8-minute, and 10-min

Strategy v5 BreakoutMoving averages Repaints
Updated 7 weeks ago · None stated GitHub repository of Snag - No Repaint ES 1m Strategy Candle Bar
106 stars

This strategy plots an AlphaTrend line on the price chart and trades crossovers against the same line two bars earlier. It builds the line from a smoothed true-range band and either Money Flow Index or RSI, depending on the no-volume setting. A crossover opens

Strategy v5 TrendVolatility & bands Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of AlphaTrend For ProfitView
46 stars

This indicator calculates and plots the Initial Balance (IB) high, low, and intermediate Fibonacci levels based on a user-defined trading session. It overlays standard deviation channels and mean or median extension levels directly on the price chart. Users ca

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Initial Balance & Extensions DOW

Detrended Price Oscillator

by TWODS-CAPITAL
37 stars

This indicator calculates the Detrended Price Oscillator to identify short-term cycles by removing long-term trends from price. It compares price data against a simple moving average defined by the user-selected length. Traders can toggle a centered mode that

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Detrended Price Oscillator

FairValueGap F004

by ruckard
13 stars

The FairValueGap F004 strategy trades fair value gap fills with automated risk management and Zignaly webhook integration. It calculates the distance between the current price and the opposite end of a recently created gap, entering positions with the expectat

Strategy v5 SMC / ICT / price actionMean reversion
Updated 1 year ago · None stated GitHub repository of FairValueGap F004

Advanced ORB + ICT System

by alboogycOdR
6 stars

Advanced ORB + ICT System plots Opening Range Breakout (ORB) levels alongside Inner Circle Trader (ICT) concepts directly on the price chart. It highlights ORB boxes, Fair Value Gaps (FVGs), Order Blocks, liquidity grabs, and key support and resistance levels

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of Advanced ORB + ICT System
3 stars

This indicator calculates and plots the NYSE Cumulative Tick Index as colored candles in a separate pane, with green indicating upward tick trends and red downward trends. Overbought and oversold zones are marked using smoothed averages of high and low tick va

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of CSW Tick Internals

Pro V3 [SMRT Algo]

by IAMATOMIC001
3 stars

Pro V3 [SMRT Algo] is a multi-functional technical analysis overlay that generates buy and sell trading signals based on ATR supertrend logic and linear regression analysis. It offers optional moving average filtering alongside a suite of visual technical over

Indicator v5 TrendSupport & resistance
Updated 12 months ago · None stated GitHub repository of Pro V3 [SMRT Algo]

Sniper Algo

by TamTH-Dev
2 stars

Sniper Algo is a multi-indicator technical analysis suite that plots directly on the main price chart. It integrates Ichimoku Kinko Hyo components, automated support and resistance zones, dual exponential moving averages, and optional buy and sell signals. Use

Indicator v5 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Sniper Algo

FVGDetectorLibrary

by alvinng214
2 stars

This Pine Script library detects and plots Smart Money Concept Fair Value Gaps (FVGs) for both demand and supply zones directly on the price chart. It exports a detection function that accepts configurable filter thresholds ranging from standard three-bar imba

Library v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of FVGDetectorLibrary
2 stars

Hull + Volatility + Boom Hunter is a strategy overlay that combines Hull Moving Average variations with Boom Hunter oscillator components. Drawn directly on the main price chart, it tracks market trend direction and momentum. Settings allow switching between s

Strategy v5 TrendMoving averages Repaints
Updated 1 year ago · None stated GitHub repository of Hull + Volatility + Boom Hunter

Draw - Bar and Candles

by Web3Degenerate
2 stars

This educational Pine Script indicator demonstrates how to plot custom price bars using the built-in plotbar function. The script determines whether the current bar is bullish or bearish by comparing the close price to the open price, applying a green or red c

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Draw - Bar and Candles

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