Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 70)

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

Volume profile

by dearvn
257 stars

This indicator builds a session volume profile on the price chart for a daily or weekly period. It distributes volume, or open-interest change when that data type is selected, across price rows and plots the point of control plus optional value-area high and l

Indicator v5 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Volume profile
106 stars

The Automatic Moving Average strategy computes an adaptive moving average by dynamically adjusting its length based on price touches against candle wicks and bodies. It applies Exponential Moving Average smoothing to define trend direction and plots a color-co

Strategy v5 Moving averagesTrend
Updated 2 years ago · GPL-3.0 GitHub repository of Automatic Moving Average
46 stars

Range Projections [Statistical Levels] calculates and projects expected price range levels based on historical statistical percentile data for specific trading session opens, such as Globex, London, NY Futures, and NY RTH. It uses day-of-week data to plot stat

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Range Projections [Statistical Levels]

Evening Doji Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator detects the bearish Evening Doji Star candlestick pattern directly on the price chart. It checks for a three-bar pattern comprising a long bullish candle, a gapping doji body, and a long bearish candle closing below the midpoint of the first can

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Evening Doji Star - Bearish

This strategy evaluates market signals using a combination of Trend Indicator A-V2, Supertrend, and QQE Mod along with a VWMA trend line. It generates long or short entries when a specified minimum number of sub-strategies align. Position management includes c

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya A006

EFI Normalized

by g-moe
3 stars

This indicator plots a normalized Elder Force Index in a separate pane. It calculates the Elder Force Index as an EMA of the prior close price change multiplied by volume, smoothed over the input length. The result is normalized to a 0-100 scale using the high

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of EFI Normalized
2 stars

This Pine Script v5 library exports an order-block refiner for Smart Money Concepts charts. It takes an order-block type, refine flag, refine method, trigger condition and bar index, then measures candle range and body around that bar using a 55-period ATR. Fo

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

升级版的马丁 -- DCA

by wynnforthework
2 stars

This Dollar-Cost Averaging (DCA) strategy enters trades using signal triggers from MACD, MFI, RSI, or Stochastic RSI. When price moves against the position, it executes Martingale safety orders using customizable volume multipliers and step percentages. Exits

Strategy v5 Oscillators & momentumMean reversion Repaints
Updated 1 year ago · None stated GitHub repository of 升级版的马丁 -- DCA

HMD Relative Strength Index

by Web3Degenerate
2 stars

Calculates a Relative Strength Index with user-defined length and overbought/oversold thresholds. It identifies exhaustion setups by pairing momentum extremes with bullish and bearish engulfing candlestick patterns imported from an external library. Buy signal

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of HMD Relative Strength Index

Bitmoon System

by morindok
1 stars

Calculates dynamic fractal levels and time symmetry dynamic lengths on the main price chart. It uses extended Williams Fractals across a user-defined fractal period to detect key structural pivot highs and lows. The script measures bar distances between detect

Indicator v5 Support & resistanceTrend Repaints
Updated 7 weeks ago · None stated GitHub repository of Bitmoon System

Fable Bear LTF v1.3

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that places numbered signals on the price chart. It draws on relative volume tiers, a standard deviation displacement test with a default multiplier of five, a VWMA with ATR Supertrend latch, pocket

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.3
1 stars

A Pine Script v5 indicator in a separate pane, the second revision of a Hurst cycle trough marker, whose title spells trough as through. It runs the hl2 price through bandpass filters for cycles from 1 day to 18 years and draws labels and lines where cycle low

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

RSI %B on Chart

by zhuzp98
1 stars

This indicator plots the Relative Strength Index (RSI) and its Bollinger Band percentage bandwidth (%B) deviation directly on the price chart. It calculates RSI from a user-defined source and length, applies an EMA, and derives the %B deviation using a configu

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of RSI %B on Chart

MathGaussFunction

by ricardosantos79
261 stars

This mathematical utility library implements one-dimensional and two-dimensional Gaussian functions and kernel generators in Pine Script. It calculates standard Gaussian distribution values for single coordinates or coordinate pairs based on a specified sigma

Library v5
Updated 4 years ago · None stated GitHub repository of MathGaussFunction

VP

by dearvn
257 stars

This indicator calculates and plots a session-based volume profile directly on the price chart. It maps volume distribution across price levels, highlighting key structural reference points including the Point of Control, Value Area High, and Value Area Low. C

Indicator v5 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of VP
106 stars

This script calculates and plots the Average Directional Index alongside directional movement values in a separate pane. Although declared as a strategy, it only plots the indicator oscillator against customizable minimum and maximum threshold levels without d

Strategy v5 Trend Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Average Directional Index

Session & RTH VWAP

by TamaraKGreen
46 stars

