Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 63)

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

3 stars

The CSW Sentiment Line indicator rates RSI, Volume, and RVI from 0 to 100. It averages these to create a composite sentiment and draws labels on the price chart displaying each rating. Users can enable or disable individual metrics and customize colors and lab

Indicator v5 Oscillators & momentumVolatility & bands
Updated 5 months ago · None stated GitHub repository of CSW Sentiment Line
3 stars

Pieki Algo is an all-in-one technical analysis indicator that overlays trading signals, trend visualizers, and Smart Money Concepts onto the main price chart. It plots buy and sell signals based on configurable sensitivity settings, colors candles by trend or

Indicator v5 SMC / ICT / price actionTrend Repaints
Updated 12 months ago · None stated GitHub repository of Pieki Algo Signals & Overlays

IMBA Algo

by TamTH-Dev
2 stars

IMBA Algo is a price chart overlay indicator designed to simulate trading setups with detailed position visualisations. It calculates entry points, automatic or fixed percentage stop losses, break-even levels, and four distinct take profit targets with customi

Indicator v5 TrendScreeners & dashboards
Updated 6 weeks ago · None stated GitHub repository of IMBA Algo
2 stars

This Pine Script library provides a standardized function to format and send custom trade alerts. It processes incoming parameters such as trade direction, setup types, chart timeframe, and price levels including entry, take profit, and stop loss. The library

Library v5
Updated 2 months ago · None stated GitHub repository of AlertSenderLibrary TradingFinder

Bollinger Bands

by Web3Degenerate
2 stars

This overlay indicator plots customized asymmetrical Bollinger Bands on the price chart to detect breakout trade signals. It calculates a middle simple moving average and standard deviation bands using separate standard deviation multipliers for upper and lowe

Indicator v5 Volatility & bandsBreakout
Updated 2 years ago · None stated GitHub repository of Bollinger Bands

B2B PUP Combined 4.32

by nishpa800
1 stars

An earlier version of a combined detection indicator that unifies pocket pivot, displacement, VWMA with ATR Supertrend, relative volume, fair value gap and TNT zone engines into numbered signals drawn on the price chart. This release fixes the charge ladder so

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 4.32
1 stars

This strategy calculates 12-period and 26-period Exponential Moving Averages (EMA) to identify trend reversals. A custom user-defined function converts the EMA relationship into a numeric signal, outputting positive or negative values based on line positioning

Strategy v5 TrendMoving averages
Updated 4 months ago · MIT GitHub repository of Typed State Function

A Pine Script v5 indicator in a separate pane that uses Hurst-style bandpass filters on a selectable price source, defaulting to the low, to mark cycle pivots from the 80 day range up to 18 years. Every cycle has its own bandwidth and period setting, plus a ba

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Diamond Notation Pivots 80D to 18Y
1 stars

Calculates a reversal confidence score combining Bollinger Band overextension, RSI exhaustion, and price distance from a exponential moving average. The strategy overlays VWAP, EMA, and Bollinger Bands directly on the price chart. Long signals trigger when pri

Strategy v5 Mean reversionOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Reversal Confidence Strategy

Multiple MA

by zhuzp98
1 stars

An indicator that draws three moving averages on the price chart: a base, a slow and a fast line, each selectable as EMA, SMA or Hull type with its own length. The slow line changes colour depending on whether price is above or below it. Labels mark when price

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Multiple MA
1 stars

The triple exponentially average indicator computes a triple exponential moving average of the closing price to generate the Trix oscillator. It calculates the successive EMAs and derives the trix as the percentage change of ema3. The script plots the trix val

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · None stated GitHub repository of Triple Exponentially Average

FunctionLinearRegression

by ricardosantos79
261 stars

This library exports a linreg method that fits a straight line through paired sample arrays. It returns fitted Y values plus the largest positive deviation, the largest negative deviation, and the average absolute deviation. Callers pass matching X and Y array

Library v5
Updated 4 years ago · None stated GitHub repository of FunctionLinearRegression
257 stars

Plots three weighted moving averages (periods 13, 48, and 200) directly on the price chart to classify trend transitions and strength. The indicator detects early trend beginnings when the close crosses any of the moving averages, then tracks subsequent moving

Indicator v5 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Snag - Confirm Trend

AI Trend Navigator

by hasnocool
106 stars

This indicator calculates a trend direction and smoothed moving average using a k-nearest neighbours (k-NN) classification algorithm directly on the main price chart. Users can select input price types, target values, neighborhood size, and smoothing periods.

Indicator v5 AI / machine learningTrend
Updated 2 years ago · GPL-3.0 GitHub repository of AI Trend Navigator

V5 Concepts Colors 00

