Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 22)

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

1 stars

This overlay strategy combines a fast and slow EMA, MACD, and RSI smoothed by an EMA. It opens a long when any one of those three crosses bullish while the other two stay aligned upward, and it opens a short on the matching bearish combination. Trades are limi

Strategy v5 TrendOscillators & momentum
Updated 3 weeks ago · None stated GitHub repository of EMA + MACD + RSI Strategy
1 stars

A gold-oriented overlay that prints buy and sell signals on closed bars. It combines an EMA trend stack, an RSI band, MACD and stochastic RSI triggers, an optional volume filter and a weighted confidence score that must pass a minimum. Stop loss and two take-p

Indicator v5 Oscillators & momentumTrend
Updated 3 weeks ago · None stated GitHub repository of neXQan XAUUSD Gold Indicator
1 stars

Computes support and resistance zones on the chart by clustering 1h moving averages, Bollinger bands, daily pivots, volume profile levels and optionally the previous day high and low. It reads weekly, daily, 4h and 1h trend bias and moves a status through wait

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 3 weeks ago · None stated GitHub repository of Options Short Ladder (Auto)

Speed of Tape [ATAS Style]

by pranay123-stack
1 stars

A price-chart overlay that estimates how fast trading is happening and paints candles when that speed is unusually high. Because TradingView has no tick count, it approximates speed from volume or from the bar body, scaled by the timeframe and a chosen period

Indicator v5 Volume
Updated 5 weeks ago · None stated GitHub repository of Speed of Tape [ATAS Style]

Zimpact Buy/Sell v2

by acquillemac
1 stars

An ATR-based band indicator with a ratcheting SuperTrend line built from RMA of highs and lows. It shows upper and lower bands, an optional outer channel, an optional teal oscillator line, buy and sell signals when direction flips, and two take profit levels a

Indicator v5 TrendVolatility & bands
Updated 6 weeks ago · None stated GitHub repository of Zimpact Buy/Sell v2

Liquidity Map

by mrme000m
1 stars

A Pine v5 indicator that overlays a set of reference levels on the price chart. It plots VWAP, 50 and 200 EMAs, a 24-bar high and low, the latest swing high and swing low, a volume point of control approximated from the highest-volume bar, and ATR-based stop r

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 7 weeks ago · None stated GitHub repository of Liquidity Map
1 stars

An overlay that marks long and short signals by combining a Money Flow Index with k-means derived overbought and oversold levels, and an Andean oscillator crossing its signal line, both within a confirmation window. Optional trend and ATR percentage filters ca

Indicator v5 Oscillators & momentumAI / machine learning
Updated 7 weeks ago · None stated GitHub repository of AI MFI + Andean ETH 15min
1 stars

An indicator in a separate pane that builds a 0 to 100 gauge of market risk from several other markets rather than the chart symbol: an equity ETF, the VIX, the dollar index, the 10-year yield and a high-yield credit ETF. Their returns or changes are turned in

Indicator v5 Volatility & bands
Updated 7 weeks ago · MPL-2.0 GitHub repository of CASA v2 Cross-Asset Risk Gauge
1 stars

This Pine Script indicator plots daily support and resistance levels for XAUUSD gold at 08:00 SGT on weekdays. It finds resistance by backward searching 5-minute candles until the 07:55 candle close exceeds the 07:50 high, then repeats for support when the clo

Indicator v5 Support & resistanceVolatility & bands
Updated 2 months ago · None stated GitHub repository of Gold 08:00 SGT Support/Resistance

Grimmchu

by GreyssonEnterprises
1 stars

Grimmchu is a Pine Script strategy designed to trade within specified session time windows and days of the week. It combines session timing constraints with momentum filters based on a configurable relative strength index. Users can customize the active tradin

Strategy v5 Sessions & timeOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Grimmchu

A/D Context v20.10

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane that tracks accumulation and distribution flow, using either Williams or Chaikin A/D, with a smoothing EMA, Chaikin Money Flow and ATR. It finds divergences between price pivots and flow pivots, and can show regular, hidd

Indicator v5 DivergenceVolume
Updated 3 months ago · None stated GitHub repository of A/D Context v20.10

SPE Triangulation

by SeraKah-1
1 stars

