Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 17)

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

Options Ladder

by rahul43177
1 stars

Draws an options entry plan on the price chart from a text line pasted into a settings box. The pasted line can carry a status, expiry, near and structural resistance and support bands, a trigger zone, a best candidate strike with premium, alternatives, invali

Indicator v5 Support & resistance
Updated 3 weeks ago · None stated GitHub repository of Options Ladder
1 stars

An overlay that finds bullish and bearish order blocks from a pattern across several candles, with an adjustable lookback, and draws boxes that extend a set number of bars. Blocks below a minimum size in ATR multiples are skipped, and mitigation is judged by w

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 weeks ago · MIT GitHub repository of Enhanced Roman Order Block

TradeVisor BTC Strategy

by Rahib00494
1 stars

A Bitcoin strategy that enters long or short when price, a fast and slow EMA and a 50-period SMA trend filter agree, RSI sits inside a set band, MACD line and histogram point the same way, and volume is near its average. Each trade gets an ATR-based stop and a

Strategy v5 TrendOscillators & momentum
Updated 4 weeks ago · None stated GitHub repository of TradeVisor BTC Strategy

Range XV [ATAS Style]

by pranay123-stack
1 stars

A price-chart overlay that groups bars into custom range blocks. A developing range closes when its high-low span reaches the chosen point size and volume is at least a set multiple of its recent average. A box shows the forming range, a triangle marks the dir

Indicator v5 VolumeBreakout
Updated 5 weeks ago · None stated GitHub repository of Range XV [ATAS Style]

Bot v13 TV Exporter

by saniroy3311-spec
1 stars

A helper indicator that plots raw indicator values in a separate pane so they can be compared bar by bar with an external Python bot. It outputs a 200 and a 50 period EMA, ATR, RSI, the plus and minus directional indicators, raw ADX and an EMA-smoothed ADX, a

Indicator v5
Updated 5 weeks ago · None stated GitHub repository of Bot v13 TV Exporter
1 stars

A Pine v5 indicator, written as the second layer of a gold-focused framework, that reads market direction from moving averages across weekly, daily, 4-hour and 1-hour data. A timeframe is bullish when price sits above 9, 21 and 50 averages in order, bearish wh

Indicator v5 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Market Direction and HTF Bias

Key Level Confluence

by mrme000m
1 stars

The Key Level Confluence indicator plots support and resistance levels on the price chart. It calculates pivot highs and lows, the point of control from a simplified volume profile, VWAP, EMA50 and EMA200, Bollinger Bands, and ATR-based stop levels. Confluence

Indicator v5 Support & resistanceMoving averages
Updated 7 weeks ago · None stated GitHub repository of Key Level Confluence
1 stars

An overlay indicator that draws a heat map to the right of the last bar showing the estimated probability that price touches each of several levels above and below within growing time horizons. Levels are spaced in ATR or percent steps. The estimate uses a clo

Indicator v5 Volatility & bandsSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of ATLAS Probabilistic Reach Map
1 stars

A strategy that scores long and short setups from a three-EMA trend alignment, an RSI position above or below 50 and a volume spike above its 20-bar average. A trade opens when the score reaches a confidence threshold input. Each entry has an ATR-based stop an

Strategy v5 TrendOscillators & momentum
Updated 7 weeks ago · MIT GitHub repository of Lyzer Core Runtime Proxy

Gold Dominator Pro

by thanvish21
1 stars

Gold Dominator Pro is an overlay strategy aimed at gold. It reads a higher-timeframe trend from three exponential moving averages and includes RSI, MACD, Stochastic RSI, ADX, ATR, and volume settings. Optional session, equity-curve, and maximum-drawdown guards

Strategy v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Gold Dominator Pro

Alien Wash

by XingHan98
1 stars

Alien Wash is a price-chart indicator that draws the latest green horizontal line at the previous candle high after an up close beyond a USD buffer, and the latest red line at the previous candle low after a down close beyond that buffer. A buy signal fires wh

Indicator v5 Support & resistanceOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Alien Wash

Shiva Sniper v6.5 TV Exporter

by saniroy3311-spec
1 stars