by be-thomas
65 stars

Calculates and plots five Simple Moving Averages (SMAs) with lengths of 10, 30, 50, 70, and 90 on the main price chart. The script serves as an educational example demonstrating various syntax methods for defining color transparency in Pine Script v5, includin

Indicator v5 Moving averagesTrend
Updated 6 days ago · GPL-3.0 GitHub repository of V5 Concepts Colors 00
55 stars

This indicator automatically identifies swing highs and lows over a 100-bar lookback window on the most recent bar to draw Fibonacci technical overlays. It plots a primary trendline between the detected swing points, alongside extended speed fan lines at stand

Indicator v5 Support & resistance Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of Fibonacci Speed Fan & Time Zones
46 stars

This indicator uses a Hidden Markov Model (HMM) framework combined with an adaptive dual moving average engine and Directional Movement Index (DMI) features to identify market regimes (bullish, bearish, or ranging/chop). It calculates regime probabilities on e

Indicator v5 AI / machine learningTrend
Updated 8 weeks ago · None stated GitHub repository of HMM Enhanced: Regime Probability

Coppock Curve

by TWODS-CAPITAL
37 stars

This indicator plots the Coppock Curve in a separate pane. It adds the rate of change of close over a long lookback to the rate of change over a shorter lookback, then smooths that sum with a weighted moving average. The WMA length and the long and short rate-

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Coppock Curve

FairValueGap C003

by ruckard
13 stars

FairValueGap C003 is an overlay strategy that identifies Fair Value Gaps (FVG) and opens trades expecting price to return and fill the gap. It calculates the distance between current price levels and recent gap boundaries to aim for partial or full gap fills.

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

Stochastic 3

by suyons
7 stars

Stochastic 3 plots three separate Stochastic oscillators stacked vertically in a single indicator pane using vertical offsets. It calculates fast, medium, and slow momentum layers (configured by default to 5-3-3, 10-6-6, and 20-12-12 settings) with customizabl

Indicator v5 Oscillators & momentum
Updated 4 months ago · None stated GitHub repository of Stochastic 3

714AutoM8tr

by alboogycOdR
6 stars

714AutoM8tr is a Smart Money Concepts indicator that plots internal and swing market structures directly on the price chart. It identifies Break of Structure and Change of Character points alongside internal and swing order blocks. Users can customize order bl

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

CSW Sequence Candles Pro calculates 5-period EMA-smoothed Open, High, Low, and Close values to render custom sequence candlesticks directly on the main price chart. It determines trend direction by comparing the smoothed close to a 20-period EMA, dynamically c

Indicator v5 Candlestick patternsTrend
Updated 5 months ago · None stated GitHub repository of CSW Sequence Candles Pro

Premium Lux Algo

by IAMATOMIC001
3 stars

Premium Lux Algo is a multi-indicator overlay designed for price charts. It combines components including Supertrend, Parabolic SAR, pivot-based support and resistance levels, moving average bands, and range filters into a single tool. Traders can toggle speci

Indicator v5 TrendSupport & resistance
Updated 12 months ago · None stated GitHub repository of Premium Lux Algo

Market Cipher A

by TamTH-Dev
2 stars

Market Cipher A plots an exponential moving average ribbon on the price chart alongside visual trend signals. It computes eight EMAs of varying lengths to construct the ribbon, tracks daily pivot high and low levels, and calculates momentum using internal wave

Indicator v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Market Cipher A

BPR [TFO] - Modified

by alvinng214
2 stars

This indicator draws Balanced Price Range zones on the price chart. It looks for a bullish fair value gap and a bearish fair value gap that form within a set number of bars, then boxes their overlapping range when that range is at least the threshold. Boxes ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of BPR [TFO] - Modified

ETH 1HR

by wynnforthework
2 stars

This multi-indicator strategy generates trade signals by combining a T3 moving average, Parabolic SAR, ADX trend filter, RSI, and MACD. It executes long or short entries overlaying the price chart based on trend and momentum alignment. Exit logic features a mu

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ETH 1HR

Candle Filters

by Web3Degenerate
2 stars

Candle Filters is an overlay indicator that marks bullish and bearish engulfing candles on the price chart. A bullish signal requires a prior down candle whose body is engulfed by the current candle near a swing low, while a bearish signal does the reverse nea

Indicator v5 Candlestick patternsMoving averages
Updated 2 years ago · None stated GitHub repository of Candle Filters

B2B PUP Combined 5.4

by nishpa800
1 stars

Large overlay indicator that merges many detections into numbered signals on the price chart. It includes pocket pivot volume tests, standard deviation displacement, a VWMA with ATR Supertrend and PBJ filter, relative volume, high-volume and opening-drive zone

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of B2B PUP Combined 5.4
1 stars

