Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 7)

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

Backtester For Anything

by theupslidedown
2 stars

This strategy serves as a backtesting template for any trading system. It accepts external signals to trigger long or short entries and exits, with optional filters based on EMA and ADX indicators to refine conditions. Time-based restrictions limit trading to

Strategy v5 Screeners & dashboardsTrend Repaints
Updated 3 years ago · None stated GitHub repository of Backtester For Anything

24hr High/Low/Mid

by codeGetFish
2 stars

This indicator calculates and plots rolling high, low, and midpoint levels over 24-hour, 48-hour, and 7-day lookback periods directly on the price chart. It projects standard Fibonacci retracement levels based on the 7-day range and detects doji candlestick pa

Indicator v5 Support & resistanceCandlestick patterns
Updated 3 years ago · None stated GitHub repository of 24hr High/Low/Mid

Anchored VWAP

by MuMuLLC
2 stars

This indicator plots an anchored volume-weighted average price on the price chart. It accumulates the typical price (HLC3) weighted by volume and resets the calculation at the start of a session, week, month, or year. It also plots bands one, two, and three st

Indicator v5 VolumeVolatility & bands Repaints
Updated 3 years ago · MIT GitHub repository of Anchored VWAP

LS Volatility Index

by andreperez
2 stars

The LS Volatility Index measures price volatility relative to a customizable moving average. It computes the percentage distance of the current price from the chosen source (such as close or open) and normalizes this value by historical volatility, producing a

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · MPL-2.0 GitHub repository of LS Volatility Index

Signal Moving Average

by ctkqiang
2 stars

The Signal Moving Average indicator calculates an adaptive trend line weighted by the R-squared correlation between price and bar index over a configurable period. When the correlation exceeds a fixed threshold, the indicator blends a simple moving average wit

Indicator v5 TrendMoving averages
Updated 3 years ago · Apache-2.0 GitHub repository of Signal Moving Average
2 stars

This indicator plots buy and sell labels on the price chart. It calculates a WaveTrend-style oscillator from exponential moving averages, then requires a cross to agree with the slope of a Jurik moving average built on a blended close, VWAP, and OHLC source. A

Indicator v5 TrendOscillators & momentum
Updated 4 years ago · None stated GitHub repository of Wave Up Indicator - Pro

Strategy

by seanhung07
2 stars

This script provides a scaffolding template for Pine Script strategies. It establishes framework logic for trade direction toggles, custom backtest date ranges, and percentage-based stop-loss and take-profit calculations. Long and short entry triggers are left

Strategy v5
Updated 4 years ago · None stated GitHub repository of Strategy

RSI Line

by minaecer
2 stars

The RSI Line indicator plots a histogram in a separate pane based on the rate of change (ROC) of the chosen source, such as close. It applies two RMA smoothing passes with lengths rhigh and rlow, then final smoothing with tlen. The histogram color indicates mo

Indicator v5 Oscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of RSI Line

Chart Champions Sessions

by ClimberMel
2 stars

The Chart Champions Sessions indicator plots small square markers on the price chart to mark the start and end of major market sessions. It covers Asia, London, New York, close, and specific ASX pre-market and open periods. A top banner dynamically changes col

Indicator v5 Sessions & time
Updated 4 years ago · MIT GitHub repository of Chart Champions Sessions

Tesla Coil

by CounterPly
2 stars

Tesla Coil is a market cycle oscillator based on digital signal processing concepts from John Ehlers, including Instantaneous Frequency Measurement and In-Phase and Quadrature principles. It treats price movements as wave frequencies to track cycle periods dyn

Indicator v5 Oscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Tesla Coil

3xEMA 1min Startegy

by DaniilOkrug
2 stars

This strategy identifies entry setups on short timeframes by combining moving average trend filters with Bill Williams fractal breakouts. It tracks multi-bar high and low fractals to establish market structure, waiting for confirmed fractal breaks in the direc

Strategy v5 Moving averagesSupport & resistance
Updated 4 years ago · MIT GitHub repository of 3xEMA 1min Startegy
1 stars

A separate-pane indicator that plots a 0 to 100 market stress score. By default it fetches a published score through an HTTP request; alternatively the user can type values by hand, or it falls back to a price-based proxy built from realized volatility, drawdo

