Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 9)

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

A strategy that links TradingView to an external trading backend. Its inputs cover an RSI with overbought and oversold levels, a fast and slow EMA pair, and a London kill zone time window. It is set up to send signals to a webhook address, with an optional API

Strategy v5 Sessions & timeOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Quantum Trading Connector

BEST Supertrend Strategy

by Ayooluwa-trading-dev
1 stars

This strategy combines a Supertrend line, calculated on a selectable timeframe from daily up to yearly, with a fast and slow SMA pair, 7 and 20 by default. A long needs price above the Supertrend level and the fast SMA above the slow one; a short needs the rev

Strategy v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of BEST Supertrend Strategy

Bakome Buy Sell

by BAKOME-Hub
1 stars

This indicator plots a fast and a slow EMA, 5 and 13 by default, on the price chart and gives a buy or sell signal when they cross, optionally requiring the signal candle to close in the same direction. For each signal it draws an entry, an ATR-based stop loss

Indicator v5 Moving averagesTrend
Updated 5 months ago · MIT GitHub repository of Bakome Buy Sell

XAUUSD Renko Scalping

by thealgo899-creator
1 stars

A strategy intended for gold on a Renko chart with a box size of 1. It goes long when close is above its five-bar average and RSI sits between 45 and the overbought level, and short on the mirror conditions. An optional volume filter is available. Stop loss an

Strategy v5 ScalpingOscillators & momentum
Updated 5 months ago · None stated GitHub repository of XAUUSD Renko Scalping

MACD DEMA Pro

by ebarkinkaras-lang
1 stars

A separate-pane oscillator that builds a MACD from double exponential moving averages to reduce lag, with a signal line and a colored histogram that changes shade as momentum rises or falls. It can mark regular divergences using pivot lookback and offers an op

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of MACD DEMA Pro
1 stars

An overlay indicator that combines smart money concepts with order blocks and moving averages. It draws swing and internal market structure with sweep and bubble options, volumetric order blocks that show recent buy and sell activity, optional breaker blocks a

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 5 months ago · None stated GitHub repository of Combined Indicators: SMC + OBD + 7MA

OMEGA ULTIMATE

by princeleuel-code
1 stars

An all-in-one smart money overlay that marks swing points, break of structure and change of character, order blocks, fair value gaps, liquidity levels and sweeps, a 50 percent equilibrium line, power-of-three session phases and SMT divergence. It adds a dashbo

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

BWC Mean Reversion v5

by tonimaxx
1 stars

A long-only strategy for stocks that buys when a very short RSI is below a threshold, the close is under the lower Bollinger Band, price is above a 200-period SMA, the opening gap down is small and average dollar volume clears a floor. It closes the position w

Strategy v5 Mean reversion
Updated 5 months ago · Custom licence GitHub repository of BWC Mean Reversion v5

News Dash

by SarpSoysal
1 stars

News Dash is an overlay indicator that flags bars where both volume and bar range are unusually large. A bar is marked when its volume exceeds the recent average by one multiplier and its high-low range exceeds the ATR by another, with a lookback period settin

Indicator v5 Volatility & bandsVolume
Updated 6 months ago · MIT GitHub repository of News Dash

SmartFlow Market Indicator

by Nadarisgetae
1 stars

This indicator gives buy and sell labels on the price chart by combining a triple moving average trend filter (EMA 21, EMA 50 and SMA 200), an RSI zone check, a volume spike on a candle of the same direction, and an optional pivot breakout. It also marks pivot

Indicator v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of SmartFlow Market Indicator

APEX Scalper v3

by Sandesh30-cloud
1 stars

A Pine v5 strategy that scores trade setups from several indicators before entering. Inputs cover an 8, 21 and 50 EMA ribbon, a higher-timeframe EMA trend check using previous-bar values, RSI, MACD, Stochastic RSI, ADX, a volume spike test and optional London

Strategy v5 ScalpingTrend
Updated 6 months ago · None stated GitHub repository of APEX Scalper v3
1 stars

This indicator detects bullish and bearish Fair Value Gaps (FVGs) using three-bar price imbalance logic directly on the main price chart. When an imbalance occurs, it highlights the price gap with semi-transparent boxes and plots triangular shape markers above

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of FVG Scanner - Institutional Bridge

ARPS OB Scalp

