Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 25)

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

3 stars

This indicator draws Smart Money Concept (SMC) elements directly on the price chart. It detects swing highs and lows, swing structure points, and order blocks (bullish and bearish OBs), displaying them using boxes and labels. It also features customizable wate

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Mc War V2 + V3 + Session

3MA Average

by g-moe
3 stars

The 3MA Average indicator calculates three separate moving averages using customizable lengths and types, including SMA, EMA, WMA, HMA, and VWMA. It then computes the arithmetic mean of these three values to create a composite moving average plotted directly o

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of 3MA Average

Debug Code Coverage

by monch1962
3 stars

This Pine Script v5 indicator tracks code coverage for debugging TradingView scripts. It monitors execution of functions, conditions, loops, and lines using internal arrays and counters triggered by debug functions. Coverage metrics are shown in a table on a s

Indicator v5
Updated 7 months ago · None stated GitHub repository of Debug Code Coverage

Strategy Template

by AlnurM
3 stars

This Pine Script v5 file is an overlay strategy skeleton rather than a finished trading system. It sets initial capital, percent-of-equity order size, and a percent commission, then leaves placeholders for inputs, indicator calculations, entry and exit conditi

Strategy v5
Updated 7 months ago · MIT GitHub repository of Strategy Template

Market Regime - 50W SMA

by LucasRibeiroCaetano
3 stars

This indicator classifies market conditions into Bull Market, Correction, or Bear Market regimes using a 50-week Simple Moving Average (SMA). It requests weekly timeframe data to track consecutive weekly closes relative to the 50W SMA. A Bear Market regime is

Indicator v5 TrendMoving averages
Updated 11 months ago · Custom licence GitHub repository of Market Regime - 50W SMA

BTMM Core Foundation

by jcortes254
3 stars

This indicator plots five exponential moving averages on the price chart using lengths of 5, 13, 50, 200 and 800, labeled as a food system. It scores directional bias against a user threshold, includes an optional 15-minute-and-above rule, and shows the result

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of BTMM Core Foundation

MOTO ka AnjalikaAstra

by HelloMoto069
3 stars

MOTO ka AnjalikaAstra is an overlay indicator that combines Ichimoku Cloud concepts with Average True Range volatility filters. It calculates custom Tenkan-Sen, Kijun-Sen, and Senkou Span components using ATR bands rather than standard high and low price chann

Indicator v5 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of MOTO ka AnjalikaAstra
3 stars

Sapphire Fibonacci Strategies is a multi-mode strategy that combines Momentum Breakout, Mean Reversion, and Fibonacci Retracement models built on Fibonacci-period moving averages. It generates long and short trade signals based on price crossovers and moving a

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Sapphire Fibonacci Strategies

This indicator identifies the classic three-bar bearish evening star reversal pattern directly on the price chart. It checks for a strong initial bullish candle, followed by a middle doji or weak candle, and completes when a subsequent bearish candle closes be

Indicator v5 Candlestick patterns
Updated 2 years ago · None stated GitHub repository of Evening Star Pattern (Candlestick Pattern)
3 stars

This strategy implements a trend-following system based on Donchian breakout channels and volatility-adjusted position sizing. It generates long entry signals when the close price breaks above the multi-bar highest high, provided an optional benchmark trend fi

Strategy v5 TrendBreakout
Updated 2 years ago · MIT GitHub repository of Turtle Trend Follow Strategy

Combined Liquidity, Channels, RSI, and VWAP is an overlay indicator that plots multiple technical analysis metrics directly on the price chart. It calculates Keltner and Donchian Channels, volume-based metrics like cumulative volume delta (CVD), VWAP with stan

Indicator v5 Volatility & bandsOscillators & momentum Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of Combined Liquidity, Channels, RSI, and VWAP

Scalp Agiota - By H7

by leocairos
3 stars