Indicator v5 Volatility & bandsScreeners & dashboards
Updated yesterday · None stated GitHub repository of SFC Stress Gauge (lite)

NSE Swing v6 Pro UI

by Tilak004
1 stars

A trend-following swing strategy for Indian stocks. Longs need an EMA 21, 50 and 200 alignment with rising slopes, then enter on a pullback to the 21 EMA or a breakout above a recent swing high, filtered by ADX, volume against its average, RSI and an optional

Strategy v5 TrendBreakout
Updated yesterday · None stated GitHub repository of NSE Swing v6 Pro UI

FVG TWB RSI OB LP UT SSL Suite

by Alireza-Kamran
1 stars

A multi-tool overlay that combines fair value gaps, trendlines with breaks, RSI background shading, order blocks, liquidity pool zones, a UT Bot ATR trailing signal and an SSL element on one chart. Liquidity pools need a set number of contacts, bar gaps and co

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 days ago · MIT GitHub repository of FVG TWB RSI OB LP UT SSL Suite

BB StochRSI ADX Scalper

by surendra2304
1 stars

A mean reversion strategy that buys when price dips below the lower Bollinger Band while Stochastic RSI is oversold and crosses up, and sells short on the mirror setup at the upper band. Entries are skipped when ADX is above a maximum, to avoid strong trends.

Strategy v5 Mean reversionScalping
Updated 2 days ago · None stated GitHub repository of BB StochRSI ADX Scalper

A price-chart indicator that plots a 200-length double exponential moving average and colours it by trend strength. The line turns green when price is above it and ADX is at or above a threshold, red when price is below it, and grey when ADX is weak. ADX and d

Indicator v5 TrendMoving averages
Updated 3 days ago · MIT GitHub repository of DEMA 200 and ADX Combined Indicator

Ichimoku Cloud

by hongdangcs
1 stars

Plots the standard Ichimoku Cloud on the price chart: conversion line, base line, leading spans A and B and lagging span, using Donchian midpoints with default lengths of 9, 26 and 52. Lengths and displacement can be adjusted. The script also holds a group of

Indicator v5 TrendSupport & resistance
Updated 4 days ago · None stated GitHub repository of Ichimoku Cloud

Liquidity Sweeps MTF

by Metaprogramlabs
1 stars

The indicator identifies multi-timeframe swing highs and swing lows to track liquidity levels across different chart horizons. When price wicks through a higher timeframe level and closes back inside, it plots a sweep line and label directly on the price chart

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 days ago · Custom licence GitHub repository of Liquidity Sweeps MTF

Multi-Strategy Bot

by eliRap1
1 stars

This Pine Script v5 indicator overlays multiple technical strategies on the price chart to generate buy and exit signals. It scores confluence across SuperTrend direction flips, momentum (EMA, RSI, ROC), Bollinger Band mean reversion, breakout volume, and Stoc

Indicator v5 TrendOscillators & momentum
Updated 5 days ago · None stated GitHub repository of Multi-Strategy Bot

Trend Mastery

by LemonPower21
1 stars

A long-only trend strategy using a 50-period and a 200-period EMA with an RSI filter. It buys when price crosses above the fast EMA or the fast EMA crosses above the slow one, provided price is above the slow EMA and RSI is above a set level. It closes when th

Strategy v5 TrendMoving averages
Updated 5 days ago · None stated GitHub repository of Trend Mastery

NSE Algo Trading System v1

by ArunTelegramBot
1 stars

A strategy for Indian stocks that lets the user choose one of five rule sets: SuperTrend with an EMA, an EMA crossover, RSI with MACD, a Bollinger Band squeeze, or a VWAP pullback. A time window in UTC limits trading to exchange hours. Risk management sizes by

Strategy v5 TrendOscillators & momentum
Updated 10 days ago · None stated GitHub repository of NSE Algo Trading System v1

Multi-Strategy Bot

by edwinlai2058
1 stars

A Pine v5 strategy, with Chinese input labels, that lets the user pick one of four setups: a short after an RSI overbought exhaustion, a long after an oversold reading, a Bollinger Band reversion, or a VWAP breakout with an EMA. Exits use three take-profit sta