A helper indicator that plots raw indicator values in a separate pane so they can be compared bar by bar with an external Python bot. It outputs a 200 and a 50 period EMA, ATR, RSI, the plus and minus directional indicators, raw ADX and an EMA-smoothed ADX, a

Indicator v5
Updated 2 months ago · None stated GitHub repository of Shiva Sniper v6.5 TV Exporter

GrimmArty Strategy

by GreyssonEnterprises
1 stars

A Pine v5 strategy version of a candle and moving average indicator. It draws four smoothed moving averages (21, 50, 100 and 200), a trend fill against the 200 average, three line strike markers and engulfing-style candle markers, and can shade a time-zone tra

Strategy v5 Moving averagesCandlestick patterns
Updated 3 months ago · MIT GitHub repository of GrimmArty Strategy

TTP VIX Spy

by AubakirovArman
1 stars

Pulls the VIX and builds a MACD histogram from it, then uses that with a SuperTrend, a band width test, price and RSI slope checks and an optional working-days filter to print B1, B2, S1 and S2 labels on the price chart. The SuperTrend fill is coloured by the

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · MIT GitHub repository of TTP VIX Spy
1 stars

A separate-pane indicator that builds a 0 to 100 score from price momentum, nudged by the prior move of a chosen US index and pulled toward 50 in high-volatility regimes. Background colours mark calm, elevated or panic volatility, found by comparing recent vol

Indicator v5 Volatility & bandsOscillators & momentum
Updated 3 months ago · MIT GitHub repository of SPE Regime & Prob Proxy
1 stars

A variant of the Elephant Bars overlay that considers only one-bar retracements. It flags candles whose body is at least a set multiple of the average body, then marks a following bar as a retracement when its body is small relative to the elephant bar and its

Indicator v5 Candlestick patternsMoving averages
Updated 3 months ago · None stated GitHub repository of Elephant Bars Single Retracement

FVG Hunter Pro

by DANIELMANZRU
1 stars

An indicator that draws bullish and bearish fair value gap boxes and shows a dashboard saying whether conditions are aligned for a long, a short, or to wait. A signal requires a minimum number of confirmations from gap size, impulse, volume, 200 EMA trend, pre

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

Smart Money Zones PRO

by KavyaBaghel
1 stars

Maps buy and sell zones on the price chart from confirmed pivots with above-average volume, using the nearest opposite-colour candle as the order block. Nearby zones merge within a pip gap and are capped in size, graded by volume, and marked fresh, tapped or w

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 4 months ago · None stated GitHub repository of Smart Money Zones PRO

Candle Counter

by unemployedrabi
1 stars

Counts consecutive candles of the same colour and shows the running count as labels on the price chart. It also builds a table that records how often each streak length occurred and what followed. The price basis can be regular candles or Heikin Ashi. An alert

Indicator v5 Candlestick patterns
Updated 4 months ago · MIT GitHub repository of Candle Counter
1 stars

A strategy version of a chart pattern detector. It builds a zigzag from pivots, finds patterns such as double and triple tops and bottoms, head and shoulders, triangles, rectangles, cup and handle, flags and wedges, and scores their quality. Trades are entered

Strategy v5 BreakoutSupport & resistance Repaints
Updated 4 months ago · None stated GitHub repository of Chart Pattern Detector v2 Backtest

Simple Options Bias Strategy

by SankarSrinivasan1
1 stars

This strategy determines directional market bias for options traders by combining a 20-period Exponential Moving Average (EMA) and a 14-period Relative Strength Index (RSI). It enters a long position when the closing price is above the 20 EMA and RSI is below

Strategy v5 TrendOscillators & momentum
Updated 4 months ago · GPL-3.0 GitHub repository of Simple Options Bias Strategy

Marketman Intraday Profile Indicator

by brandonking078-boop
1 stars

An indicator for the price chart aimed at index futures such as ES and NQ. It tracks the New York session, building a session volume profile from price and volume to derive the point of control and value area, and shows session VWAP with bands, previous day hi

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

BB(10,2) MTF Confirm

by zraesdev-hub
1 stars