by ali-rajabpour
1 stars

Overlay indicator that plots 200-period simple and exponential moving averages from the 30 minute, 1 hour and 4 hour timeframes on the price chart, using request.security. It also offers a Williams Fractal reversal display, toggled by a single setting. Intende

Indicator v5 Moving averagesScalping
Updated 6 months ago · None stated GitHub repository of ARPS OB Scalp

ARPS Convergent Pro V5

by ali-rajabpour
1 stars

Combines several oscillators in one separate pane: a WaveTrend style indicator, Elliott Wave Oscillator, RSI, Stochastic RSI, RSI divergence markers and an optional squeeze momentum display. Each component has its own show switch, so the pane can be reduced to

Indicator v5 Oscillators & momentumDivergence
Updated 6 months ago · None stated GitHub repository of ARPS Convergent Pro V5

BOS & CHoCH Strategy

by cavaldos
1 stars

A strategy that detects break of structure and change of character events from swing and internal pivots, based on LuxAlgo-style smart money logic, and draws them on the price chart. The trade-on setting chooses whether swing or internal structure drives trade

Strategy v5 SMC / ICT / price action
Updated 6 months ago · None stated GitHub repository of BOS & CHoCH Strategy
1 stars

A large all-in-one overlay built for the 30-minute chart that bundles many tools in one script. It includes the Williams Alligator and fractal reversal setups, divergence detection, RSI, an ATR-ADX trend gauge, EMA crosses on 30-minute, 4-hour and daily frames

Indicator v5 TrendOscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of ARPS Ultimate Trading Solution (A)

ARPS Super Ichimoku

by ali-rajabpour
1 stars

An Ichimoku overlay that offers either the classic 9, 26, 52 settings or a longer set aimed at around-the-clock markets, with an optional denoiser. It plots Tenkan, Kijun, the cloud and Span B, projects future Tenkan, Kijun and Span B values, and marks valid m

Indicator v5 TrendSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ARPS Super Ichimoku

ARPS Stoploss

by ali-rajabpour
1 stars

An indicator that calculates two suggested stop levels from a 7-period ATR: the current bar low minus the ATR for long trades, and the current bar high plus the ATR for short trades. The values appear in a small table in the bottom right of the price chart, gr

Indicator v5 Volatility & bands
Updated 6 months ago · None stated GitHub repository of ARPS Stoploss

ARPS Pivots

by ali-rajabpour
1 stars

Draws pivot point levels on the price chart in several calculation types: Traditional, Fibonacci, Woodie, Classic, DM and Camarilla. The pivot period can follow the chart automatically or be fixed from daily up to multi-year. Each of the pivot, support and res

Indicator v5 Support & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ARPS Pivots

ARPS Long Term Strategy

by ali-rajabpour
1 stars

Despite its name, this is an indicator that stacks many studies on the price chart: an Ichimoku-style set of lines and cloud, a Hull moving average with a Tillson T3 line, a configurable moving average with several smoothing methods, WaveTrend signals, ATR-bas

Indicator v5 TrendMoving averages
Updated 6 months ago · None stated GitHub repository of ARPS Long Term Strategy

ARPS Info Table

by ali-rajabpour
1 stars

An overlay that gathers several studies into an on-chart table. It reads 200-period simple and exponential moving averages on 30 minute, 1 hour, 4 hour, 6 hour, 12 hour, daily and weekly timeframes, and calculates ATR-based long and short stop levels. It also

Indicator v5 Moving averagesScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of ARPS Info Table
1 stars

A smart money concepts overlay that marks internal and swing market structure with break of structure and change of character labels, optional internal and swing order blocks, fair value gaps, equal highs and lows, and premium and discount zones. It also plots

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ARPS ICT Smart Money Assistant

ARPS IchiGann

by ali-rajabpour
1 stars

An Ichimoku-based indicator on the price chart that plots the Tenkan, Kijun and Chikou lines and the Kumo cloud, and adds projected future values for Tenkan, Kijun, Span B and the cloud. It marks valid Tenkan, Kijun and Span B levels, highlights support and re

Indicator v5 TrendSupport & resistance Repaints
Updated 6 months ago · None stated GitHub repository of ARPS IchiGann
1 stars

