Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 26)

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 overlay indicator tracks the high and low of four SMC/ICT killzones in America/New_York time: the Asian range, London open, New York AM, and London close. It draws each session’s high and low on the price chart with separate colors and line widths, and us

Indicator v5 Sessions & timeSupport & resistance
Updated 7 weeks ago · MPL-2.0 GitHub repository of Session Highs and Lows Indicator (SMC Sessions, DST-safe)
1 stars

An indicator in a separate pane that scores market compression from 0 to 100 by combining percentile ranks of ATR, Bollinger Band width and Donchian width with narrow-range bar patterns and quiet volume, each with an adjustable weight. It then checks whether a

Indicator v5 Volatility & bandsBreakout
Updated 7 weeks ago · MPL-2.0 GitHub repository of CEP v2 Compression/Expansion Score
1 stars

The Gold Trend indicator identifies market structure using swing highs and lows to categorize trends into uptrends, downtrends, or ranges directly on the price chart. It plots HH, HL, LH, and LL labels alongside optional zig-zag lines, background trend tinting

Indicator v5 TrendSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Gold Trend (Market Structure)

GrimmHA Indicator

by GreyssonEnterprises
1 stars

An indicator that draws Heikin-Ashi candles in a separate pane, calculated from the open, high, low and close of each bar and coloured green or red by direction. The code also computes candle body and shadow measures such as average body size, shadow ratios an

Indicator v5 Candlestick patternsTrend
Updated 3 months ago · MIT GitHub repository of GrimmHA Indicator

A/D Context v20.10

by VVASILEVSS
1 stars

A Pine v5 indicator in a separate pane that follows accumulation and distribution flow, using Williams or Chaikin A/D together with a smoothing EMA, Chaikin Money Flow and ATR. It looks for divergences between price pivots and flow pivots, with regular, hidden

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

OrderBook For Success

by unemployedrabi
1 stars

Builds a volume-by-price view from the chart's own candles and draws it as horizontal boxes around the current price. Volume is accumulated into price levels sized from the first candle's range, and the boxes are shaded red below and green above the current le

Indicator v5 VolumeSupport & resistance
Updated 4 months ago · MIT GitHub repository of OrderBook For Success
1 stars

A strategy for a Taiwan mini index futures contract that combines a manually updated macro score with chart pattern breakouts. Growth, inflation, valuation and sentiment readings are typed in as inputs and produce a green, red or neutral bias. Entries need fou

Strategy v5 TrendBreakout Repaints
Updated 4 months ago · None stated GitHub repository of Mini Futures Macro Strategy v10

A price-chart overlay for gold that extends the earlier version of this scalping tool with stricter confirmation rules. It combines pivot market structure, liquidity sweeps, candlestick confirmation, breakout and retest logic, a higher-timeframe filter and a q

Indicator v5 SMC / ICT / price actionSupport & resistance
1 stars

Session Range vs ATR Filter compares developing intraday price ranges against the daily Average True Range (ATR) during US regular trading hours. It evaluates session range expansion at fixed time checkpoints (10:00 AM, 12:00 PM, and 2:00 PM ET) against percen

Indicator v5 Sessions & timeVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Session Range vs ATR Filter

Talons EQH/EQL Sweep

by muammeryldrm42
1 stars

This SMC strategy detects EQH and EQL levels from swing pivots using ATR tolerance. It plots EQH as red circles and EQL as green circles on the price chart. Long signals trigger on sweeps where price closes above open after touching EQL on the prior bar. It en

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

SahanX v1

by sahansbandara
1 stars

SahanX v1 is an overlay indicator that draws smart money concepts on the price chart. It marks swing market structure with optional mapping lines, bubbles, sweep markers and candle colouring, and adds volumetric order block zones with buy and sell activity, op

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

EMA Crossover Strategy

by Sandesh30-cloud
1 stars

This strategy tracks trend changes by calculating a 50-period fast Exponential Moving Average and a 200-period slow Exponential Moving Average. It triggers a long entry when the fast EMA crosses above the slow EMA and closes the position when the fast EMA cros

Strategy v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of EMA Crossover Strategy

EQH / EQL Detector

by cavaldos
1 stars

Detects equal highs and equal lows on the price chart, a common liquidity concept in smart money analysis. Pivots are confirmed over a set number of bars, and a threshold scaled by a 200-bar ATR decides how close two levels must be. Historical mode keeps every

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

Computes historical volatility from log returns and shows either its percentile or its rank over a long window, selected by a mode input. Separate lookbacks control the volatility calculation, the percentile or rank window and a smoothing average. Colours chan

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

ICT v4-weinkya Strategy

by tndg16-bot
1 stars

This strategy implements an Inner Circle Trader (ICT) framework by identifying order blocks, fair value gaps, liquidity pools, and optimal trade entry (OTE) zones. It computes a confluence score requiring a user-defined minimum threshold alongside 200 EMA and

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of ICT v4-weinkya Strategy

Breaker Blocks

by nexobanks-prep
1 stars

