Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 15)

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

PVA Volume

by soko8
4 stars

PVA Volume is a custom volume histogram indicator designed for Price Volume Analysis. It calculates a 10-period average volume and tracks the peak volume-to-price spread over the past 10 bars. The script colors the volume columns to reflect trading activity: l

Indicator v5 Volume
Updated 9 months ago · None stated GitHub repository of PVA Volume
4 stars

This indicator calculates a standard Relative Strength Index (RSI) and applies dynamic color schemes and gradient functions to demonstrate custom visual formatting in Pine Script. Users can select preset color palettes like Red-Green, Blue-Orange, or Heat Map,

Indicator v5 Oscillators & momentum
Updated 11 months ago · Custom licence GitHub repository of Color Themes & Gradients [Lab]

Chande Kroll Stop

by Hugs-4-Bugs
4 stars

This indicator plots the Chande Kroll Stop on the price chart. It builds a long stop from the lowest low over a lookback plus a multiple of average true range, then takes the lowest of that series over a second window. It builds a short stop from the highest h

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Chande Kroll Stop

FluidTrades - SMC Lite

by ShabbirHasan1
4 stars

FluidTrades - SMC Lite identifies Smart Money Concepts (SMC) market structure elements directly on the main price chart. It plots supply and demand zones as styled boxes, along with optional zig-zag structure lines and price action labels such as higher highs,

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · Custom licence GitHub repository of FluidTrades - SMC Lite

VT-Lite

by algoboy-kevin
4 stars

VT-Lite is a Pine Script v5 mean-reversion strategy that draws in a separate pane. It sizes equity-percent entries from a short-term EMA and ATR band distance, with a volatility EMA threshold and a choice of close, low, or ATR-band source. It can add reentries

Strategy v5 Mean reversionVolatility & bands
Updated 2 years ago · None stated GitHub repository of VT-Lite

This strategy plots Ichimoku conversion and base lines on the price chart using Donchian midpoints. It detects conversion-base crossovers and classifies the cross, the close, and a 26-bar price lag relative to the displaced cloud. Inputs enable or disable long

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Davids Ichimoku Conversion Base Break

AYDIN-FIBO V2

by Kalumur
4 stars

This indicator plots three EMAs with customizable lengths, narrow and wide Bollinger Bands, ALMA with adjustable offset and sigma, and multiple Fibonacci retracement levels on the price chart. It generates buy and sell signals on EMA5 crossing EMA13. Main sett

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of AYDIN-FIBO V2
4 stars

This strategy calculates a target position size based on exponentially weighted moving average volatility forecasts. It plots the current position size, target position size, and a configurable trade buffer region in a separate indicator pane. When the current

Strategy v5 Volatility & bands
Updated 2 years ago · None stated GitHub repository of Vol-Targeted Position Size Strategy

This indicator combines three Exponential Moving Averages (EMAs), imbalance gap detection, and a volume profile on the main price chart. It plots customizable short, medium, and long-term EMAs while highlighting Fair Value Gaps (FVG) and Opening Gaps (OG). Add

Indicator v5 Moving averagesSMC / ICT / price action
Updated 2 years ago · None stated GitHub repository of Imbalance + 3EMA + Volume Profile

This strategy combines two Supertrend indicators with a MACD histogram filter to identify trend-following entries on the price chart. Long entries trigger when both Supertrend lines are bullish and the MACD histogram is positive. Short entries execute when bot

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Dual-Supertrend with MACD - Strategy [presentTrading]
4 stars

Auto Trendline automatically identifies fractal pivot points on the price chart and connects them to draw trendlines. It scans for higher highs, lower highs, higher lows, and lower lows over a customizable fractal period. Users can configure colors and visibil

Indicator v5 Support & resistanceTrend
Updated 3 years ago · None stated GitHub repository of Auto Trendline [DojiEmoji]

Bollinger Band

by might-tree
4 stars

This indicator calculates upper and lower Bollinger Bands using a Simple Moving Average and standard deviation. It plots both bands with a colored background fill between them, alongside the closing price in a separate indicator pane. Users can customize the c

Indicator v5 Volatility & bandsMoving averages
Updated 3 years ago · None stated GitHub repository of Bollinger Band
4 stars

This indicator plots standard pivot points on the price chart using prior high, low, and close. It supports Traditional, Fibonacci, Woodie, Classic, Demark, and Camarilla calculations and can show daily, weekly, and monthly levels together. Users choose how ma

Indicator v5 Support & resistance Repaints
Updated 4 years ago · None stated GitHub repository of Pivot Points Standard

FTX Premium Indicator

by blenessy
4 stars

The FTX Premium Indicator calculates and plots the relative price spread between cryptocurrency futures and spot contracts in a separate pane. It compares perpetual or dated contracts against spot markets and can normalize the difference into an annualized per

Indicator v5 Moving averagesVolatility & bands
Updated 4 years ago · MIT GitHub repository of FTX Premium Indicator

Snag - Makson

by dearvn
4 stars

The script is a price chart overlay indicator. It calculates a five period weighted moving average of close prices. Long signals trigger on crossovers from below the EMA combined with upward price action and trend continuation. Short signals trigger on crossov