Detects a long list of candlestick patterns, such as engulfing, harami, morning star, evening star, hammer, doji and marubozu, and prints a label on the price chart for each match. Every pattern has its own on/off switch. A trend rule based on the 50-bar avera

Indicator v5 Candlestick patterns
Updated 6 months ago · None stated GitHub repository of ARPS All Candlestick Patterns

MTF Confluence Strategy

by DirtDemon31
1 stars

A multi-timeframe confluence indicator that scores setups from several components: an EMA ribbon with ADX and DMI, MACD, Bollinger Bands, volume against its average, VWAP with pivot points, and Stochastic RSI timing. Daily, 4-hour and 1-hour closes versus an E

Indicator v5 TrendOscillators & momentum
Updated 6 months ago · None stated GitHub repository of MTF Confluence Strategy
1 stars

An indicator that treats bar-to-bar price change per second as a velocity and plots it in a separate pane, alongside the summed upward and downward velocity over a window and their difference as a pressure balance line. It also counts consecutive bars moving i

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Velocimetro de Fluxo e Vetores

SMC Features

by yusuke746
1 stars

A price-chart indicator that computes a set of about thirty market features and prints them in a two-column table, one feature name and value per row, so an external tool can read them. Inputs cover 4H EMA lengths, ATR, RSI, MACD, Bollinger Bands, swing lookba

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 6 months ago · None stated GitHub repository of SMC Features

BTC Dip Alerts HQ

by gabriel-chiappa
1 stars

An alert-generation indicator for Bitcoin charts that places no orders. It watches for intraday drops from the reference open at six adjustable percentage thresholds, a daily close drop threshold, and price crossing down through a ladder of eight adjustable pr

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of BTC Dip Alerts HQ

SUPER3 Brahmastra

by sukur123
1 stars

A bundle of overlay tools on one price chart: central pivot range levels for today, tomorrow and the week, with R1 to R3 and S1 to S3 lines, previous day high, low and close, and an optional VWAP. It also includes an ATR-based trend line with buy and sell labe

Indicator v5 Support & resistanceTrend Repaints
Updated 6 months ago · None stated GitHub repository of SUPER3 Brahmastra
1 stars

This indicator detects reversal candlestick patterns, including hammer, hanging man, doji family, engulfing, morning and evening star, harami, piercing line, dark cloud, shooting star and inverted hammer, and marks them with signal labels on the price chart. P

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

A statistics indicator in a separate pane that estimates the autocorrelation of a chosen series using a fast rolling update rather than recomputing the whole window. The series can be log returns, absolute returns or the original source, over a lookback of 100

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Fast Autocorrelation Estimator

Structure TA

by trananh211
1 stars

A market structure overlay in the smart money style. It marks swing highs and lows, break of structure and change of character events, optionally with an inducement step, and shows internal structure and volume on major swings. It also draws previous day high

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

ICT v4-weinkya All-in-One overlays smart money concept structural elements directly on the price chart. It detects Market Structure Shifts (MSS), Breaks of Structure (BOS), Order Blocks, Fair Value Gaps (FVGs), and Buyside or Sellside Liquidity levels. Additio

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

Jigsa God Mode Pro

by jigsabersisa
1 stars

This indicator overlays a 50 and 200 EMA trend filter, RSI confirmation and pivot-based zones on the price chart, and prints buy and sell signals with projected entry, ATR-based stop loss and risk to reward take profit lines. Optional layers include liquidity

Indicator v5 SMC / ICT / price actionTrend
Updated 6 months ago · GPL-3.0 GitHub repository of Jigsa God Mode Pro

AI Trading Signals

by ebrahim-sani
1 stars

An overlay indicator that prints buy and sell labels on the price chart using local technical rules: price above or below a fast and slow EMA, RSI between 50 and 70 or 30 and 50, and the MACD histogram sign. It can also draw take profit and stop loss levels ba

Indicator v5 TrendOscillators & momentum
Updated 7 months ago · Custom licence GitHub repository of AI Trading Signals

Killzones & Levels

by Jony2176
1 stars

Killzones & Levels is an overlay session indicator that highlights the London, New York and Asia sessions with boxes, using time zone names so daylight saving changes are handled automatically. For each session it can draw the high, low and midpoint. It also p

Indicator v5 Sessions & timeSupport & resistance
Updated 7 months ago · None stated GitHub repository of Killzones & Levels
1 stars