Calculates and plots session Volume Weighted Average Price along with Regular Trading Hours VWAP, historical session tracking, and statistical deviation bands. The script features customizable time zones, session highlighting, and an optional statistics table

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Session & RTH VWAP

Evening Star - Bearish

by TWODS-CAPITAL
37 stars

The Evening Star - Bearish indicator identifies and marks the three-candle Evening Star bearish reversal pattern directly on the main price chart. It detects a strong bullish candle, followed by a small-bodied gapping candle, and finishes with a strong bearish

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Evening Star - Bearish

This strategy generates long and short trade signals by combining Trend Indicator A-V2, Supertrend, and QQE Mod. It executes entries on the price chart with integrated risk management features including a default stop loss, optional take profits, trailing take

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya B003

Complete CRT System

by alboogycOdR
6 stars

This indicator identifies time-based candle range theory patterns on a higher timeframe, defaulting to four hours, and projects the matching high and low lines onto the price chart. The user chooses a 1AM, 5AM, or 9AM CRT model and can toggle fair value gap bo

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

This strategy generates long trade entries when a short exponential moving average crosses above a long exponential moving average. It features comprehensive position management tools including an ATR-based stop loss, a maximum percentage loss threshold, a pro

Strategy v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of EMA Crossover ATR Strategy

This overlay indicator maps ICT Silver Bullet structure on the price chart for the 10-11 AM New York window. It draws demand and supply order blocks and fair value gaps, and marks high and low CISD levels. Users can refine order blocks as defensive or aggressi

Indicator v5 SMC / ICT / price actionSessions & time
Updated 2 months ago · None stated GitHub repository of Silver Bullet ICT Strategy [TradingFinder] 10-11 AM +FVG

HMD Session Candles

by Web3Degenerate
2 stars

This Pine Script indicator plots session summary bars on the price chart for Tokyo, London, and New York sessions. It tracks open, high, low, and close values for each session period defined by user inputs. At session start and end, it draws purple bars showin

Indicator v5 Sessions & timeCandlestick patterns
Updated 2 years ago · None stated GitHub repository of HMD Session Candles

BoS Boxes

by morindok
1 stars

Marks break-of-structure phases on the price chart. It finds confirmed pivot highs and lows using a configurable number of bars on each side, five by default. A close above the last pivot high sets a bullish state and a close below the last pivot low sets a be

Indicator v5 SMC / ICT / price actionTrend
Updated 7 weeks ago · None stated GitHub repository of BoS Boxes

Fable Bear LTF v1.4

by nishpa800
1 stars

A bearish-side detection indicator for lower timeframe charts that marks numbered signals on the price chart. Its engines include relative volume tiers, displacement with a default multiplier of five standard deviations, a VWMA with ATR Supertrend latch, pocke

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bear LTF v1.4
1 stars

A Pine Script v5 indicator in a separate pane, the third revision of a Hurst cycle trough marker, whose title spells trough as through. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and marks cycle lows with labels and lines.

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

This indicator calculates the Relative Strength Index and identifies regular and hidden divergences between oscillator pivots and price pivots. It plots the RSI oscillator with overbought and oversold reference levels in a separate pane. When divergences occur

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of RSI Divergence Indicator

MathGeometryCurvesChaikin

by ricardosantos79
261 stars

MathGeometryCurvesChaikin is a Pine Script library that implements Chaikin's corner-cutting algorithm to create smooth curved paths from given coordinate arrays. It provides exported functions to calculate single-step curve interpolations and multi-iteration s

Library v5
Updated 4 years ago · None stated GitHub repository of MathGeometryCurvesChaikin

VP

by dearvn
257 stars

This overlay indicator builds a session volume profile on the price chart. It bins volume into price rows for a chosen session, by default Daily, and draws the profile as up and down volume, total volume, or delta. It marks the point of control and the value-a

Indicator v5 VolumeSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of VP
106 stars

This strategy calculates smoothed average Stochastic lines using exponential moving averages applied to traditional Stochastic values. It triggers long entries when the averaged %K crosses above averaged %D while below 20, and short entries when %K crosses bel

Strategy v5 Oscillators & momentumMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of AVG Stochastic Strategy

Session Based Statistical Levels w/Closes Table calculates and plots key statistical levels across distinct trading session windows on the main price chart. Traders can select standard global trading sessions such as London, Asia, or New York, set custom sessi

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Session Based Statistical Levels w/Closes Table
37 stars

This indicator identifies the five-candle bearish continuation pattern known as the Falling Three Methods on the main price chart. It checks for an initial long bearish candle within a downtrend, three consecutive small bullish candles contained within the fir

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Falling Three Methods - Bearish

This strategy combines Trend Indicator A-V2, Supertrend and QQE Mod to generate long and short signals on the price chart. It enters positions based on the combined trend signals and manages exits using take profit and stop loss levels. Position sizing follows

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya C002