Indicator v5 TrendMoving averages Repaints
Updated 4 years ago · None stated GitHub repository of Snag - Makson

EMA_v1

by aofwittawat
4 stars

This indicator plots an exponential moving average on the price chart and colors it green when the close is above the average and red when it is below. It marks a long triangle when price flips from below the average to above it, and a short triangle on the op

Indicator v5 TrendMoving averages
Updated 4 years ago · None stated GitHub repository of EMA_v1

AT+T3

by gocaman
3 stars

AT+T3 is a TradingView Pine Script indicator that overlays the T3 moving average (with Fibonacci variant) and AlphaTrend on price charts for BIST stocks. T3 uses Tim Tillson's smoothing formula with adjustable length and volume factor to produce trend lines th

Indicator v5 TrendVolatility & bands Repaints
Updated 2 days ago · None stated GitHub repository of AT+T3

RSI Mean Reversion

by GifariKemal
3 stars

This strategy plots entry signals, stop loss, take profit levels, and an information panel directly on the price chart. It combines a relative strength index mean reversion model with ATR percentile thresholds to filter trades based on volatility conditions. T

Strategy v5 Oscillators & momentumVolatility & bands
Updated 5 days ago · MIT GitHub repository of RSI Mean Reversion

PCA Risk Indicator

by jash-git
3 stars

The PCA Risk Indicator aggregates multiple technical momentum and trend indicators—including WaveTrend, Heikin Ashi Count, and Aroon—into a consolidated Principal Component Analysis (PCA) metric. It evaluates underlying market risk by standardizing individual

Indicator v5 Oscillators & momentumTrend Repaints
Updated 4 weeks ago · None stated GitHub repository of PCA Risk Indicator

AI Bot - SMC Advanced

by thanhcong1211
3 stars

This overlay indicator marks smart-money structure on the price chart. It stores recent confirmed swing highs and lows and labels the structure bullish, bearish, or ranging from higher highs and lows or lower highs and lows. It marks a bullish or bearish order

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of AI Bot - SMC Advanced

Mc War Ten + EMA

by tuanmcwar
3 stars

This indicator plots three exponential moving averages directly on the price chart using default lengths of 34, 89, and 200. Alongside the moving averages, it renders on-chart watermark tables displaying a custom title, subtitle, ticker symbol, timeframe, and

Indicator v5 Moving averagesTrend
Updated 4 months ago · None stated GitHub repository of Mc War Ten + EMA

MTF Confluence Dashboard

by WiseManAlgo
3 stars

This indicator calculates a multi-timeframe trend and momentum score across five customizable timeframes for up to three symbols using an EMA and RSI dual-vote system. It displays an on-chart dashboard table summarizing individual timeframe states, weighted ag

Indicator v5 Screeners & dashboardsTrend
Updated 4 months ago · None stated GitHub repository of MTF Confluence Dashboard

AI Debugging Demo

by monch1962
3 stars

This indicator is a teaching example of common Pine Script mistakes and corrected patterns. It calculates a rate of change with a zero-price guard, a simple moving average with an early-bar index check, and sample array operations. Inputs set the calculation l

Indicator v5
Updated 7 months ago · None stated GitHub repository of AI Debugging Demo
3 stars

Donchian Channel Breakout is a Pine Script v5 strategy drawn on the price chart. It enters long when close crosses above the previous upper Donchian band and short when close crosses below the previous lower band, reversing with the opposite signal. An ATR tra

Strategy v5 BreakoutVolatility & bands
Updated 7 months ago · MIT GitHub repository of Donchian Channel Breakout
3 stars

ETH Momentum Breakout is a momentum-based strategy overlay for crypto trading. It identifies volatility compression by checking when Bollinger Bands fall within Keltner Channels for a minimum number of bars. It triggers breakout orders when price breaks out be

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of ETH Momentum Breakout

The Judas Indicator

by regardhodler
3 stars

The Judas Indicator strategy calculates a multi-factor composite score combining Volume Profile High Volume Nodes, Cumulative Volume Delta (CVD), pivot proximity, volume absorption, order imbalance, and higher-timeframe trend EMAs. It triggers trade entries wh

Strategy v5 TrendVolume
Updated 8 months ago · None stated GitHub repository of The Judas Indicator

BTMM Asian Range

by jcortes254
3 stars

This indicator tracks and visualizes session ranges based on the Beat The Market Maker (BTMM) trading methodology directly on the price chart. It defines and draws session boxes for Asian accumulation, London manipulation, and New York distribution phases. It

Indicator v5 Sessions & timeSupport & resistance
Updated 1 year ago · None stated GitHub repository of BTMM Asian Range

ATR-SB Algo Strategy

by TheMikerik
3 stars

This strategy plots an ATR trailing trend line on the price chart, built from each close and a risk-scaled average true range. A close crossing that line marks a buy or sell location. Optional drawing includes a colored trend line, a fill between price and the

Strategy v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of ATR-SB Algo Strategy

FVG and MSB

by HelloMoto069
3 stars