Strategy v5 Mean reversionOscillators & momentum
Updated 12 days ago · None stated GitHub repository of Multi-Strategy Bot

ATR Expansion with Trend

by quantxaashish
1 stars

This indicator identifies potential bullish breakout opportunities by detecting volatility expansions in the direction of an established trend. It calculates the Average True Range (ATR) and determines if volatility is expanding by comparing ATR to its moving

Indicator v5 TrendVolatility & bands
Updated 13 days ago · MIT GitHub repository of ATR Expansion with Trend

Combo

by pouyA-png
1 stars

This strategy executes opening range breakout trades during regular trading hours. It calculates a 15-minute opening range high and low alongside a 20-period EMA and a 14-period ATR. Long entries trigger when price crosses above the opening range high while hi

Strategy v5 BreakoutSessions & time
Updated 2 weeks ago · None stated GitHub repository of Combo

Opening range breakout

by yawningmonsoon
1 stars

This strategy builds an opening-range high and low during a user-defined session, then waits until that session ends. A close above the range enters long and a close below it enters short. The long exit uses the range low as the stop and a limit one range-widt

Strategy v5 BreakoutSessions & time Repaints
Updated 2 weeks ago · MIT GitHub repository of Opening range breakout
1 stars

A long-entry strategy for the price chart that scores twelve conditions: RSI, MACD histogram, an EMA stack, SuperTrend, Bollinger position, ATR volatility, VWAP, volume ratio, stochastic, ADX, Ichimoku cloud and MFI. A buy needs at least nine to pass. Inputs s

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · None stated GitHub repository of 12-Indicator Webhook Trigger

Flux Lab SMC

by darup67
1 stars

A smart money concepts overlay that marks swing-based break of structure and change of character, order blocks that are removed once broken, fair value gaps above a minimum ATR size, equal highs and lows within a tolerance, and a premium and discount equilibri

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · MIT GitHub repository of Flux Lab SMC

Draws market structure breaks and order block boxes on the price chart, based on a zigzag of swing points. Bullish and bearish order blocks and breaker blocks appear as coloured boxes that are removed once price breaks them. Settings set the zigzag length, the

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · None stated GitHub repository of Market Structure Break & Order Block (fixed)

RSI Oversold Reversion

by monounsaturated
1 stars

This strategy calculates the relative strength index of the closing price and enters a long position when the RSI crosses above a user-set oversold level. It exits that long with a fixed absolute stop price and a fixed absolute limit price. The main settings c

Strategy v5 Oscillators & momentumMean reversion
Updated 4 weeks ago · MIT GitHub repository of RSI Oversold Reversion
1 stars

Fractal Model Professional is an overlay indicator that looks for higher-timeframe reversal sequences. It plots the previous higher-timeframe high and low, marks sweeps when price trades beyond a level and closes back inside, flags a reversal candle as C2, and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of Fractal Model Professional
1 stars

Identifies stop hunt sweeps where price wicks past recent pivot highs, pivot lows, or previous day high and low levels before closing back inside the range. It plots sweep markers, connecting level lines, and previous day levels directly on the price chart, wi

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of Liquidity Sweep Pro

Daily FVG Draw Bias

by mengxuan-finlab
1 stars

Tracks the latest unfilled daily fair value gap above and below price and scores each by gap size relative to its distance from the daily close, to suggest which side price may be drawn towards. A minimum gap size is set as a fraction of daily ATR, and an opti

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 4 weeks ago · None stated GitHub repository of Daily FVG Draw Bias
1 stars

SMC Swing 1H/4H Signal is an overlay indicator that applies smart money concepts to swing charts. It marks swing highs and lows using a configurable bar count, draws break of structure and change of character lines, and shades fair value gaps above a minimum s

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · None stated GitHub repository of SMC Swing 1H/4H Signal

TradeGuard Trailing Floor

by gnitro215-beep
1 stars

A Pine v5 indicator that plots a trailing drawdown floor under the price high-water mark, aimed at futures and prop-firm style limits. A dollar drawdown buffer is converted to price points using the dollar value per point and the number of contracts. The floor

Indicator v5 Support & resistance
Updated 4 weeks ago · MIT GitHub repository of TradeGuard Trailing Floor
1 stars