The Scalp Agiota strategy calculates RSI and MFI values to identify overbought and oversold conditions for cryptocurrency scalping trades. It plots upward triangles on the price chart below the bar when RSI drops to 20 or lower and MFI to 10 or lower, signalin

Strategy v5 Oscillators & momentumScalping Repaints
Updated 2 years ago · MIT GitHub repository of Scalp Agiota - By H7

Currency Strength Chart

by itmakesyousick
3 stars

Currency Strength Chart measures and compares relative strength across major fiat currencies and optional commodities. It aggregates price data for major Forex pairs from selected brokers and plots smoothed strength lines for each currency in a separate chart

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

ICT Turtle Soup by Flux Charts is an overlay indicator that detects Smart Money Concepts (SMC) Turtle Soup liquidity sweeps and market structure shifts (MSS). It identifies liquidity grabs across standard or higher timeframe periods and projects take-profit an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of ICT Turtle Soup | Flux Charts

Early Reversal OB

by thino-dev
2 stars

This indicator detects early potential market turning points based on order block and engulfing candlestick patterns on the price chart. It checks for a local swing extreme on the second closed bar followed by an immediate engulfing reversal candle on the prio

Indicator v5 SMC / ICT / price actionCandlestick patterns
Updated 7 months ago · None stated GitHub repository of Early Reversal OB

Alpy Vix

by avatar-lavventura
2 stars

This strategy plots a Williams Vix Fix, a WaveTrend oscillator, and a short rolling volume-weighted price filter in a separate pane. It measures how far the low sits below the highest close, then draws a moving average, standard-deviation bands, and a percenti

Strategy v5 Oscillators & momentumVolatility & bands Repaints
Updated 7 months ago · None stated GitHub repository of Alpy Vix

Momentum Breakout Strategy

by adminalphabots
2 stars

This strategy plots on the price chart and enters when price closes beyond the prior lookback high or low and also beyond a shorter confirmation range. Long, short, or both directions can be enabled. Optional filters require volume above a volume average or a

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

Smart Money M1 - Clean & Precise

by ifreddyman2014-tech
2 stars

This overlay indicator marks smart-money structure on the price chart. It finds swing pivots, flags displacement candles whose body exceeds a multiple of the average body, and can label breaks of structure. It draws bullish and bearish order-block boxes and ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Smart Money M1 - Clean & Precise

ORB Hunter

by nxtaiapp
2 stars

ORB Hunter is an Opening Range Breakout strategy that identifies price breakouts beyond a defined opening session window (such as 09:30 to 09:45 EST). It places long or short trades when price crosses the opening range bounds with buffer, confirmed by optional

Strategy v5 BreakoutSessions & time
Updated 11 months ago · MIT GitHub repository of ORB Hunter

BBW

by wynnforthework
2 stars

This strategy combines Bollinger Band Width volatility ratio calculations with a Coppock Curve momentum indicator. It calculates the ratio of standard deviation to EMA over a user-defined length, along with an EMA of that ratio. Long positions are entered when

Strategy v5 Volatility & bandsOscillators & momentum
Updated 1 year ago · None stated GitHub repository of BBW

Trend Indicator A

by iceberg211
2 stars

Trend Indicator A plots a moving-average trend overlay on the price chart. It calculates a selectable average of close and, optionally, of high and low, then colors the lines and the area between them bullish, bearish, or neutral. The main settings choose the

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Trend Indicator A

Hazzones

by ashwagamma
2 stars

Hazzones identifies and plots supply and demand zones directly on the price chart using consecutive Heikin Ashi candle runs. It automatically detects support and resistance flip zones when demand turns into supply or vice versa, while tracking zone mitigation

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 1 year ago · None stated GitHub repository of Hazzones

Bollinger Bands

by Web3Degenerate
2 stars

This Pine Script converts a Bollinger Band Breakout indicator into a strategy. It plots Bollinger Bands on the price chart using a 100-period SMA as the middle band with upper deviation of 3 and lower deviation of 1. Signals trigger on price crossing the bands

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of Bollinger Bands