This indicator identifies and plots Fair Value Gaps (FVG) and Market Structure Breaks (MSB) directly on the price chart. Fair Value Gaps are drawn using colored boxes that can be extended across bars and filtered with an automatic volatility threshold or set t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of FVG and MSB

This strategy plots Fibonacci retracement levels from a rolling high-low range and trades long only on the price chart. It enters when price is above the first Fibonacci level, volume exceeds its moving average, and price is above a simple moving average. It c

Strategy v5 TrendVolatility & bands
Updated 1 year ago · MIT GitHub repository of Volume + Fibonacci + Trend + ATR Strategy with 1% TP

200DMA Entry

by FinDeckDao
3 stars

This strategy plots a 200-period simple moving average on the price chart and opens a long position when the previous bar’s close crosses above that average. Each entry uses one percent of account equity. It closes the position when price reaches 2.5 times the

Strategy v5 TrendMoving averages Repaints
Updated 1 year ago · MIT GitHub repository of 200DMA Entry

EMA Lib

by augustoerni
3 stars

EMA Lib is a Pine Script v5 library that provides a custom exponential moving average calculation function. The library exports a single function that takes a period length parameter and computes an exponential moving average on close prices. To initialize the

Library v5
Updated 2 years ago · None stated GitHub repository of EMA Lib
3 stars

This strategy combines five selectable mean-reversion and swing trading sub-strategies into a unified system. It generates entry signals based on conditions like Internal Bar Strength drops, consecutive lower closes into Tuesday, multi-day channel breakdowns,

Strategy v5 Mean reversionTrend
Updated 2 years ago · MIT GitHub repository of Mean Reversal Portfolio
3 stars

This indicator estimates how many bars typically pass before a custom skew measure falls back below its exponential moving average. It builds the skew from smoothed upside and downside true-range deviations, then applies five fixed EMA lengths from 2 to 110. O

Indicator v5 Mean reversionMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Average Bars Before Reversion
3 stars

Calculates an Investor's Business Daily (IBD) style Relative Strength (RS) rating and plots an RS line directly on the price chart. It evaluates price performance against a comparative benchmark index (defaulting to NSE:NIFTY). Optional visual markers highligh

Indicator v5 Oscillators & momentumBreakout
Updated 2 years ago · None stated GitHub repository of RS Rating for Indian Market

This indicator calculates the Relative Strength Index and Money Flow Index to identify potential market reversals. It plots the RSI oscillator in orange and the MFI line in blue on a separate pane. Horizontal lines mark overbought at 70 and oversold at 30 for

Indicator v5 Oscillators & momentum
Updated 2 years ago · MIT GitHub repository of Relative Strength Index And Money Flow Index

EMA+BB+ADX+AO

by mr-s8
3 stars

This strategy plots four EMAs (5, 21, 50 and 200), a Bollinger Band ratio, Awesome Oscillator and ADX on the price chart. It generates long entries when EMA alignment, BB expansion, AO strength and ADX trend strength align, then exits using a percentage-based

Strategy v5 Moving averagesVolatility & bands
Updated 2 years ago · GPL-2.0 GitHub repository of EMA+BB+ADX+AO

Unicorn Strategy

by oscar811
3 stars

This overlay strategy marks market-structure swings and breaker blocks on the price chart. It can limit a breaker to the candle body, use one or two candles in the same direction, and stop the block at the first break of its center line. Entries can be restric

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Unicorn Strategy

Stochastic RSI Screener

by Abbas-Borji
3 stars

The Stochastic RSI Screener calculates the Relative Strength Index and Stochastic RSI values (K and D lines) for up to five user-defined symbols. It retrieves the current price, RSI, K-value, and D-value for each selected asset using security calls and display

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 3 years ago · None stated GitHub repository of Stochastic RSI Screener
3 stars

Fedra Algotrading Strategy Premium is an intraday trend-following strategy designed for sub-30-minute charts. It combines dual moving averages with optional Supertrend, MACD, and market breadth ratio filters to trigger long and short positions. The script incl

Strategy v5 TrendMoving averages Repaints
Updated 3 years ago · None stated GitHub repository of Fedra Algotrading Strategy Premium
3 stars

This indicator plots horizontal liquidity lines on the price chart at swing pivot highs and lows. It detects pivots by checking local maxima and minima in the high and low arrays. Lines are drawn at the pivot levels with customizable colors, styles, and a maxi

Indicator v5 Support & resistance
Updated 4 years ago · None stated GitHub repository of Liquidity by makuchaku & eFe

Currency Strength Chart

by itmakesyousick
3 stars

Calculates and plots relative strength metrics for major currencies in a separate pane. It evaluates cross-pair price action or technical indicators like RSI, CCI, and Stochastics across data feeds from chosen forex brokers. Inputs allow users to select displa

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart
3 stars

This strategy overlays Donchian Channels and higher-timeframe exponential moving averages on the price chart to generate trading signals. It calculates an upper, lower, and median Donchian band alongside 240-minute EMAs fetched specifically for BTCUSDT. When p

Strategy v5 BreakoutMoving averages
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Hedge Mode Strategy

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