A strategy for 15-minute Bitcoin charts that opens a trade when several conditions agree: fast and slow EMA alignment, RSI inside a set band, MACD line and histogram direction, volume above a fraction of its average, price between the Bollinger basis and the n

Strategy v5 TrendOscillators & momentum
Updated 4 weeks ago · None stated GitHub repository of BTC 15M Tight Stop Strategy
1 stars

A strategy for US index, energy, metal, agriculture and livestock futures that reads Commitments of Traders data through a TradingView library. It builds a commercial positioning index and combines it with an RSI to decide long and short entries. Exits can use

Strategy v5 Oscillators & momentum
Updated 5 weeks ago · None stated GitHub repository of COT Strategy - Commodities & Index Futures
1 stars

Calculates an Average True Range trailing stop directly on the price chart. It measures true range smoothed by a simple moving average to align with MT5 ATR semantics, multiplied by a user-defined factor. The stop ratchets upward during uptrends and downward d

Indicator v5 TrendVolatility & bands
Updated 5 weeks ago · MIT GitHub repository of ATR Trailing Stop (demo)

Bot v13 Signal Exporter

by saniroy3311-spec
1 stars

A helper indicator in a separate pane that exports entry-signal flags so an external Python bot can be checked bar by bar. Using ADX regimes, EMA 50 against EMA 200, directional indicators, an ATR and volume filter and a candle-body test, it flags trend and ra

Indicator v5
Updated 5 weeks ago · None stated GitHub repository of Bot v13 Signal Exporter

RSI Oversold Recovery

by vamseeachanta
1 stars

Tracks RSI recovery from oversold territory on the price chart. RSI is calculated on the average of open, high, low and close, with a moving average of the RSI. When RSI drops below the oversold level the script shows a watch label, marks an alert after RSI cr

Indicator v5 Oscillators & momentumMean reversion
Updated 5 weeks ago · MIT GitHub repository of RSI Oversold Recovery
1 stars

This indicator plots Malaysian support and resistance levels on the price chart. It finds swing highs and lows, then marks those prices as support or resistance and labels each level Fresh, Unfresh, or Flip after retests and breaks. Separate major swing settin

Indicator v5 Support & resistance
Updated 6 weeks ago · None stated GitHub repository of Layer 1: Malaysian SNR Framework

Composite Market Bias

by mrme000m
1 stars

Composite Market Bias is a separate-pane indicator that scores bullish and bearish conditions from RSI, fast versus slow EMA, MACD histogram, Bollinger Band position, and price versus a 50-period EMA. It plots the resulting bias score with RSI, EMA trend, MACD

Indicator v5 Oscillators & momentumMoving averages
Updated 7 weeks ago · None stated GitHub repository of Composite Market Bias
1 stars

An oscillator in a separate pane that estimates the Hurst exponent with rescaled range analysis over three window sizes, with optional bias correction and smoothing. Hysteresis around trend and mean-reversion thresholds classifies the market as trending, mean-

Indicator v5 Oscillators & momentumMean reversion
Updated 7 weeks ago · MPL-2.0 GitHub repository of AHM v2 Adaptive Hurst Regime

AQR TSMOM Pro Strategy

by cagriKarakulak
1 stars

A Pine v5 strategy that applies time-series momentum, taking the sign of past returns over about one, three and twelve months and averaging them into a long or short score. Position size is scaled to a target annual volatility with a maximum leverage cap, with

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · MIT GitHub repository of AQR TSMOM Pro Strategy

1 Min Scalp

by zeddyokaka230-del
1 stars

An overlay indicator for short-term charts that plots a fast and a slow EMA, 9 and 21 by default. A buy label appears when the fast EMA crosses above the slow EMA and RSI is above 50 or below the oversold level. A sell label appears on the opposite cross with

Indicator v5 ScalpingMoving averages
Updated 7 weeks ago · None stated GitHub repository of 1 Min Scalp

A simple strategy that goes long when a 20-period EMA crosses above a 50-period EMA and short on the opposite cross. Each entry gets a stop one ATR away and a take profit set at a risk to reward multiple of the ATR, adjustable by one input. Position size is a

Strategy v5 Moving averagesTrend
Updated 7 weeks ago · MIT GitHub repository of Lyzer Baseline Control - Simple EMA Cross

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