Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 44)

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

HTF EMA

by Web3Degenerate
2 stars

This Pine Script indicator plots a higher-timeframe exponential moving average on the price chart. The script calculates the EMA using a configurable length and timeframe, then applies request.security to retrieve the value without repainting. It draws the lin

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

HTF Candles & Pivots

by itmakesyousick
2 stars

HTF Candles & Pivots is an indicator that overlays high time frame candles and pivot points on the price chart. It plots customizable candles with options for thickness, wicks, fill, history shift, and labels including day, average, and TD sequence. The script

Indicator v5 Candlestick patternsSupport & resistance
Updated 3 years ago · None stated GitHub repository of HTF Candles & Pivots

Candlestick Structure [LuxAlgo] detects multiple classic bullish and bearish candlestick patterns in the context of broader market structure. It evaluates patterns such as hammers, engulfing candles, stars, haramis, tweezers, and three-method formations agains

Indicator v5 Candlestick patternsTrend
Updated 2 days ago · Custom licence GitHub repository of Candlestick Structure [LuxAlgo]

A chart overlay that detects pivot-based chart patterns and keeps a capped registry of them, each with a target, stop and invalidation level and a confidence score filtered by a minimum value. It uses ATR, volume z-scores, a higher-timeframe reference, a lower

Indicator v5 Support & resistanceVolume
Updated 2 days ago · None stated GitHub repository of ULTIMATE Nested Matrix & MTF Projection Engine v6

BB Upper Breakout Short

by kanylbullen
1 stars

A short-only strategy that sells when price pushes a set percentage above the upper Bollinger Band. The trigger can use the candle high or the close. After entry, it places a limit take profit a set percentage below the average entry price. Band length, multip

Strategy v5 Volatility & bandsMean reversion
Updated 8 days ago · None stated GitHub repository of BB Upper Breakout Short

Market Sniper

by kasutu
1 stars

A combined chart overlay that plots EMAs of 20, 50 and 200 bars with a zone around the middle line, an Ichimoku cloud with 9, 26 and 52 bar settings, and order blocks that can show as mitigated. It also marks bullish and bearish break of structure lines, break

Indicator v5 SMC / ICT / price actionTrend
Updated 2 weeks ago · None stated GitHub repository of Market Sniper

Reload Ranger Indicator

by GreyssonEnterprises
1 stars

An indicator that looks for reversal setups inside a Fibonacci retracement zone, defaulting to 61.8 to 78.6 percent with a sweet spot level, measured from a higher timeframe. It combines W and M pattern matching with Williams %R, MACD, RSI and an OBV EMA, and

Indicator v5 Support & resistanceOscillators & momentum Repaints
Updated 3 months ago · MIT GitHub repository of Reload Ranger Indicator

Kalman Trend Levels

by tthanhvu002sgu
1 stars

Applies two Kalman filters, a short one at 50 bars and a long one at 150 by default, to closing price on the price chart. Trend turns up when the short filter is above the long one and down in the opposite case. Labels mark each turn with the close, and boxes

Indicator v5 TrendSupport & resistance
Updated 3 months ago · None stated GitHub repository of Kalman Trend Levels
1 stars

This strategy identifies breakout opportunities in Bursa Malaysia stocks using a slow EMA trend filter where price exceeds the 150-period EMA and the slow EMA is above its 150 EMA. It plots fast and slow EMAs on the price chart. Entry occurs on a new 20-day hi

Strategy v5 BreakoutMoving averages
Updated 4 months ago · None stated GitHub repository of KLSE VCP Breakout Backtest
1 stars

This strategy plots a volume-weighted moving average, a Hull moving average, and a linear regression on the price chart. It enters long when the Hull average crosses above the volume-weighted average while stochastic is above 50, on-balance volume is rising, m

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · MIT GitHub repository of Advanced Indicator Suite

Talons Supertrend + ADX

by muammeryldrm42
1 stars