Complete CRT System

by alboogycOdR
6 stars

This overlay indicator projects higher-timeframe Candle Range Theory levels onto the current chart, with the analysis timeframe defaulting to H4. It draws CRT high and low lines for a selected time-based model, and can show fair value gap boxes and the most re

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Complete CRT System

This strategy executes long positions based on a fast and slow exponential moving average crossover. It manages open positions using an ATR-based stop loss, an optional maximum percentage loss floor, a percentage-based profit target, and a dedicated management

Strategy v5 TrendMoving averages Repaints
Updated 5 months ago · None stated GitHub repository of EMA Crossover ATR Strategy v2

This SMC indicator plots major and minor order blocks along with fair value gaps on the price chart. It identifies demand and supply zones originating from ChoCh and BoS patterns, with separate main, sub, and all-zone categories. Users can toggle visibility an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of Smart Money Concept [TradingFinder] Major Minor OB + FVG (SMC)

HMD Stochastic

by Web3Degenerate
2 stars

This indicator plots the Stochastic oscillator with %K in blue and %D in orange lines. It calculates the values using SMA on the Stoch function based on user inputs for %K length, %K smoothing, and %D smoothing. Long signals trigger on bullish engulfing candle

Indicator v5 Oscillators & momentumCandlestick patterns
Updated 2 years ago · None stated GitHub repository of HMD Stochastic

Capital Flow & USDT

by morindok
1 stars

This indicator overlays a capital-flow table on the price chart. It watches up to twenty user-chosen symbols, defaulting to major Binance USDT pairs, and relates them to the current chart symbol. A volume-average length and a flow-sensitivity threshold control

Indicator v5 VolumeScreeners & dashboards
Updated 7 weeks ago · None stated GitHub repository of Capital Flow & USDT

Fable Bull HTF v1

by nishpa800
1 stars

The first release of a bullish-side detection indicator for higher timeframe charts. It marks numbered signals on the price chart from relative volume tiers, a standard deviation displacement test, a VWMA with ATR Supertrend latch, pocket pivots and fair value

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Fable Bull HTF v1
1 stars

A Pine Script v5 indicator in a separate pane, the fourth revision of a Hurst cycle trough marker, whose title spells trough as through. The hl2 price goes through bandpass filters for cycles from 1 day to 18 years, and labels and lines are drawn where cycle l

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

RSI with Boll %B

by zhuzp98
1 stars

An oscillator shown in a separate pane. It builds an RSI centred on zero with a short default length, smooths it with an EMA, and measures how far the RSI sits from that average in standard-deviation units, similar to Bollinger %B. Dashed lines mark plus and m

Indicator v5 Oscillators & momentumMean reversion
Updated 1 year ago · None stated GitHub repository of RSI with Boll %B

MathOperator

by ricardosantos79
261 stars

This Pine Script v5 library exports named wrappers for basic arithmetic, comparison, and logical operators. It adds, subtracts, multiplies, divides, and returns the remainder of two floats, and tests equality, inequality, and greater or lesser relations, inclu

Library v5
Updated 4 years ago · None stated GitHub repository of MathOperator

AVWAP Strategy

by hasnocool
106 stars

This overlay strategy builds a smoothed price source from expanded candle and Heikin-Ashi inputs using AMA, T3, or Kaufman's adaptive moving average. The Kaufman path can adapt with a Jurik fractal dimension, and a Garman-Klass-Yang-Zhang volatility filter can

Strategy v5 Moving averagesVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of AVWAP Strategy

Session First Bar Range

by TamaraKGreen
46 stars

Session First Bar Range calculates and projects the high, low, and mid-level of the opening bar of a specified higher timeframe session. It draws range boxes directly on the price chart, along with historical ranges, statistical standard deviation levels, and

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 8 weeks ago · None stated GitHub repository of Session First Bar Range

Falling Window - Bearish

by TWODS-CAPITAL
37 stars

This indicator identifies the bearish falling window candlestick pattern, a two-candle continuation setup where a downward price gap occurs during a downtrend. It validates the pattern when the current bar's high is strictly lower than the previous bar's low u

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Falling Window - Bearish

Ruckard AndresAristizibal Joya D003 is an automated crypto trading strategy that evaluates entry and exit signals using a combination of Trend Indicator A-V2, Supertrend, and QQE Mod, alongside customizable Curie closing moving average filters. The script exec

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Ruckard AndresAristizibal Joya D003
6 stars

The script identifies time-filtered Candle Range Theory (CRT) patterns on higher-timeframe candles using New York session timing. It detects liquidity sweeps and range manipulation setups relative to specific H4 candles for user-selected models, such as 1AM, 5

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Complete CRT System (MTF v2)

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