Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 10)

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

Agentic AI Trading Indicator

by Algorithmic-Token
1 stars

A price-chart indicator that draws two simple moving averages, Bollinger Bands and an RSI-based condition set, then prints buy and sell labels when a trend condition and a pullback condition agree. A signal strength value from zero to one counts confirmed cond

Indicator v5 TrendMean reversion
Updated 8 months ago · Custom licence GitHub repository of Agentic AI Trading Indicator

Mean Reversion Trading Bot

by BenjaminLettner
1 stars

This strategy executes mean-reversion trades by combining RSI momentum, Bollinger Bands volatility, dynamic ATR stops, and Exponential Moving Averages for trend filtering. It seeks entry opportunities when price reaches extreme Bollinger Band boundaries alongs

Strategy v5 Mean reversionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Mean Reversion Trading Bot
1 stars

A Pine v5 long-only strategy that switches behavior with an ADX trend reading. When ADX is above the threshold it buys on a fast EMA crossing above a slow EMA, and when ADX is below it buys on RSI under 30. It closes the long on the opposite EMA cross in trend

Strategy v5 TrendMean reversion
Updated 8 months ago · None stated GitHub repository of AU Adaptive Regime Switch

MES Gamma (0DTE)

by Juice-zhi
1 stars

A price-chart overlay that draws a static set of options gamma levels for MES (Micro E-mini S&P 500 futures, scaled from SPY options) expiring in the same day. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot d

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

AGS Smart Signals 5M is an overlay indicator tuned for five-minute crypto charts. It draws an ATR-based cloud of bands around an EMA, filters direction with a trend EMA and RSI oversold and overbought levels, and marks buy and sell signals whose frequency is s

Indicator v5 ScalpingVolatility & bands
Updated 8 months ago · None stated GitHub repository of AGS Smart Signals 5M

XT Market Sessions Private

by Voldemortexe
1 stars

This indicator plots session boundaries and opens on the price chart. It visualizes daily weekly and monthly opens, New York Midnight as the institutional day start, previous daily high and low, plus colored session boxes for Asia Frankfurt and London. Users t

Indicator v5 Sessions & time Repaints
Updated 9 months ago · None stated GitHub repository of XT Market Sessions Private

Crypto Entry Signal

by caizongxun
1 stars

A Pine v5 indicator that draws Bollinger Bands on the price chart and marks buy and sell triangles. A buy appears when volume is above its 20-bar average by a set multiplier, the band basis is rising, and price touches the lower band or breaks below it and clo

Indicator v5 Volatility & bandsMean reversion
Updated 9 months ago · None stated GitHub repository of Crypto Entry Signal

Dual Momentum

by nxtaiapp
1 stars

An overlay indicator based on the global equity momentum approach of comparing assets over a monthly lookback. It requests monthly closes for a US equity ETF, an international equity ETF and a bond ETF, and compares their returns over a set number of months, 1

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 9 months ago · None stated GitHub repository of Dual Momentum
1 stars

The Advanced Trading System - Premium is an all-in-one chart overlay that combines market structure, smart money concepts, and momentum analysis. It identifies institutional order blocks, fair value gaps, break of structure, and change of character levels alon

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 9 months ago · MIT GitHub repository of Advanced Trading System - Premium

Dynamic DCA Equities/Gold

by LucasRibeiroCaetano
1 stars

A Pine v5 indicator that works on any chart by reading the S&P 500 to gold ratio on the weekly timeframe. It compares the ratio to its 200-week simple moving average and sets a regime only after 30 consecutive weekly closes on one side. Above the average it ti

Indicator v5 Screeners & dashboardsMean reversion
Updated 9 months ago · None stated GitHub repository of Dynamic DCA Equities/Gold

Momentum FX Order Block Zones

by mikedconcepcion
1 stars

An indicator that finds supply and demand zones after a short consolidation followed by a fast ATR-scaled breakout, and draws them as boxes on the price chart. Zones can be limited to windows around the hour and half hour in UTC, and to the direction of a high

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 9 months ago · MIT GitHub repository of Momentum FX Order Block Zones

Live Market Scanner - V7

by IamTamheedNazir
1 stars

The Live Market Scanner V7 is a real-time market analysis indicator that fuses MACD, RSI, EMAs, volume, and price momentum to calculate LONG and SHORT scores. It determines market status (LONG, SHORT, WAIT) using a sensitivity-based threshold and plots signals

Indicator v5 TrendOscillators & momentum
Updated 9 months ago · Custom licence GitHub repository of Live Market Scanner - V7

Donchian Breakout + ATR Risk

by JustACoder279
1 stars

A trend-following strategy that goes long when the close breaks above the previous Donchian channel high and short when it breaks below the previous low. An optional 200 EMA filter limits direction, and an ATR regime filter skips quiet markets. Each trade has

Strategy v5 BreakoutTrend Repaints
Updated 9 months ago · MIT GitHub repository of Donchian Breakout + ATR Risk

TXF Choppy Detector

by amytsengtw
1 stars