Utility State Series is an EMA crossover strategy that tracks state variables and past event prices. It calculates 12-period and 26-period exponential moving averages, plotting the close price at the most recent crossover with a color reflecting whether a bull

Strategy v5 Moving averagesTrend
Updated 4 months ago · MIT GitHub repository of Utility State Series

Hurst Peak Marker

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane that runs a bank of Hurst bandpass filters, from 1 day to 18 year cycles, over the hl2 price and marks cycle peaks with labels and lines. Auto or manual modes control cycle selection, peak selection, composite line

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

Net Position

by zhuzp98
1 stars

This indicator plots aggregated net long and short positions from selected crypto perpetual markets in a separate pane. It can show net longs, shorts, delta, and ratio as candles, a line, or columns, and it can switch to a position RSI view. Users choose Binan

Indicator v5 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Net Position

Vertical Horizontal Filter

by JohnsonHsiao
1 stars

The Vertical Horizontal Filter indicator determines whether an asset is trending or consolidating. It calculates the ratio between the highest-lowest price range over a set lookback period and the sum of absolute price changes over the same period. The script

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of Vertical Horizontal Filter
330 stars

This multi-symbol indicator evaluates a combined trading condition across up to 40 user-defined symbols. It processes MACD bullish crossovers, RSI thresholds, Bollinger Band boundaries, and DMI/ADX trend filters using security calls. When buy or sell criteria

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of Multi MACD + BB + RSI [Alorse]

FunctionNNetwork

by ricardosantos79
261 stars

This Pine Script v5 library exposes methods for a generalized neural network. It builds random weight arrays, runs a forward pass through stacked layers using an imported layer function, and begins a backward pass that compares output nodes with targets. Calle

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

Snag - ES 1m Strategy Candle Bar is an overlay strategy designed for 1-minute index futures charts like the S&P 500 E-mini. It plots dynamic support and resistance levels derived from pivot highs and lows alongside a custom smoothed filter line and a 3-period

Strategy v5 TrendSupport & resistance Repaints
Updated 7 weeks ago · None stated GitHub repository of Snag - ES 1m Strategy Candle Bar

ALMA/EMA Strategy

by hasnocool
106 stars

This strategy executes trades based on Exponential Moving Average (EMA) crossovers filtered by an Arnaud Legoux Moving Average (ALMA) baseline. It enters long positions when the moving averages cross while price remains above the ALMA, and enters short positio

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of ALMA/EMA Strategy

V5 Concepts Colors 11

by be-thomas
65 stars

This demonstration script plots the high, median (hl2), and low price values using multiple overlapping line plots with distinct transparency levels and line widths. Designed to showcase color styling in Pine Script v5, it illustrates how using color.new with

Indicator v5
Updated 6 days ago · GPL-3.0 GitHub repository of V5 Concepts Colors 11

Major Buy Setup

by dcaoyuan
55 stars

Major Buy Setup plots a 20-period and a 50-period simple moving average on the price chart. It marks a buy when the current bar is both a bullish engulfing candle and a bald bull candle, defined as a green candle whose upper shadow is no more than five percent

Indicator v5 Moving averagesCandlestick patterns Repaints
Updated 6 months ago · Apache-2.0 GitHub repository of Major Buy Setup

Hour Stats with Levels

by TamaraKGreen
46 stars

This indicator draws hourly statistics and reference levels on the price chart. It plots optional target lines for the previous hour open, high, low, and midpoint, plus the current hour open. Dashed reversal lines mark the 25th, median, and 75th percentile swe

Indicator v5 Support & resistanceScreeners & dashboards
Updated 8 weeks ago · None stated GitHub repository of Hour Stats with Levels

Cumulative Volume Index

by TWODS-CAPITAL
37 stars

This indicator calculates the Cumulative Volume Index (CVI) by measuring market breadth across major US exchanges. It requests advancing volume and declining volume data for a chosen exchange, computes their net difference, and tracks the cumulative sum over t

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Cumulative Volume Index

FairValueGap D003

by ruckard
13 stars

This strategy measures the distance between the current price and the opposite end of the latest fair value gap, entering trades on the expectation that price will fill the gap. It plots signals and execution levels directly on the price chart. Users can confi

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

Volume Details

by suyons
7 stars

Volume Details calculates estimated buy and sell volume based on intraday price location relative to the high-low bar range. It fetches daily volume history to derive a 30-day daily average volume and compares current volume against this metric. An on-screen t

Indicator v5 VolumeScreeners & dashboards
Updated 4 months ago · None stated GitHub repository of Volume Details

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