A strategy that trades Supertrend direction flips when ADX is above a threshold. A flip to uptrend with strong ADX opens a long, and a flip to downtrend opens a short, one position at a time. The Supertrend line is the initial stop and the take profit is 2.5 t

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Talons Supertrend + ADX
1 stars

An indicator for four-hour charts that looks for a sharp drop followed by a slow, controlled recovery, treated as a rounded bottom, and the inverse for a rounded top. Window lengths, minimum percentage moves, a directional-bar ratio and a daily EMA direction f

Indicator v5 Mean reversionVolatility & bands
Updated 7 months ago · None stated GitHub repository of V8 Fast Rounded Bottom/Top Catcher
1 stars

Slow & Steady is a swing trading strategy that identifies trend direction using aligned EMAs of 50, 100, and 200 periods. It generates buy and sell signals when the MACD line crosses its signal line within a confirmed trend, filtered by ADX strength. Entries c

Strategy v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Slow & Steady - Swing Strategy
1 stars

The Fractal Breakout Strategy identifies key market turning points using a five-bar Williams Fractal pattern. It tracks confirmed high and low fractal levels without repainting to serve as potential breakout entry triggers. When a breakout occurs, trades are e

Strategy v5 BreakoutSupport & resistance
Updated 8 months ago · None stated GitHub repository of Fractal Breakout Strategy (FB Algo)