The TXF Choppy Detector is an indicator that identifies choppy or sideways markets in Taiwan index futures using the Choppiness Index (CHOP). It plots Bollinger Bands on the price chart with customizable length and multiplier. The script detects washout signal

Indicator v5 Mean reversionVolatility & bands
Updated 10 months ago · None stated GitHub repository of TXF Choppy Detector

Combines three moving averages, MACD, RSI, a volatility length and Bollinger Bands on the price chart. Bollinger signals mark a buy when price crosses back above the lower band. Settings set the three average lengths, MACD fast, slow and signal values, RSI len

Indicator v5 Oscillators & momentumVolatility & bands
Updated 11 months ago · MIT GitHub repository of Adaptive Wave Interference Indicator with Bollinger Band Strategy

RVol Panel

by samkdgit
1 stars

RVol Panel plots relative volume in a separate pane for intraday charts. It compares each bar’s volume with the same bar position across a configurable number of recent sessions and also tracks cumulative session volume against that baseline. Bars are colored

Indicator v5 VolumeSessions & time
Updated 11 months ago · MIT GitHub repository of RVol Panel

This strategy plots Supertrend on the price chart and enters long only when the one-hour Bitcoin Supertrend is bullish, the symbol Supertrend is bullish, price is above the line, and the bar makes a higher high. It sizes each trade at 100 percent of equity and

Strategy v5 TrendBreakout Repaints
1 stars

ATR Volatility Trailing Stop plots an EMA trend moving average alongside dynamic ATR-based trailing stops on the price chart. The indicator determines trend direction from price relative to the EMA. Long trailing stop trails upward using ATR when uptrend, shor

Indicator v5 Volatility & bandsTrend
Updated 11 months ago · None stated GitHub repository of ATR Volatility Trailing Stop

Normalises USD/TWD, TSMC, the 0050 ETF, the dollar index and the SOXX semiconductor ETF against their own moving averages and plots them together. It then measures rolling correlations of USD/TWD with the dollar index, SOXX and TSMC, and labels whichever has t

Indicator v5 Screeners & dashboards
Updated 11 months ago · MIT GitHub repository of TWD Triple-Layer Driver Detector

CHoCH Signal TRXUSDT

by gnuhhung317
1 stars

A generated indicator on the price chart that draws a fixed set of hard-coded lines and one label for TRXUSDT on the 30 minute chart. Aqua dashed lines mark pivot highs, yellow dashed lines mark pivot lows, and a lime label marks a change of character at a sta

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · MIT GitHub repository of CHoCH Signal TRXUSDT

Hybrid Pro Strategy

by bdrnjom007
1 stars

A Pine v5 strategy, with Arabic input labels, that counts bullish signals from several groups: Turtle-style breakouts, RSI and Bollinger Band mean reversion, EMA, MACD and ADX momentum, plus order blocks, fair value gaps and supply and demand zones. It enters

Strategy v5 BreakoutMean reversion
Updated 11 months ago · None stated GitHub repository of Hybrid Pro Strategy

Order Block Detector

by freacatt
1 stars

A price-chart overlay that finds bullish and bearish order blocks from volume pivots. A pivot length sets how many bars confirm a volume swing, and the candle range there becomes a zone drawn as a box with a dashed or solid average line, extended to the right.

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · None stated GitHub repository of Order Block Detector

SamK Indicator

by samkling
1 stars

A Pine v5 overlay that combines several chart aids for stock trading. It plots selectable moving averages on all timeframes, optional daily moving averages pulled from the daily series, 50, 100 and 200 SMAs, and pivots. Further switches add average daily range

Indicator v5 Moving averagesSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of SamK Indicator

Flip Zones V1

by TraderBarat
1 stars

Finds candles with unusually high volume and draws a box from the candle high to low on the price chart. Volume counts as unusual when it exceeds a moving average of volume by a multiplier, default 2. Large-body candles are tagged as breakouts, and small-body

Indicator v5 Support & resistanceVolume
Updated 1 year ago · MIT GitHub repository of Flip Zones V1

Swing Highs and Lows

by RadinAnsari
1 stars

This indicator identifies dynamic support and resistance levels on the price chart using pivot high and low calculations. Based on a configurable swing length setting, it detects key market turnarounds and plots triangular markers above swing highs and below s

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of Swing Highs and Lows

bar_index

by SauceSlinger
1 stars

This file is mostly a text reference for Pine Script variables such as bar_index and the barstate family, kept with a parsing project. The runnable code is a minimal indicator that plots the bar index in a separate pane and plots the close only after bar 5000,

Indicator v5 Repaints
Updated 1 year ago · MIT GitHub repository of bar_index

Modified Asia Sweep

by HibrowSamuvelChristin
1 stars

Modified Asia Sweep is a futures strategy sample built around the Asian and London sessions, with session hours and time zone as inputs. It draws session ranges, Asian swing points, market structure and break of structure lines. Position size can be set by a f

Strategy v5 Sessions & timeSMC / ICT / price action
Updated 1 year ago · Custom licence GitHub repository of Modified Asia Sweep