A smart money indicator that finds swing highs and lows with a pivot length, detects a break of structure, and marks the last opposing candle before it as an order block. When price later closes through that block, the zone flips into a bullish or bearish brea

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Breaker Blocks

Ichimoku Cloud Strategy

by Basant1Saini
1 stars

This strategy plots Ichimoku Cloud components on the price chart and generates trades based on trend confirmation. It enters long when a bullish Tenkan-Kijun cross occurs above the cloud or upon a bullish cloud breakout, with optional Chikou Span confirmation.

Strategy v5 TrendBreakout
Updated 8 months ago · None stated GitHub repository of Ichimoku Cloud Strategy

A long and short strategy built on a custom momentum index that combines price velocity, log volume and a standardised Bollinger Band width. A trade needs a recent squeeze in band width, the index breaking beyond its own two-deviation band, and price on the co

Strategy v5 BreakoutVolatility & bands
Updated 8 months ago · MIT GitHub repository of Thermodynamic Volume-Price Resonance (TVPR)

Gemini QUANTUM

by haydarkadioglu
1 stars

This overlay indicator plots a range-filter trend baseline on the price chart and marks BUY or SELL when the filter direction flips. It builds the filter from a smoothed average of source changes scaled by a multiplier, then trails price above or below that ra

Indicator v5 TrendSMC / ICT / price action Repaints
Updated 8 months ago · None stated GitHub repository of Gemini QUANTUM

ARC TrendStepper

by Tradehook-org
1 stars

ARC TrendStepper calculates and plots a stepped trend line directly on the price chart to filter out minor market noise. It updates the stepped value only when price changes exceed a configurable threshold calculated via Ticks, ATR, or percentage move. The ind

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of ARC TrendStepper

MES Gamma (7DTE)

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

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

Calculates the Chaikin Oscillator as the difference between a fast and a slow exponential average of the accumulation and distribution line, with defaults of 3 and 10. It plots in a separate pane around a zero line, with a colour gradient based on recent extre

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

The Squeeze Momentum BB Enhanced indicator computes a momentum oscillator from close prices using linear regression or SMA. It identifies squeezes between Bollinger Bands and Keltner Channels to flag potential breakouts. Plots include colored momentum lines, f

Indicator v5 Oscillators & momentumMoving averages
Updated 9 months ago · None stated GitHub repository of Squeeze Momentum BB Enhanced
1 stars

Market Structure & S/R Zones plots swing pivot points, structural labels, and horizontal support and resistance zones directly on the price chart. Using configurable swing lengths, it identifies swing highs and lows to classify higher highs, higher lows, lower

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 9 months ago · MIT GitHub repository of Market Structure & S/R Zones
1 stars

Ranges with Targets is an indicator that draws horizontal support and resistance lines on the price chart using ATR-based calculations. It detects buy and sell signals from crossovers of close price with the upper and lower range levels. A target multiplier se

Indicator v5 TrendSupport & resistance
Updated 9 months ago · None stated GitHub repository of Ranges with Targets [ChartPrime]

Support & Resistance Finder

by IamTamheedNazir
1 stars

Support & Resistance Finder is an indicator that automatically detects key support and resistance levels on the price chart. It identifies pivot highs and lows using customizable lookback periods and level strength parameters, then tracks and maintains the str

Indicator v5 Support & resistance
Updated 9 months ago · Custom licence GitHub repository of Support & Resistance Finder
1 stars

A planning utility rather than a market indicator. It shows a named primary goal with up to 20 milestone entries on the price chart, each with an editable name and a completion checkbox. The user sets how many goals are displayed and ticks them off in the sett

Indicator v5 Screeners & dashboards
Updated 11 months ago · None stated GitHub repository of Goal Setting Strategies Viprasol
1 stars

This indicator detects swing highs and lows using configurable pivot lookback periods and plots upper and lower trendlines directly on the price chart. Slope angles are dynamically calculated using ATR, standard deviation, or linear regression methods. Breakou

Indicator v5 TrendSupport & resistance Repaints
Updated 11 months ago · None stated GitHub repository of Trendlines with Breaks LuxAlgo

EMA Pullback Strategy

by surajmateti
1 stars

This strategy plots a slow trend EMA and a faster entry EMA on the price chart. It opens a long position when price is above the trend EMA, closes below the entry EMA, and crosses back above that entry EMA. It exits with a percentage stop loss and take profit

Strategy v5 TrendMoving averages
Updated 11 months ago · None stated GitHub repository of EMA Pullback Strategy
1 stars

An indicator on the price chart that finds pivot highs and lows with adjustable left and right bar counts, classifies each into numbered variants using the highs and lows of the neighbouring bars, and connects them as waves. It labels the latest eight pivots,

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 11 months ago · MIT GitHub repository of Pivot Waves 8-Pattern CHoCH
1 stars

An intraday strategy that builds a range from the first fifteen minutes after a configurable start time, then looks for breakouts of that range until a set end time. It tracks whether a long or short has been taken or stopped out each day and sizes positions a

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