Mc War v2

by tuanmcwar
2 stars

This indicator plots market structure elements directly on the price chart. It detects swing points, swing high and low levels, and breaks of structure or change of character labels (BOS and CHoCH). It also identifies and draws bullish and bearish swing order

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 years ago · None stated GitHub repository of Mc War v2

Stochastic RSI

by CjHare
2 stars

This indicator calculates a stochastic oscillator from the relative strength index of closing prices and plots the result in a separate pane. It draws the unsmoothed Stochastic RSI together with simple-moving-average %K and %D lines, plus dotted horizontal lev

Indicator v5 Oscillators & momentum
Updated 2 years ago · Apache-2.0 GitHub repository of Stochastic RSI
2 stars

This indicator displays market trend filter information and momentum metrics in a separate pane based on the Weekend Trend Trader strategy. It evaluates a benchmark index, such as the NASDAQ 100, comparing its close price to a simple moving average to render a

Indicator v5 TrendOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Weekend Trend Trader Ribbon
2 stars

This indicator plots five predefined daily moving averages directly on the main price chart. It calculates a 10-period EMA, 21-period EMA, 50-period SMA, 150-period SMA, and 200-period SMA to assist with trend identification and dynamic support or resistance t

Indicator v5 TrendMoving averages
Updated 2 years ago · MIT GitHub repository of Daily MA's [JR-Academy]

HTF Candles & Pivots

by itmakesyousick
2 stars

This indicator draws higher-timeframe candles and classic pivot levels on the price chart. Users choose an automatic or fixed higher timeframe and a color theme, then show or hide the candle and the pivots. Candle display can emphasize open and close, high and

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

Multi Level Zigzag

by WISEPLAT
2 stars

This indicator calculates and plots up to four hierarchical ZigZag levels directly on the price chart to map swings and market structure across different sensitivities. Each level can be toggled and configured with custom lengths and colors. Settings allow use

Indicator v5 Support & resistanceTrend Repaints
Updated 3 years ago · None stated GitHub repository of Multi Level Zigzag
2 stars

Calculates custom exponential moving averages and standard deviation envelopes based on price offsets and lookback windows. It plots dynamic channel bands, mean reversion zones, and squeeze indicators in a separate pane. Users can adjust the moving average len

Indicator v5 Moving averagesVolatility & bands
Updated 3 years ago · None stated GitHub repository of [CBB] Rising Falling Color Band

SassizStocEMA-Lazy Bear

by sassiz-root
2 stars

SassizStocEMA-Lazy Bear is a Pine Script strategy that plots on the price chart and combines a stochastic oscillator with near and far exponential moving averages. It is aimed at crypto markets. Long and short directions can be enabled separately, and crosses

Strategy v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of SassizStocEMA-Lazy Bear
2 stars

This indicator identifies Quasimodo Level (QML) market structure patterns on the price chart using a ZigZag algorithm. It includes optional directional trend filtering using dual exponential moving averages, an ADX threshold filter to verify trend strength, an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 years ago · None stated GitHub repository of QML Indicator Only w/filters [upslidedown]

Simple Indicator

by storm0611
2 stars

This indicator plots four exponential moving averages directly on the main price chart. It calculates EMAs using hardcoded lengths of 20, 50, 100, and 200 bars applied to the closing price, styled with distinct colors and increasing line widths. It also includ

Indicator v5 Moving averagesTrend
Updated 4 years ago · None stated GitHub repository of Simple Indicator

OHLC RTH & ON Sessions

by ClimberMel
2 stars

This indicator tracks and plots Regular Trading Hours (RTH) and Overnight (ON) key price levels directly on the price chart. It displays high, low, open, and close prices for current and previous trading sessions, allowing traders to monitor important intraday

Indicator v5 Sessions & timeSupport & resistance
Updated 4 years ago · MIT GitHub repository of OHLC RTH & ON Sessions

Impulse-Orders

by DaniilOkrug
2 stars