This overlay strategy trades a close and open below the lower Bollinger Band, using a period and multiplier set on the chart timeframe. An optional higher-timeframe Bollinger Band can confirm entries before orders are placed. Mode S1 exits at a percentage take

Strategy v5 Volatility & bandsMean reversion
Updated 4 months ago · None stated GitHub repository of BB(10,2) MTF Confirm
1 stars

An indicator for the price chart that looks for pullbacks inside a trend. It uses ADX and directional indicators with a rising-ADX check to confirm trend and direction, then measures the distance from the recent swing high or low in ATR units. Optional filters

Indicator v5 TrendVolatility & bands
Updated 4 months ago · None stated GitHub repository of Trend Scanner (ATR Pullback)

RTE Overlay GBPUSD 5M

by Jagadeesh963
1 stars

This overlay indicator draws a fixed visual snapshot on the GBPUSD price chart only when the last bar is forming. It places a translucent box labeled FVG, a horizontal line and label marked MSS, and a text label reading GBPUSD bullish, all using hardcoded pric

Indicator v5 SMC / ICT / price action
Updated 4 months ago · None stated GitHub repository of RTE Overlay GBPUSD 5M
1 stars

A strategy version of a crypto signal indicator that goes long or short when a 50 and 200 EMA trend, RSI and fast MACD ranges, ATR percent, volume ratio and ADX all pass a minimum entry score. An optional macro filter checks Bitcoin, dominance, TOTAL2 and TOTA

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Micro Atomic Crypto Alpha Strategy

Trend + Scalp + Stop Signals

by Ershubhambhagat
1 stars

A price-chart indicator that shows VWAP, a central pivot range, three EMAs, Supertrend and previous-day levels, then scores conditions to print trend signals, scalp signals and stop or exit signals. Minimum score thresholds for trend and scalp signals are adju

Indicator v5 TrendScalping
Updated 5 months ago · None stated GitHub repository of Trend + Scalp + Stop Signals

Talons Breaker Block

by muammeryldrm42
1 stars

A strategy that finds impulsive engulfing-style candles to define order block zones, then waits for a zone to fail when price closes through it. A failed bullish zone becomes a short setup on a retest below a 200 EMA, and a failed bearish zone becomes a long s

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Talons Breaker Block

MC-Predict HullMA v2

by ebarkinkaras-lang
1 stars

A price-chart overlay that plots a Hull moving average with a set of EMAs, SuperTrend and Bollinger Bands, and scores the market by weighting trend, momentum, volatility, volume, support and resistance, and a k-nearest-neighbours estimate. The nearest-neighbou

Indicator v5 AI / machine learningTrend
Updated 5 months ago · None stated GitHub repository of MC-Predict HullMA v2

SahanS Full Indicator

by sahansbandara
1 stars

An all-in-one overlay indicator that merges a divergence detector, smart money concepts, order blocks, liquidity swings and moving averages. The divergence part checks regular and hidden divergences between price and up to ten oscillators including RSI, MACD,

Indicator v5 DivergenceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of SahanS Full Indicator

OMEGA ULTIMATE STRATEGY

by princeleuel-code
1 stars

A strategy built on the same smart money concepts as its indicator sibling: swing structure, order blocks and fair value gaps scored into a confluence value that must pass a minimum before a trade. Size is set from a risk percentage per trade, with an optional

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of OMEGA ULTIMATE STRATEGY

BWC Momentum v5

by tonimaxx
1 stars

A long-only strategy for stocks that enters when the close is above both a 50-period and a 200-period SMA, RSI is above a set minimum, volume exceeds a multiple of its average, price has stayed above the 50 SMA for several bars and dollar volume passes a floor

Strategy v5 TrendOscillators & momentum
Updated 6 months ago · Custom licence GitHub repository of BWC Momentum v5

Beginner EMA + RSI + ATR

by Sandesh30-cloud
1 stars

Beginner EMA + RSI + ATR is a long-only trend-following strategy plotted directly on the price chart. It identifies an uptrend when the 50-period EMA trades above the 200-period EMA, triggering long entries when the 14-period RSI crosses above the 50 centerlin

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

Kill Zone Liquidity Sweeps tracks the Asian trading session high and low prices and monitors for liquidity sweeps during the London session. When price temporarily breaches the prior Asian high or low during the London kill zone but closes back within the rang