CSA-15 Crypto Scalping Indicator is a TradingView Pine Script v5 overlay indicator designed for crypto scalping. It calculates multiple confirmations including trend direction from fast and slow EMAs, momentum via RSI, volume surge detection, squeeze and volat

Indicator v5 TrendOscillators & momentum
Updated 7 months ago · None stated GitHub repository of CSA-15 Crypto Scalping Indicator

TRADDY

by mehmetaltugakgul
1 stars

A price-chart indicator that plots KAMA and Bollinger Bands with squeeze shading, and combines more than twenty studies, such as MACD, RSI, stochastic, CCI, ADX and OBV, into one weighted bullish or bearish net score. Score thresholds label readings from stron

Indicator v5 Oscillators & momentumVolatility & bands
Updated 7 months ago · None stated GitHub repository of TRADDY
1 stars

A strategy for index charts such as the S&P 500 on five minutes, trading only inside a configurable New York time window. It looks for a large-bodied candle, measured against ATR, that follows a short-term liquidity sweep of recent highs or lows, with an optio

Strategy v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Gemini ICT V11 Extended Dashboard

Market Fear Gauge Pro

by wiktorjl
1 stars

A separate-pane sentiment oscillator that blends several fear and greed components into one composite score: VIX, market breadth, put/call ratio, safe-haven flows, momentum, price strength, junk bonds and an optional crypto component. Scores are shown as z-sco

Indicator v5 Oscillators & momentumScreeners & dashboards
Updated 7 months ago · None stated GitHub repository of Market Fear Gauge Pro

This strategy detects low-volatility consolidation by identifying when Bollinger Bands contract inside Keltner Channels. When the squeeze releases, it evaluates linear regression momentum and optional volume spikes to confirm breakouts. Long signals occur on r

Strategy v5 Volatility & bandsBreakout
Updated 7 months ago · None stated GitHub repository of Bollinger Band Squeeze - Volatility Breakout

ICT iFVG Continuation Engine

by kashifali1234a12-beep
1 stars

A strategy that tracks fair value gaps on a higher timeframe, 15 minutes by default, and watches for price to tap a zone and then invert a one-minute fair value gap before entering. It trades only inside a set session window, limits trades per day, and can opt

Strategy v5 SMC / ICT / price actionSessions & time
Updated 8 months ago · None stated GitHub repository of ICT iFVG Continuation Engine

ATR Range Break

by itstherax
1 stars

Plots the 20-bar highest high and lowest low on the price chart, plus buy and sell levels set one ATR beyond them. A buy triangle appears when the close first moves above the upper level and a sell triangle when it first drops below the lower level. The ATR va

Indicator v5 BreakoutVolatility & bands
Updated 8 months ago · None stated GitHub repository of ATR Range Break

HalfTrend

by 0xRadicalEd
1 stars

The indicator overlays HalfTrend trend-following lines and ATR channel bands on the main price chart. It calculates trend reversals using high and low price channels over a user-defined amplitude, combined with Average True Range deviation channels. Directiona

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of HalfTrend
1 stars

An oscillator pane that plots a Bollinger Band z-score as coloured columns with reference lines at plus and minus two and three. Colour depends on a volatility regime taken from the percentile rank of band width, separating squeeze, normal and expansion. It al

Indicator v5 SMC / ICT / price actionVolatility & bands
Updated 8 months ago · MIT GitHub repository of 15m BB-SMC Confluence Oscillator
1 stars

This indicator measures trend strength with Bollinger Bands. It computes a simple moving average as basis and plots upper and lower bands using standard deviation. The region between bands fills with color. Bar color changes based on price position relative to

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Trend Strength Signals Enhanced
1 stars

A Pine v5 strategy that classifies the market as volatile, trending or ranging using ATR against its history and ADX thresholds. In trending conditions it trades a 9 and 20 EMA crossover, and in ranging conditions it fades Bollinger Band extremes. Stops and ta

Strategy v5 TrendMean reversion
Updated 8 months ago · None stated GitHub repository of APSAlgo Adaptive Pattern System
1 stars

Detects pivot highs and lows using a fractal length and draws Fibonacci retracement lines between the latest swing points on the price chart. Settings set the fractal length in bars and toggle the lines and their price labels. Pivots need the same number of ba

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Simple Fibonacci Analyzer

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