The Impulse-Orders strategy detects impulse up and down movements on the price chart by checking for specific candle patterns relative to Fibonacci retracement levels. It tracks impulse starts and ends, confirming when the move reaches a user-defined percentag

Strategy v5 Candlestick patternsSupport & resistance
Updated 4 years ago · MIT GitHub repository of Impulse-Orders

Sessions

by teshmi9z-beep
1 stars

An overlay that shades trading session ranges on the chart, with three sessions preset to New York, London and Tokyo. Each session has its own name, time window, colour and on or off toggle. While a session is active, a box tracks its running high and low, and

Indicator v5 Sessions & time
Updated 2 days ago · MIT GitHub repository of Sessions

A SuperTrend breakout strategy for crypto perpetual futures. An auto-adapt option picks the DEMA period, ADX threshold and take-profit multiple based on whether the symbol is Bitcoin or Ethereum, or manual values can be used. Position size comes from a fixed o

Strategy v5 BreakoutTrend Repaints
Updated 4 days ago · MIT GitHub repository of ST Breakout V10.0 Multi-Asset Strategy

Blue Alerts

by jometa9
1 stars

An alert helper that watches up to six major forex pairs: AUDUSD, EURUSD, GBPUSD, USDCAD, USDCHF and USDJPY. Each row has an on switch, a pair name and upper and lower price inputs, and the script sends an alert message when its condition is met. As written, b

Indicator v5 Screeners & dashboards
Updated 5 days ago · None stated GitHub repository of Blue Alerts

MACD Signal Turn

by quantxaashish
1 stars

MACD Signal Turn calculates standard Moving Average Convergence Divergence (MACD) and signal lines using exponential moving averages. It identifies bullish crossovers that occur while the MACD line is below zero and bearish crossunders that take place while th

Indicator v5 Oscillators & momentumMoving averages
Updated 2 weeks ago · MIT GitHub repository of MACD Signal Turn

DAY-5MIN-L&H v2

by 7b809
1 stars

An overlay indicator that must run on the one-minute chart and raises an error otherwise. It captures the high and low of an opening range at a set market open time, then draws lines at the high, low and average, plus entry levels placed beyond the range by th

Indicator v5 Sessions & timeSupport & resistance
Updated 2 weeks ago · None stated GitHub repository of DAY-5MIN-L&H v2

A gold-oriented overlay that combines 21, 50 and 200 EMAs, an RSI filter, MACD confirmation and stochastic RSI to draw buy and sell arrows on the price chart. Stop loss and two take-profit lines are placed from ATR multiples, and daily pivot levels can be show

Indicator v5 TrendOscillators & momentum
Updated 3 weeks ago · None stated GitHub repository of neXQan XAUUSD Gold Indicator Lines

A multi-asset strategy that scores market sentiment from money flow, stochastic RSI and the price position within a lookback, then compares the score with long and short thresholds that can adapt to volatility. Optional filters add confirmation from three high

Strategy v5 Oscillators & momentumVolatility & bands
Updated 5 weeks ago · None stated GitHub repository of Universal Futures Strategy - Multi-Asset Optimized

MTF Confluence Engine

by mrme000m
1 stars

MTF Confluence Engine is a separate-pane indicator that evaluates trend, momentum, and volatility metrics across the current chart timeframe and two configurable higher timeframes. It combines EMA alignment, SuperTrend direction, RSI values, Bollinger and Kelt

Indicator v5 TrendOscillators & momentum Repaints
Updated 7 weeks ago · None stated GitHub repository of MTF Confluence Engine
1 stars

An overlay that signals long and short setups when a Money Flow Index crosses adaptive levels found by k-means clustering and an Andean oscillator crosses its smoothed signal within a short confirmation window. A 200-period EMA trend filter and an ATR percenta

Indicator v5 Oscillators & momentumAI / machine learning
Updated 7 weeks ago · None stated GitHub repository of AI MFI + Andean Floating

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