Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 5)

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

This trend-following strategy calculates asymmetric Bollinger Bands and overlays them on the price chart alongside a central moving average. It enters long positions when the price crosses above the upper band, provided an optional benchmark trend filter (chec

Strategy v5 TrendVolatility & bands
Updated 2 years ago · MIT GitHub repository of Bollinger Band Trend Follow Strategy
3 stars

Advanced Option Price Estimator applies the Black-Scholes model to estimate call and put option prices directly on the main price chart. It uses standard normal distribution functions and Newton-Raphson iterations to calculate implied volatility across calcula

Indicator v5 Volatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Advanced Option Price Estimator
3 stars

This strategy plots Bollinger bands and a simple moving average on the price chart. It opens a short when price crosses above the upper band while below the average, and a long when price crosses below the lower band while above the average. Entries are allowe

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of 周末布林带策略

This overlay indicator draws MarketSmith-style price bars and several moving averages on the chart. Bar color follows the current close versus the open, or versus the previous close when that option is enabled. Four daily averages and four weekly averages can

Indicator v5 Moving averagesOscillators & momentum
Updated 2 years ago · None stated GitHub repository of MarketSmith Indicator Indian Market

TradeEase

by RA1NCS
3 stars

TradeEase is a Smart Money Concepts indicator that maps market structure and key liquidity zones directly on the main price chart. It identifies internal and swing market structure changes, including Break of Structure (BOS) and Change of Character (CHoCH), as

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 years ago · MIT GitHub repository of TradeEase

Larry Williams 9.1

by leocairos
3 stars

This strategy tracks directional shifts in a 9-period Exponential Moving Average (EMA) to identify trend reversals based on the Larry Williams 9.1 setup. It plots the 9 EMA on the main chart and generates a long signal when the EMA turns upward after declining

Strategy v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Larry Williams 9.1

EMA Crossover

by mr-s8
3 stars

This strategy plots a fast and a slow exponential moving average on the price chart. It enters long when the fast average crosses above the slow average and short when it crosses below. Each entry sets a percentage take profit and stop loss from the close of t

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-2.0 GitHub repository of EMA Crossover

3 RSI DWM

by kartikayakul01
3 stars

3 RSI DWM plots a chart-timeframe RSI and up to three additional RSI series requested from user-selected timeframes, defaulting to weekly, monthly, and 60 minutes. Each series has its own length and source, and boolean inputs show or hide the extra series. It

Indicator v5 Oscillators & momentum
Updated 2 years ago · None stated GitHub repository of 3 RSI DWM

Bitcoin Market Capitalization

by datacrypto-analytics
3 stars

This indicator plots Bitcoin market capitalization from the Quandl BCHAIN/MKTCP series in a separate pane. It draws the series as an area whose color shifts with the capitalization level. An optional six-period simple moving average can be shown as a line over

Indicator v5
Updated 3 years ago · Apache-2.0 GitHub repository of Bitcoin Market Capitalization

This indicator plots a multi-symbol dashboard on the price chart to monitor up to five custom ticker symbols across three timeframes. It calculates the Relative Strength Index (RSI), Stochastic RSI %K, and %D values alongside the current price. Traders can mod

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 3 years ago · None stated GitHub repository of Multi Timeframe Stochastic RSI Screener

This indicator plots Linear Regression lines with deviation bands on the price chart to identify support and resistance levels. It filters signals using configurable EMA lines and optional Supertrend filter. A session filter restricts calculations to specified

Indicator v5 TrendSupport & resistance
Updated 3 years ago · None stated GitHub repository of Fedra Algotrading LR + TTP Indicator Lite
3 stars

This strategy calculates 50-period and 200-period exponential moving averages alongside a standard Moving Average Convergence Divergence (MACD) oscillator. It plots the moving averages and the MACD histogram directly on the price chart. The strategy opens a lo

Strategy v5 Oscillators & momentumMoving averages
Updated 4 years ago · None stated GitHub repository of 5min Scalping EMA50, EMA200, MACD

Btc Version5pine

by WMW333
3 stars

This strategy detects volume-based trading signals on Bitcoin perpetual futures. It calculates volume spikes on green and red candles along with ATR for volatility filtering. Long entries trigger on red candles with high volume and specific spike conditions wh

Strategy v5 VolumeVolatility & bands
Updated 4 years ago · None stated GitHub repository of Btc Version5pine

This indicator detects and visualizes core Smart Money Concepts directly on the price chart. It plots bullish and bearish order blocks, fair value gaps, rejection blocks, break of structure levels, pivots, and liquidity pools using boxes and markers. A dedicat

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 years ago · None stated GitHub repository of Super OrderBlock / FVG / BoS and ABC with Alert

Currency Strength Chart

by itmakesyousick
3 stars

This indicator plots relative strength lines for major currencies and optional metals and oil in a separate pane. It builds each series from a chosen source, either raw price or RSI or stochastics, then applies a selected moving-average smoother. Resolution ca

Indicator v5 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Currency Strength Chart

Carmelita Adelina Leandro by Professor Theta is an intraday signal script designed for futures charts. It calculates VWAP and a 9-period Exponential Moving Average to identify trend reversal triggers. Long and short entry signals are evaluated based on open pr

Strategy v5 TrendMoving averages
Updated 4 years ago · Unlicense GitHub repository of Carmelita Adelina Leandro by Professor Theta

This strategy combines Bollinger Bands and Bollinger Band Width to trigger breakout trades during periods of low volatility. It opens long positions when price crosses above the upper band while band width is below its 100-period moving average, and opens shor

Strategy v5 TrendVolatility & bands
Updated 4 years ago · CC0-1.0 GitHub repository of Greeffer's Bolinger Band Hedge Strategy

MomGulfing

by rasimandiran
3 stars

MomGulfing is a momentum strategy that identifies trade setups using multi-bar engulfing candlestick patterns paired with volume confirmation. It triggers long or short entries when price breaks key candle bounds across one to three bars while volume expands.

Strategy v5 Candlestick patternsOscillators & momentum
Updated 4 years ago · MIT GitHub repository of MomGulfing

Green Wave | Sathvik

by Gethubsathvik
2 stars

Green Wave plots a Fibonacci golden zone between the latest swing high and swing low on the price chart. It finds the range high and low over a configurable swing length, stores recent pivots, and draws two retracement lines, by default at 0.5 and 0.618, with

Indicator v5 Support & resistance
Updated yesterday · None stated GitHub repository of Green Wave | Sathvik

TRH Hunter AI

by davoodepb
2 stars

This indicator identifies Smart Money Concepts and liquidity levels directly on the price chart. It detects equal highs, equal lows, liquidity sweeps, fair value gaps, order blocks, displacement moves, and market structure shifts such as break of structure and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 days ago · None stated GitHub repository of TRH Hunter AI

Sell-Only Strategy

by karma659
2 stars

This short-only strategy identifies sell setups by combining a 3-period RSI overbought condition with a bearish engulfing candlestick pattern. It triggers short entries when the open RSI exceeds 70 and momentum turns downward alongside a bearish engulfing bar.

Strategy v5 Oscillators & momentumCandlestick patterns
Updated 10 days ago · None stated GitHub repository of Sell-Only Strategy

Calculates market volatility, velocity, dynamic VIX thresholds, and multi-timeframe directional bias to assess risk regimes for Nifty index options trading. It computes a danger score based on ATR, VIX rate of change, Bollinger Band width, and price velocity t

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 2 weeks ago · None stated GitHub repository of NIFTY SpreadGuard V2024 - Mega-Sidebar Sniper

VCP Silver Tier Strategy

by alejandr02820
2 stars

The VCP Silver Tier Strategy is a MACD-based trading system in Pine Script v5 that draws signals on the price chart. It computes the MACD line using fast length 12, slow length 26, and signal length 9. Long entries fire on MACD crossover below zero; short entr

Strategy v5 TrendOscillators & momentum
Updated 2 weeks ago · Custom licence GitHub repository of VCP Silver Tier Strategy
2 stars

SMC + POC Signals identifies Smart Money Concepts structure elements including Break of Structure (BOS), Change of Character (CHoCH), Order Blocks, and Fair Value Gaps alongside a rolling Point of Control (POC) volume profile line. It marks potential long and

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 weeks ago · None stated GitHub repository of SMC + POC Signals [factor-lab]

KAMA Values to JSON

by damianhunziker
2 stars

This indicator calculates Kaufman's Adaptive Moving Average (KAMA) and plots it directly on the main price chart. Traders can configure the efficiency ratio length, fast length, and slow length parameter settings. During real-time bar updates, the script store

Indicator v5 Moving averages
Updated 5 weeks ago · Custom licence GitHub repository of KAMA Values to JSON

MTF OTF Close Filter

by flaviusapop
2 stars

MTF OTF Close Filter calculates multi-timeframe breakout or continuation states by comparing each timeframe's current close to the highest and lowest closes over the prior N bars. It plots a six-cell status table at the bottom right of the chart showing UP, DO

Indicator v5 BreakoutTrend
Updated 5 weeks ago · None stated GitHub repository of MTF OTF Close Filter

Bridge Protocol Example

by propfirmgorilla
2 stars

This example strategy demonstrates how to format Pine Script order alerts into JSON payloads for automated execution engines. It generates entry signals using a 10-period and 30-period simple moving average crossover and calculates protective stop-loss prices

Strategy v5 Moving averagesTrend
Updated 6 weeks ago · MIT GitHub repository of Bridge Protocol Example
2 stars

This overlay strategy enters long when a fast EMA crosses above a slow EMA, the candle closes above the fast EMA and above its open, and volume is at least a set multiple of its SMA. Position size defaults to 95 percent of equity with no pyramiding. It exits w

Strategy v5 TrendMoving averages
Updated 8 weeks ago · None stated GitHub repository of EMA20/50 ATR Trail Spot

GODMODE Dashboard

by EricMohlathe
2 stars

This indicator visualises multiple smart money concepts and technical analysis modules directly on the price chart. It plots trend EMAs, VWAP bands with standard deviations, market structure breaks and changes of character, Fair Value Gaps, Order Blocks, suppl

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 2 months ago · None stated GitHub repository of GODMODE Dashboard

Market Mind Reader

by Lapommeray
2 stars

Market Mind Reader is an overlay strategy that generates buy and sell signals based on user-defined inputs for Federal Reserve bias, DNA pattern states, and liquidity directions. It evaluates alignment across these inputs to calculate a signal confidence score

Strategy v5 SMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Market Mind Reader

RedK EVEREX v2.0

by bigzhu
2 stars

The RedK EVEREX v2.0 indicator examines effort versus results by plotting normalized bands comparing price change to volume. It computes rate of flow using selectable moving averages with smoothing options, and applies lookback averaging to highlight anomalies

Indicator v5 Moving averagesVolume
Updated 3 months ago · None stated GitHub repository of RedK EVEREX v2.0
2 stars

This indicator implements a streaming bar-by-bar port of the Chanlun theory decomposition pipeline directly on the price chart. It processes raw price action through Algorithm N containment normalization, identifies top and bottom fractals, connects them into

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of Chanlun (chanlun-v1 port)
2 stars

This indicator analyzes volume character and market structure in a separate chart pane. It color-codes volume bars to identify institutional accumulation, distribution, climax volume, and volume dry-up conditions during volatility contraction patterns. The scr

Indicator v5 VolumeTrend
Updated 4 months ago · None stated GitHub repository of TJ Essentials - Daily Swing
2 stars

This strategy executes long trades based on a 50 and 200 SMA golden cross and manages exits using a dynamic trailing stop. Upon entry, it places an initial stop loss at the lowest low of the previous lookback bars. Whenever price prints a new high over the spe

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 2-Bar Trailing Stop Strategy
2 stars

Session Extreme Revisit - Lines identifies high and low candles during defined trading sessions, such as London and New York, and projects them on the chart as supply and demand reaction zones. The indicator tracks intraday extreme price ranges and extends rea

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Session Extreme Revisit - Lines
2 stars

This overlay indicator draws Elliott Wave structure on the price chart. It builds up to three independent ZigZag swings from user-selected high and low sources, then connects impulse legs labeled one through five and corrective legs labeled A through C. Four a

Indicator v5 Support & resistanceTrend
Updated 5 months ago · None stated GitHub repository of Elliott Wave [LuxAlgo]

MTF Signal Strategy

by Flopchamp
2 stars

The MTF Signal Strategy is designed for 1-minute charts to identify trade entries using multi-timeframe EMA trends, Opening Range Breakout (ORB) levels, key daily high/low levels, and custom pivot zones. It generates trade signals on bar closes when price alig

Strategy v5 TrendBreakout
Updated 7 months ago · None stated GitHub repository of MTF Signal Strategy
2 stars

The LSD-15 indicator detects liquidity sweeps on 15-minute crypto charts by identifying price movements that exceed a threshold from swing highs and lows. It plots swing high and low lines on the price chart and highlights sweep candles in color. Multiple conf

Indicator v5 ScalpingSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of LSD-15 Liquidity Sweep Detector
2 stars

The ARCStage indicator calculates and color-codes Stan Weinstein's four market stages using the slope of the 30-week SMA and the price position relative to it. Stage 1 appears in light gray during basing consolidation, Stage 2 in light green during advancing,

Indicator v5 TrendMoving averages
Updated 7 months ago · MIT GitHub repository of Stan Weinstein Stage Analysis
2 stars

This strategy executes trend-following scalping setups by combining fast and slow exponential moving averages with a smoothed Stochastic oscillator. It enters long positions when the fast EMA is above the slow EMA and the Stochastic is oversold, and short posi

Strategy v5 TrendOscillators & momentum Repaints
Updated 7 months ago · None stated GitHub repository of WINNER MNQ Strategy - Optimized 2026
2 stars

This Pine Script v5 strategy calculates two simple moving averages with customizable fast and slow lengths and plots them on the price chart. It generates long signals on fast MA crossover above the slow MA and short signals on the reverse crossover. The strat

Strategy v5 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of MA Crossover Strategy with SL/Targets

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