A separate-pane indicator that compares the chart symbol with a domestic index and a US index using rolling log returns. It plots rolling correlations, betas against each index and an R-squared area for the domestic index, each with a toggle. The background sh

Indicator v5
Updated 3 months ago · MIT GitHub repository of SPE Triangulation

FVG Hunter Pro v3

by DANIELMANZRU
1 stars

An indicator that draws unmitigated bullish and bearish fair value gaps, with a dashboard stating whether to trade long, trade short, wait or stay flat. Gaps pass filters for size, impulse versus ATR, candle body and volume, plus an EMA trend filter and a prem

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · None stated GitHub repository of FVG Hunter Pro v3

CryptoVision Explorer

by unemployedrabi
1 stars

Projects a distribution of possible future price moves on the price chart using a Monte Carlo style simulation of drift and returns. Settings control the number of simulations, lookback, steps into the future, outcome bins, smoothing, drift method (standard or

Indicator v5 Volatility & bands
Updated 4 months ago · MIT GitHub repository of CryptoVision Explorer

Macro Phase Dashboard

by cc4wang-ui
1 stars

A separate-pane indicator for daily charts that builds a macro regime dashboard from cross-market data. It combines an economic season model, a copper-to-gold ratio check, a monetary policy pressure measure using yields and real rates, cross-market synchroniza

Indicator v5 Screeners & dashboards
Updated 4 months ago · None stated GitHub repository of Macro Phase Dashboard
1 stars

A second strategy version for index futures built on New York session phases, session VWAP, previous day high and low, EMAs, ATR and RSI with thresholds that tighten in low volatility. It builds a session volume profile from price and volume to find the point

Strategy v5 VolumeSessions & time Repaints
Updated 4 months ago · MIT GitHub repository of Marketman Intraday Profile Strategy v2

BB(10,2) TP20 MTF

by zraesdev-hub
1 stars

A long-only Bollinger Band strategy intended for daily stock charts. It buys when the previous close was below the lower band, the current open is also below it, and no position is open. Mode S1 targets a large percentage gain on the same day and otherwise clo

Strategy v5 Mean reversionVolatility & bands
Updated 4 months ago · None stated GitHub repository of BB(10,2) TP20 MTF
1 stars

A strategy version of an ATR pullback scanner. It requires a strong, rising ADX with directional indicators to set the trend direction, and an optional daily SMA 50 and 200 filter. A pullback zone is measured in ATR units from the recent swing. A toggle choose

Strategy v5 TrendCandlestick patterns
Updated 4 months ago · None stated GitHub repository of Trend Scanner Strategy (A/B Test)
1 stars

A price-chart overlay for gold scalping that labels BUY WAIT, SELL WAIT, BUY CONFIRMED and SELL CONFIRMED states. It combines market structure from pivots, liquidity sweeps, candlestick confirmation, breakout and retest logic, an optional higher-timeframe filt

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Abed XAUUSD SMC Scalping PRO v1

Talons Chandelier Exit

by muammeryldrm42
1 stars

A strategy that builds chandelier style stops from the highest high and lowest low over a period minus or plus an ATR multiple. It goes long when close crosses above the short stop with price above a 200 EMA, and short when close crosses below the long stop wi

Strategy v5 TrendVolatility & bands
Updated 5 months ago · None stated GitHub repository of Talons Chandelier Exit

SahanX v1

by sahansbandara
1 stars

An overlay indicator built on smart money concepts, with separate switches for market structure and volumetric order blocks. It draws swing structure, sweeps and bubbles, plus order block zones with buy and sell activity and optional breakers. Settings control

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of SahanX v1

OMEGA ULTIMATE V3

by princeleuel-code
1 stars

A larger all-in-one overlay combining smart money structure with order flow style tools. It draws a lookback volume profile with value area high, value area low and point of control, flags cumulative volume delta divergence, absorption candles and failed break

Indicator v5 SMC / ICT / price actionVolume
Updated 5 months ago · None stated GitHub repository of OMEGA ULTIMATE V3

Builds several moving averages, including EMA and Hull types, and weights them with an adaptive scheme controlled by a lambda value, a decay percentage and a robustness setting of length sets. The combined result classifies trend as long or short using positiv

Indicator v5 TrendMoving averages
Updated 6 months ago · MIT GitHub repository of Adaptive Trend Classification: Moving Averages

EMA + RSI Strategy

by Sandesh30-cloud
1 stars

This trend-following strategy combines two Exponential Moving Averages with the Relative Strength Index to identify long trade setups. It calculates a 50-period fast EMA, a 200-period slow EMA, and a 14-period RSI. A long position is triggered when the fast EM

Strategy v5 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of EMA + RSI Strategy
1 stars

This indicator plots bullish and bearish order-block boxes on the price chart. It marks the prior candle when the current bar engulfs it and volume exceeds a twenty-bar average times a multiplier, then stores the zone in a matrix. Volume threshold and box colo

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · MIT GitHub repository of Order Blocks Matrix - Castle Trade

CHoCH Indicator

by cavaldos
1 stars

Marks change of character events on the price chart, using swing pivots found with a leg-detection routine. It tracks a swing structure level with a default length of 50 and a shorter internal level with a default length of 5. Each can be switched on or off an

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of CHoCH Indicator

Plots annualised historical volatility using a choice of estimators, including close-to-close, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang, exponentially weighted and absolute-deviation methods. Inputs set the model, length, annualisation factor, a pe

Indicator v5 Volatility & bands
Updated 6 months ago · None stated GitHub repository of Historical Volatility Estimators

ICT v4-weinkya MTF v2

by tndg16-bot
1 stars

This multi-timeframe strategy identifies trading opportunities by combining higher-timeframe market structure shifts with optimal trade entry Fibonacci levels and lower-timeframe confirmations. It calculates swing pivots on higher timeframes to determine bias,

Strategy v5 SMC / ICT / price actionTrend
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya MTF v2

Fibonacci Pullback Strategy

by Basant1Saini
1 stars

Fibonacci Pullback Strategy is a trend-following system that identifies retracements within established trends. It calculates dynamic Fibonacci levels (38.2%, 50.0%, and 61.8%) based on recent swing highs and lows over a specified lookback period. Trades are f

Strategy v5 Support & resistanceTrend
Updated 8 months ago · None stated GitHub repository of Fibonacci Pullback Strategy

15m VPA Reversal Engine

by caizongxun
1 stars

A volume price analysis indicator in a separate pane. It tests each bar for patterns such as buying and selling climaxes, up-thrusts, down-thrusts, no-demand and no-supply bars, using volume against its average and bar range against average spread. The bullish

Indicator v5 VolumeCandlestick patterns
Updated 8 months ago · MIT GitHub repository of 15m VPA Reversal Engine

Ensemble ML Predictor

by haydarkadioglu
1 stars

This indicator overlays a weighted ensemble of three models on the price chart. It compares the current bar with historical bars using RSI, volume ratio, price change and range position, then blends that KNN vote with a linear-regression projection and an EMA-

Indicator v5 AI / machine learningOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Ensemble ML Predictor

ARC PinBarAlgo

by Tradehook-org
1 stars

A Pine v5 strategy that trades pin bar candles on the price chart. A pin bar needs a long wick relative to its body and range, a small opposite wick, and an optional required wick side. Optional confirmation uses band, momentum and EMA crossover settings and a

Strategy v5 Candlestick patternsTrend
Updated 8 months ago · None stated GitHub repository of ARC PinBarAlgo
1 stars

This strategy calculates the RSI indicator to detect mean reversion in AU stocks. It enters long positions when RSI falls below the oversold level with no current position and closes positions when RSI rises above the overbought level. Position size uses a fix

Strategy v5 Mean reversionOscillators & momentum
Updated 8 months ago · None stated GitHub repository of AU RSI Mean Reversion

MES Gamma (30DTE)

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 thirty days. The center line and the one and two standard deviation bands are hardcoded numbers from a snapshot da

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

Calculates Chaikin Money Flow, which measures buying and selling pressure from where each close sits in its range, weighted by volume over a set length. The default is twenty bars. It plots in a separate pane around a zero line, with colour by sign and an opti

Indicator v5 VolumeOscillators & momentum
Updated 9 months ago · MPL-2.0 GitHub repository of Chaikin Money Flow
1 stars

This indicator combines RSI and MACD to mark confirmation signals on the price chart. A buy circle appears when RSI is below 50 and rising while the MACD histogram is positive and the MACD line is above its signal line. A sell circle appears when RSI is above

Indicator v5 Oscillators & momentum
Updated 9 months ago · None stated GitHub repository of Signal Confirmation Filter
1 stars

Institutional Order Flow is a price-chart overlay that marks order blocks, fair value gaps, liquidity sweeps, and market structure. Bullish and bearish order-block boxes require a strong candle, volume above a multiple of a 20-bar average, and a later rally or

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MIT GitHub repository of Institutional Order Flow
1 stars

Calculates trend channels based on a Simple Moving Average (SMA) and Average True Range (ATR) envelope. When price crosses outside the volatility envelope, the indicator identifies trend changes and draws dynamic mid, top, and bottom channel lines directly on

Indicator v5 TrendVolatility & bands
Updated 9 months ago · None stated GitHub repository of Future Trend Channel [ChartPrime]

Smart Money Concepts

by IamTamheedNazir
1 stars

The Smart Money Concepts indicator plots order blocks, fair value gaps, break of structure, and liquidity zones directly on the price chart. It identifies bullish order blocks as strong up-candles following down moves and bearish order blocks as strong down-ca

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · Custom licence GitHub repository of Smart Money Concepts

Echo Forecast [LuxAlgo]

by christonomous
1 stars

This indicator projects future price trajectory directly on the price chart by searching historical price movements for matching patterns. It compares a recent reference window against historical evaluation segments using correlation to identify the most simil

Indicator v5 AI / machine learningTrend
Updated 11 months ago · None stated GitHub repository of Echo Forecast [LuxAlgo]
1 stars

The Donchian Breakout Strategy is a Turtle-style breakout system that plots Donchian channels on the price chart. It generates long entries when the close price crosses above the upper channel and short entries when crossing below the lower channel. Exits are

Strategy v5 BreakoutTrend
Updated 11 months ago · None stated GitHub repository of Donchian Breakout Strategy
1 stars

This indicator identifies high and low pivot points on the price chart using user-defined left and right bars around each bar. It connects pivot points with wave lines, plots PH and PL marks, and labels the latest P1 to P8 patterns. A table shows pivot details

Indicator v5 Support & resistanceTrend
Updated 11 months ago · MIT GitHub repository of Pivot Waves + 8-Pattern + CHoCH

Range Breakout Strategy

by nidhinninan
1 stars

An intraday strategy that builds a range from the first fifteen minutes after a configurable start time, then trades breakouts of that range until a set end time. Targets use a risk-to-reward ratio setting, and position size is a small percentage of equity. Th

Strategy v5 BreakoutSessions & time
Updated 12 months ago · MIT GitHub repository of Range Breakout Strategy

NakInvest Cross EMA

by feliperazeek
1 stars

This strategy trades three-candle reversal patterns, called 123, PFR and engulfing, together with a 9, 40 and 80 EMA trend stack. Entries can occur when price crosses the fast EMA without crossing the slower ones, or when it crosses all of them. Optional volum

Strategy v5 Candlestick patternsMoving averages
Updated 1 year ago · None stated GitHub repository of NakInvest Cross EMA

Code Improvement Template

by NakliTechie
1 stars

This script is a template for improving Pine Script indicators and strategies. It provides a structured framework with sections for documenting original code, listing improvements, adding or modifying input parameters, performing calculations, modifying plot s

Indicator v5
Updated 1 year ago · MIT GitHub repository of Code Improvement Template

StrongBuy

by dsjrego
1 stars

A minimal overlay that watches a 20-period EMA and prints a green STRONGBUY label below the bar each time the close crosses above it. It has no inputs, no exit logic and no filters, so every upward cross of the average produces a label, including during sidewa

Indicator v5 Moving averages
Updated 1 year ago · None stated GitHub repository of StrongBuy

Sessions [LuxAlgo]

by lappingio
1 stars

A session overlay that marks up to four trading sessions, by default New York, London, Tokyo and Sydney, with shaded range boxes. For each session it can also show a trendline, a mean line, a session VWAP and maximum and minimum markers. Session names, times a

Indicator v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Sessions [LuxAlgo]

MarketAnalysis

by MarcosACH
1 stars

MarketAnalysis is a helper library for Pine Script developers that provides modular functions to compute Fibonacci price levels. It offers calculations for both bullish and bearish Fibonacci retracements using low and high price points. Additionally, it calcul

Library v5
Updated 1 year ago · None stated GitHub repository of MarketAnalysis

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