Indicator v5 SMC / ICT / price actionSessions & time
Updated 6 months ago · MIT GitHub repository of Kill Zone Liquidity Sweeps - Castle Trade

BOS Indicator

by cavaldos
1 stars

Marks break of structure events on the price chart, based on swing pivots found with a leg-detection routine. It tracks two structure levels: a swing level with a default length of 50 and an internal level with a default length of 5. Each can be shown or hidde

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

This strategy trades reversal candlestick patterns such as hammer, doji, engulfing, stars, harami, piercing line and shooting star on the price chart. Pattern strength, ratios and size are adjustable, and optional filters use volume, a trend EMA, RSI, moving a

Strategy v5 Candlestick patterns
Updated 6 months ago · Apache-2.0 GitHub repository of Advanced Candlestick Pattern Strategy
1 stars

Estimates the mean-reversion half-life of price in bars by fitting an Ornstein-Uhlenbeck model with a rolling regression on log prices. A lookback input sets how many bars feed the regression, and the half-life is capped for display. Optional bands show the me

Indicator v5 Mean reversionVolatility & bands
Updated 6 months ago · None stated GitHub repository of Half-Life Estimator (O-U)
1 stars

This Pine Script strategy detects ICT smart money concepts including order test zones, fair value gaps, and wicks on BTC and XAUUSD price charts. It calculates swings using pivot high and low. Signals enter long or short when the order test zone is hit with su

Strategy v5 SMC / ICT / price actionCandlestick patterns
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya BTC Improved

Risk & Lot Calculator

by Jony2176
1 stars

Risk & Lot Calculator is an overlay position-sizing tool for forex. The user sets an entry time, entry price and stop loss on the chart, plus account balance and risk percentage. The script draws the stop and two take-profit levels, from reward-to-risk ratios

Indicator v5
Updated 7 months ago · None stated GitHub repository of Risk & Lot Calculator
1 stars

This strategy implements the classic Turtle Trading System using Donchian channels. It enters long when the price breaks above the upper entry channel and short when it breaks below the lower channel, with an optional filter that skips signals following a winn

Strategy v5 BreakoutTrend
Updated 8 months ago · None stated GitHub repository of Donchian Channel - Turtle Trading

MACD Trend Filter

by itstherax
1 stars

Draws a standard 12, 26, 9 MACD with signal line and histogram in a separate pane, together with a 200-period EMA used as a trend filter. A buy label appears when MACD crosses above its signal while price is above the EMA, and a sell label when it crosses belo

Indicator v5 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of MACD Trend Filter

15m Reversal Detector

by caizongxun
1 stars

A separate-pane tool that looks for potential reversals by combining momentum, volume and candle shape. It uses RSI, MACD and a stochastic reading for momentum, volume spikes and dry-ups against a volume average, Bollinger Band extremes, wick rejection and eng

Indicator v5 Oscillators & momentumDivergence
Updated 8 months ago · MIT GitHub repository of 15m Reversal Detector
1 stars

Buy/Sell Signals - Multi-Condition combines the Relative Strength Index (RSI) with fast and slow Exponential Moving Averages (EMA) to identify trend pullback opportunities. It displays buy signals when the RSI drops below an oversold threshold during an establ

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Buy/Sell Signals - Multi-Condition

ARC EngulfingAlgo

by Tradehook-org
1 stars

A Pine v5 strategy that trades engulfing candle patterns on the price chart. A pattern needs the current body to cover a set percentage of the previous body, with options for opposite color, doji handling and a maximum previous body size in ATR. Optional confi

Strategy v5 Candlestick patternsTrend
Updated 8 months ago · None stated GitHub repository of ARC EngulfingAlgo

Simple RSI

by ferranfont
1 stars

Plots the Relative Strength Index in a separate pane with adjustable period, optional EMA smoothing and an optional higher timeframe calculation. Overbought and oversold lines are drawn at configurable levels, defaulting to 70 and 30. It has no entry or exit r

Indicator v5 Oscillators & momentum
Updated 8 months ago · None stated GitHub repository of Simple RSI

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