QQQ Gamma (7DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for QQQ (the Nasdaq-100 ETF) expiring in seven days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot dated 2026-02-04, produced offline fro

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of QQQ Gamma (7DTE)
1 stars

A small overlay indicator that tracks buy-side and sell-side liquidity as the highest high and lowest low over a lookback window. When a bar makes a new extreme, it updates a step-line level and places a BSL label above a new high or an SSL label below a new l

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · None stated GitHub repository of BSL & SSL - Liquidity Zones

4x4 Futures Ghost Matrix

by knectardev
1 stars

This indicator generates intraday trading signals by combining dual-sigma standard deviation bands, Heikin Ashi candle vectors, and a four-bar confluence score. It triggers long and short signals during defined trading sessions using either mean-reversion boun

Indicator v5 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of 4x4 Futures Ghost Matrix
1 stars

This indicator calculates custom moving average convergence divergence values using selectable calculation methods, fast and slow lengths, source prices, and signal smoothing types. It plots an oscillator on the price chart with customizable vertical placement

Indicator v5 Oscillators & momentumMoving averages Repaints
Updated 9 months ago · None stated GitHub repository of MACD-X Overlay, More Than MACD
1 stars

Despite its name, this strategy does not build a volume profile. It flags bars where volume exceeds a moving average of volume times a threshold, then goes long when the close is also above a 20-period simple moving average and the close of the oldest bar in t

Strategy v5 VolumeTrend
Updated 1 year ago · None stated GitHub repository of Volume Profile Strategy

TSI Two

by munlit
1 stars

A separate-pane True Strength Index indicator with fast and slow parameter sets, selectable by a speed input. It offers colour themes, optional overbought and oversold lines, crossing markers and a middle line, and colour inputs for the line and signal. Separa

Indicator v5 Oscillators & momentum
Updated 1 year ago · None stated GitHub repository of TSI Two
1 stars

A strategy that mixes a Stochastic Momentum Index, an EMA pair and MACD histogram conditions. In the visible code it opens long trades when the MACD histogram crosses above zero with price over a 20-period EMA, and closes them on the opposite cross, with stop

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of SMI-MA Short Strategy

Hello world

by fiji-solutions
1 stars

This indicator plots the closing price of the asset. It is a basic example written in Pine Script v5 that displays the close value. The plot is configured to appear in a separate pane. No input settings are available and no trading signals or calculations are

Indicator v5
Updated 2 years ago · None stated GitHub repository of Hello world
1 stars

A separate-pane histogram that shows a fast trend above zero and a slow trend below zero, each as colored bars. The fast trend uses 21, 55 and 89 period simple averages and the slow trend uses 3, 8 and 20 period averages. Green means a bullish stack, yellow a

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of Trend Histogram (Fast and Slow)

Super Trend + MACD

by akash-yellgetti
1 stars

A strategy script that combines a custom ATR-based Supertrend calculation with MACD line and signal crossovers. It draws green triangles for MACD bullish crosses, red triangles for bearish crosses, and separate triangles for the Supertrend direction on the pri

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Super Trend + MACD

DMI & ADX

by JohnsonHsiao
1 stars

This indicator computes and plots the Directional Movement Index and Average Directional Index using Pine Script's built-in DMI function. It renders the positive directional indicator (+DI), negative directional indicator (-DI), and the ADX line in a separate

Indicator v5 TrendOscillators & momentum
Updated 3 years ago · None stated GitHub repository of DMI & ADX

SAMA

by rajatjpatel
1 stars

A smoothed moving average drawn on the price chart. Before averaging, each price is clamped inside a narrow standard deviation channel built around a short weighted average, which limits the effect of sharp spikes. The clamped price then goes through two weigh

Indicator v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of SAMA
1 stars

This indicator is a Chandelier Exit style trailing stop, similar to a Supertrend, calculated from Heikin Ashi candles rather than the current chart candles. A long stop trails below the highest recent close and a short stop trails above the lowest, each offset

Indicator v5 TrendVolatility & bands
Updated 4 years ago · None stated GitHub repository of Chandelier Exit Heikin Ashi Signal
575 stars

This indicator marks ICT liquidity voids on the price chart. It requests open, high, low, close, time, and ATR from a chosen timeframe with lookahead enabled, then draws bullish and bearish voids as boxes and lines. The source can be the high and low, an OTE l

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Void Multi-timeframe
330 stars

This strategy plots a multi-timeframe exponential moving average on the price chart while evaluating momentum using the Relative Strength Index. It enters long positions when price exceeds the moving average by at least one percent and RSI crosses above the ov

Strategy v5 Oscillators & momentumMoving averages
Updated 2 months ago · None stated GitHub repository of RSI + 1200 Strategy [Alose]

Vol Cone

by namuan
318 stars

This overlay indicator estimates annualized realized volatility from an exponential moving average of squared log returns. It plots lagged upper and lower price bounds and, on the last bar, draws a forward cone of projected prices using an interest-rate drift

Indicator v5 Volatility & bands
Updated 2 months ago · MIT GitHub repository of Vol Cone

ColorExtension

by ricardosantos79
261 stars

This utility library provides color conversion and manipulation functions for Pine Script v5 scripts. It calculates RGB color values from Hue, Saturation, Lightness, and transparency inputs, validating ranges and returning native color objects. It also include

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

Donald SPX - Options Trading is an indicator designed to assist SPX index option traders by tracking session benchmarks and multi-timeframe moving average data. It calculates a 200-period weighted moving average (WMA) and requests multi-timeframe bar data from

Indicator v5 Moving averagesScreeners & dashboards Repaints
Updated 7 weeks ago · None stated GitHub repository of Donald SPX - Options Trading

ADX Histogram

by harryguiacorn
220 stars

This indicator calculates and displays the Average Directional Index (ADX) as a column histogram in a separate pane. It evaluates market trend strength by calculating directional movement metrics based on specified smoothing and DI length inputs. When the ADX

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Histogram

5 Minute EMA Strategy

by hasnocool
106 stars

5 Minute EMA Strategy is a trend-following system designed for short timeframes that executes trades around moving average crossovers. It plots fast and slow moving averages (supporting EMA, SMA, RMA, or WMA) directly on the price chart. Users can enable an op

Strategy v5 TrendMoving averages Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 5 Minute EMA Strategy
92 stars

This indicator plots five moving averages of a chosen source on the price chart, defaulting to EMA lengths 10, 20, 30, 40 and 50. The user can switch the average type to SMA, WMA or HMA and recolor each line. Wide translucent glows sit under the lines, and sof

Indicator v5 TrendMoving averages
Updated 2 months ago · Custom licence GitHub repository of Moon Dev Rainbow MA Ribbon 10-50

Color Picker Showcase

by be-thomas
65 stars

Color Picker Showcase is a basic demonstration script from the TradingView Pine Script documentation illustrating dynamic color assignment for plots. It plots the closing price in a separate pane, applying conditional logic to change the line color based on ca

Indicator v5
Updated 6 days ago · GPL-3.0 GitHub repository of Color Picker Showcase

Power Of Index with Trendline Pivots, EMA, and RSI overlays Smart Money Concepts market structure analysis directly on the price chart. It identifies internal and swing market structure shifts, such as Break of Structure and Change of Character patterns. The s

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints

V1 Binancash - Futures Strategy 1M Candles is an intraday trading strategy designed for 1-minute cryptocurrency futures charts. It calculates dynamic support and resistance levels using pivot highs and lows, combined with a custom smoothed trend filter and a 3

Strategy v5 TrendSupport & resistance Repaints
Updated 2 years ago · None stated GitHub repository of V1 Binancash - Futures Strategy 1M Candles
42 stars

This indicator draws a doubled numbered Square of Nine from a user-selected high or low. It fills cells by a chosen price step across several rotations and can show bar counts from that pivot. Pivot highs and lows that form after the anchor are marked on the c

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of Doubled Numbered So9 Progression | Regression

30 min Pivot

by ChartsLector
41 stars

30 min Pivot is an overlay indicator that plots an exponential moving average (EMA) calculated from a specified timeframe (default 30 minutes) and flags specific multi-bar candle setups. It checks the relative distance between price and the higher-timeframe EM

Indicator v5 Moving averagesCandlestick patterns
Updated 4 days ago · None stated GitHub repository of 30 min Pivot

Average Day Range

by TWODS-CAPITAL
37 stars

The Average Day Range indicator calculates market volatility by taking the difference between the simple moving averages of high and low prices over a specified lookback period. Plotted in a separate pane, it gives traders a measure of average price movement t

Indicator v5 Volatility & bands
Updated 3 years ago · MIT GitHub repository of Average Day Range

HG Strat

by benso87
24 stars

This strategy implements an ADX trend-following system with moving average pullbacks. It identifies strong market momentum when the Average Directional Index exceeds a chosen threshold, then monitors price retests of an exponential or simple moving average. Lo

Strategy v5 TrendOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of HG Strat

This indicator modifies Perry Kaufman's Adaptive Moving Average by integrating John Ehlers' dominant cycle detection. It filters the selected price source with a high-pass filter and a super smoother, then evaluates Pearson correlation across multiple lags to

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Perry J. Kaufman - Adaptive Moving Average - Modified

Divergenced B004

by ruckard
13 stars

Divergenced B004 is a Pine Script strategy that plots on the price chart and looks for divergences in the Squeeze Momentum Indicator. It shorts when a green-section squeeze value falls while price rises, and longs when a red-section squeeze value rises while p

Strategy v5 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Divergenced B004

Parabolic SAR - Eterna

by EternaHybridExchange
9 stars

Calculates the Parabolic Stop and Reverse (SAR) indicator paired with an optional Exponential Moving Average (EMA) trend filter. A long position is triggered when price crosses above the SAR while remaining above the trend EMA. A short position is entered when

Strategy v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of Parabolic SAR - Eterna
7 stars

This strategy generates trading signals based on a triple confluence of Exponential Moving Averages (EMA), the Relative Strength Index (RSI), and MACD histogram momentum. Long entries require a fast EMA above a slow EMA, price above the fast EMA, RSI between 5

Strategy v5 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Triple Confluence (EMA+RSI+MACD)

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