An overlay with Turkish labels that detects XABCD harmonic patterns, including Gartley, Bat, Butterfly, Crab, Deep Crab, Shark and Cypher. In automatic mode it scans pivots over a lookback window and scores each match against a minimum percentage; in manual mo

Indicator v5 Support & resistance Repaints
Updated 1 year ago · MIT GitHub repository of Harmonic Pattern Manual and Auto
1 stars

ATR Retracement EMA Signals identifies momentum setups by detecting large candle expansions relative to Average True Range, followed by brief price retracements and moving average crossovers. When price experiences a strong bar move, retracing within a configu

Indicator v5 Volatility & bandsMoving averages
Updated 1 year ago · MIT GitHub repository of ATR Retracement EMA Signals

MR First Entry Backtester

by gaurav4ever
1 stars

A strategy for 5-minute charts that builds a morning range of either five or fifteen minutes after the market open and takes the first breakout entry, with an entry buffer in ticks. An optional trend filter buys only above and sells only below the 50 EMA, and

Strategy v5 BreakoutSessions & time
Updated 1 year ago · None stated GitHub repository of MR First Entry Backtester

Buy 8/13/25E

by dsjrego
1 stars

A price chart overlay that plots a 9-period EMA and a Bollinger upper band and prints buy markers. A standard buy triangle appears on a confirmed green bar that closes above the EMA and above the close two bars back, provided the previous bar was not red. An e

Indicator v5 Moving averagesVolatility & bands
Updated 1 year ago · None stated GitHub repository of Buy 8/13/25E

CCE ORB

by ylohnitram
1 stars

Marks the opening range of the US stock session on the price chart. The range starts at 9:30 New York time and lasts a set number of minutes, 15 by default, with optional extension levels projected from it. A setting limits the display to the morning or to the

Indicator v5 Sessions & timeBreakout
Updated 1 year ago · None stated GitHub repository of CCE ORB

Detects bullish and bearish order blocks using pivot highs and lows and draws them as boxes on the price chart. Settings define the minimum and maximum block size, the pivot left and right bar counts, the maximum number of historic blocks kept, and a lookback

Indicator v5 SMC / ICT / price actionSupport & resistance

Premium 3

by Abishek-Tharu99
1 stars

A multi-tool overlay indicator on the price chart. It offers reversal buy and sell markers, oversold and overbought shading, a trend ribbon, optional reversal bands and three moving average support and resistance lines. It can also show higher-timeframe liquid

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Premium 3

Super AI Binary Bot

by 12345678798
1 stars

This indicator generates reversal signals based on simple candlestick comparisons over a user-defined lookback period. A bullish signal triggers when both the current and historical candles close higher while the current low is lower than the past low, and vic

Indicator v5 Candlestick patterns Repaints
Updated 1 year ago · None stated GitHub repository of Super AI Binary Bot

My BTC Investment Strategy

by CodingExplored
1 stars

A long-biased strategy that compares two selectable trend lines (TEMA, LSMA, EMA or SMA) and enters when the fast line crosses above the slow one while an ATR trailing level sits below price. It exits when price drops under the trailing high, when the lines cr

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of My BTC Investment Strategy

Ultimate Crypto Bot

by dextergocode
1 stars

This Pine Script strategy is designed for cryptocurrency trading on TradingView. It combines moving averages, RSI, MACD, Bollinger Bands, Stochastic oscillator and volume analysis to generate buy and sell signals. Higher time frame trend confirmation and marke

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · MPL-2.0 GitHub repository of Ultimate Crypto Bot
1 stars

This indicator finds pivot highs and lows with an adjustable detection length and margin, then draws buyside and sellside liquidity zones and level lines on the price chart. Zones can be coloured separately and given their own margin. Optional liquidity voids

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Buyside & Sellside Liquidity

SMC Dashboard

by minik28
1 stars

An early skeleton of a dashboard intended to support the LuxAlgo smart money concepts indicator. It declares a multi-timeframe trend row for 1, 5, 15 and 60 minutes and a table for long and short setup checks covering liquidity grab, CHoCH, order block and fai

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of SMC Dashboard

Trend Detector

by MarcosACH
1 stars

Trend Detector can plot up to three moving averages, each with its own type (SMA, EMA, RMA, WMA or VWMA), length, source and timeframe, defaulting to 15, 60 and 240 minutes. A table lists whether each selected average is trending up or down. An option waits fo

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

Buy and Sell Signal Combo

by Mr-Madhuranga
1 stars

An indicator on the price chart that merges three signal sources into one buy and one sell marker. A buy appears when RSI is below 30 and MACD crosses above its signal line, when the 50 EMA crosses above the 200 EMA, or when price closes above the highest high

Indicator v5 Oscillators & momentumBreakout
Updated 1 year ago · None stated GitHub repository of Buy and Sell Signal Combo

Entry Zone Marker

by TradingX-TF
1 stars

Entry Zone Marker is a simple position calculator that draws on the price chart. The user types an initial entry, position volume, averaging volume and averaging price for a long and a short position. The script computes the volume-weighted average entry for e

Indicator v5
Updated 1 year ago · None stated GitHub repository of Entry Zone Marker

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