Example Screener - 1

by NakliTechie
1 stars

This overlay indicator is an example multi-symbol screener drawn on the price chart. It exposes an RSI length plus overbought and oversold levels, and boolean switches that turn individual symbols on or off. Column width and screen number control panel placeme

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 1 year ago · MIT GitHub repository of Example Screener - 1

Objects

by MarcosACH
1 stars

Objects is a Pine Script utility library providing dynamic type detection functions for script development and debugging. It exports overloaded getType methods for fundamental Pine Script data types and visual drawing objects, including integers, floats, boole

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

Calculates standard Relative Strength Index values and identifies positive bullish divergences between price swing lows and RSI lows. The script tracks confirmed pivots using configurable left and right lookback lengths, storing historical pivot prices and ind

Indicator v5 DivergenceOscillators & momentum
Updated 1 year ago · GPL-3.0 GitHub repository of Positive RSI Divergence Detector

This indicator plots Parabolic SAR circles and a configurable exponential moving average on the price chart. It treats the average of open, high, low, and close above the EMA as bullish and below it as bearish. A buy label appears when SAR is below the low, th

Indicator v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Parabolic SAR + EMA 200 + MACD Signals

SOLBTC MTPI

by Mikelkulla
1 stars

SOLBTC MTPI is a Pine Script strategy designed to gauge whether Solana is outperforming Bitcoin to determine market allocation. It calculates a composite trend signal using liquidity-weighted moving averages with Supertrend logic, DEMA filters, and normalized

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of SOLBTC MTPI
1 stars

This strategy builds Tenkan, Kijun and both Senkou span lines from adjustable periods. It goes long when price is above both cloud spans and Tenkan is above Kijun, and goes short in the mirror case. Each trade carries an ATR-based stop loss and take profit. Th

Strategy v5 TrendSupport & resistance
Updated 1 year ago · None stated GitHub repository of Ichimoku Cloud Strategy

Aroon Oscillator

by munlit
1 stars

A separate-pane indicator that computes the Aroon oscillator from how recently the highest high and lowest low occurred over a set length, then smooths it with a zero-lag filter that searches for a best gain value. A second signal line is derived from it. Inpu

Indicator v5 Oscillators & momentumTrend
Updated 1 year ago · None stated GitHub repository of Aroon Oscillator

Moon Phase and MA

by mrgunkin
1 stars

This indicator calculates the lunar age from the chart date and marks a new moon above the bar and a full moon below the bar. It also plots the close as a daily 200-period moving average and weekly 20- and 200-period moving averages, each as a simple or expone

Indicator v5 Moving averages Repaints
Updated 1 year ago · MIT GitHub repository of Moon Phase and MA

Double Star Strategy

by mkdir700
1 stars

A strategy for the price chart that combines Bollinger Bands, the MACD line and a small-candle-body test. Shorts follow a close above the upper band with a small body and MACD above zero, then a lower close; longs follow a close below the lower band with a sma

Strategy v5 Mean reversionCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Double Star Strategy

FGW | dobofulop

by Dfulop98
1 stars

This indicator draws a Fibonacci golden zone from the most recent swing high and swing low on the price chart. It measures that swing over a configurable bar range and places two Fibonacci ratios, defaulting to 0.5 and 0.618, as lines that outline a potential

Indicator v5 Support & resistance
Updated 1 year ago · None stated GitHub repository of FGW | dobofulop

BTC Bot

by zhuzp98
1 stars

A long-only strategy for Bitcoin-style charts that combines an RSI-based momentum signal with a trend filter using one or two simple moving averages. It buys when the smoothed RSI signal crosses above zero while price is in an uptrend, sizes positions from a s

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of BTC Bot
1 stars

A compact Pine v5 indicator that draws imbalance zones between candles on the price chart using lines. Two settings are available: a visualization range that sets how many recent imbalances stay on the chart, and a color. Labels are in Spanish and the header c

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 1 year ago · None stated GitHub repository of Order Flow Imbalance
1 stars

This indicator calculates multiple smoothed versions of a chosen dataset using Kalman filters with adjustable gain parameters. It plots the resulting lines on the price chart for visual comparison. The main settings allow selection of the input source and togg

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Kalman Gain Parameter Mechanics

Fractal Engulfing Candles

by fiji-solutions
1 stars

This indicator marks engulfing-style candles on the price chart when they also form at a ten-bar swing. A bullish mark requires a prior bearish candle, an open at or below that close, a close at or above that open, a swing low, and RSI below 30. A bearish mark

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Fractal Engulfing Candles

CM_EMA Trend Bars

by Hurairahengg
1 stars

CM_EMA Trend Bars is a trend-following indicator that plots buy and sell signal shapes on the price chart based on exponential moving average position. It calculates a single exponential moving average (EMA) using a customizable period, defaulting to 34 bars.

Indicator v5 TrendMoving averages
Updated 2 years ago · None stated GitHub repository of CM_EMA Trend Bars

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