Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 87)

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

Trailering F008

by ruckard
13 stars

Trailering F008 is a reversal strategy and execution template designed to send automated trade signals to Zignaly copy-trading platforms. It generates entry conditions using custom moving average envelopes known as Curie closing lines, aiming to optimize posit

Strategy v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Trailering F008

ORB + ICT Hybrid Strategy

by alboogycOdR
6 stars

This strategy builds a New York and London opening range from user-set start and end times and stores the session high and low on the price chart. After the range, it flags a bullish or bearish liquidity grab when price trades beyond the prior range and closes

Strategy v5 Sessions & timeSMC / ICT / price action Repaints
Updated 7 months ago · None stated GitHub repository of ORB + ICT Hybrid Strategy

This indicator overlays a Hull Moving Average and three Exponential Moving Averages on the price chart while monitoring signals from MACD, Stochastic Oscillator, and Time Segmented Volume. It tracks trend direction changes, MACD histogram color shifts from bri

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of MACD Signals with Alert System

Ichimoku Oscillator

by regalouisei
2 stars

The Ichimoku Oscillator indicator calculates conversion line, base line, leading span, and lagging span using specified periods. It plots these values in a separate pane along with an optional EMA overlay. Main settings allow customization of line lengths, ATR

Indicator v5 TrendOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Ichimoku Oscillator

The Morindok Dynamic Gann Spiral Ratio indicator computes time and price angles derived from a dynamic N value based on volatility and a selected price source. It calculates a ratio between these angles and generates buy or sell signals when the ratio approach

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Morindok Dynamic Gann Spiral Ratio

Signal Hub

by nishpa800
1 stars

Overlay indicator that gathers around thirty signal modules into one study on the price chart. Modules include White Flag momentum, OW overlap and super signals, FC and E3 clusters, a Red Plus marker, RVOL windows, a Fauna X-in-Y pattern, a Mango swing bottom,

Indicator v5 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of Signal Hub

Three Black Crows - Bearish

by TWODS-CAPITAL
37 stars

This script identifies the Three Black Crows bearish reversal candlestick pattern directly on the price chart. It checks for three consecutive long red candles that open within the previous body, close consecutively lower, and feature minimal lower shadows com

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Three Black Crows - Bearish

Trailering G010

by ruckard
13 stars

Trailering G010 is a Pine Script v5 strategy that draws on the price chart. It uses Curie closing lines from simple moving averages of an ohlc4 source, with separate high and low lengths, to run long-only and short-only logic at the same time, including an opt

Strategy v5 Moving averages
Updated 1 year ago · None stated GitHub repository of Trailering G010

Target Radar

by eddiebelaval
7 stars

Target Radar is a multi-factor forecasting indicator that plots projection bands, forward boxes, and dynamic target zones directly on the main price chart. It calculates a forecast score by combining z-scores for trend, momentum, volume pressure, and volatilit

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of Target Radar

ORB ON SLVRBL

by alboogycOdR
6 stars

ORB ON SLVRBL is a strategy that combines Opening Range Breakouts with ICT Silver Bullet concepts, including Fair Value Gaps (FVG) and Market Structure Shifts (MSS). It identifies breakouts based on candle closes or wicks within designated session windows. Tra

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 7 months ago · None stated GitHub repository of ORB ON SLVRBL

This strategy combines MACD histogram crossovers with a dual moving average cloud to generate long and short trading signals directly on the price chart. It evaluates histogram crossings relative to zero while filtering entries using overall MACD positioning a

Strategy v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of MACD Signals with Trading Dashboard Strategy
2 stars

This indicator builds a custom multi-symbol index and draws it in a separate pane as candles, bars, or a line. A holdings table can list the selected symbols and sort them by symbol name, percent change, last price, or market cap, in ascending or descending or

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Index Generator [MUQWISHI]

Squarify 46 v2

by nishpa800
1 stars

Overlay indicator that merges forty-six numbered buy and sell triggers into one study on the price chart. The changelog describes combinations of unified combo, Napalm and Charge engines, Heavy Weapon and Floor patterns, UU, UUU and UUUU streaks, an Omega mark

Indicator v5 BreakoutVolume
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2
37 stars

This indicator identifies and highlights the Three White Soldiers bullish reversal candlestick pattern on the price chart. It checks for three consecutive long-bodied bullish candles where each candle opens within the previous candle's body, closes above the p

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Three White Soldiers - Bullish

Trailering H005

by ruckard
13 stars

Trailering H005 is a trading strategy template designed for automated position management and execution via Zignaly webhooks, originally tested on BTCUSDT on the 1-hour timeframe. It evaluates price excursion across configurable sub-strategy lookback periods t

Strategy v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering H005

ORB Silver Bullet

by alboogycOdR
6 stars

This overlay indicator marks an opening-range breakout for a chosen session and combines it with fair value gaps, market structure shifts, order blocks, and optional liquidity sweeps. Buy and sell signals depend on the selected execution type, close or wick br

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of ORB Silver Bullet
3 stars

This strategy calculates a Volume-Weighted Moving Average Convergence Divergence (VWMA MACD) and its histogram average to generate trade signals in a separate pane. It enters long positions when the MACD histogram crosses above its simple moving average and sh

Strategy v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of MACD VWMA Strategy
2 stars

This indicator builds a lower-timeframe view in a separate pane. It reconstructs price as traditional candles or as Heikin-Ashi, Kagi, Point and Figure, Renko, or Line Break, and plots a price-versus-volume graph colored from early to late data. Three selectab

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Intrabar Analyzer [Kioseff Trading]
1 stars

This indicator calculates W.D. Gann Square of 9 support and resistance levels based on cardinal (90°, 180°, 270°, 360°) and ordinal (45°, 135°, 225°, 315°) polar angles. It anchors calculations to recent swing pivots, highs, lows, or a user-defined manual pric

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Morindok Gannzilla Sq9

Squarify 46 v2

by nishpa800
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2

Tri-Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator scans price charts to identify the Bearish Tri-Star candlestick pattern, which consists of three consecutive Doji candles appearing at the peak of an uptrend. It verifies trend context using simple moving averages (SMA 50 or SMA 200) or allows t

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Tri-Star - Bearish

Trailering I005

by ruckard
13 stars

Trailering I005 is a crypto-focused trading strategy template designed for automated execution through Zignaly webhooks. It evaluates price excursion to minimize risk and maximize returns. The strategy supports take-profit targets, trailing take-profits, fixed

Strategy v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering I005
7 stars

The USD Volume (Auto-Unit Scaling) indicator calculates the trading value as close price multiplied by volume for each bar. It plots this monetary value in a separate pane using column style bars colored green for bullish and red for bearish candles. Units aut

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of USD Volume (Auto-Unit Scaling)

Price Action Suite

by alboogycOdR
6 stars

Price Action Suite is an overlay indicator that identifies key price action and smart money concepts directly on the main chart. It plots internal and external market structure events such as Break of Structure and Change of Character, displays swing order blo

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of Price Action Suite
3 stars

This strategy combines MACD and Supertrend to generate entries on the price chart. The MACD oscillator uses selected source, fast length 12, slow 26, signal 9 and EMA or SMA. Supertrend on higher timeframe 15 provides trend direction and ATR trailing stop. Sig

Indicator v5 TrendOscillators & momentum Repaints
Updated 5 months ago · None stated GitHub repository of MACD VWMA Strategy

This indicator evaluates market non-randomness by running a Wald-Wolfowitz runs test on intrabar price movements. Using lower timeframe data requested via external libraries, it measures whether intrabar directional price sequences significantly deviate from a

Indicator v5
Updated 8 months ago · None stated GitHub repository of Intrabar Run Count Indicator [tbiktag]
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v2 (Tick-Friendly)

Tri-Star - Bullish

by TWODS-CAPITAL
37 stars

Identifies and highlights the Bullish Tri-Star candlestick pattern on the price chart. The indicator detects three consecutive doji candles following an established downtrend, determined by moving average trend rules (SMA 50, SMA 200, or disabled). When the pa

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Tri-Star - Bullish

Trailering J009

by ruckard
13 stars

Trailering J009 is a long-only strategy designed for cryptocurrency trading with Zignaly integration. It evaluates price excursion across multiple sub-strategy trigger conditions to size trade entries and refine exit points. The system features flexible exit m

Strategy v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Trailering J009
7 stars

This indicator overlays volume-delta bubbles and absorption labels on the price chart. It signs volume as positive or negative from either a lower-timeframe open-close comparison or the current candle direction, then flags unusual activity with an adaptive z-s

Indicator v5 Volume
Updated 3 months ago · None stated GitHub repository of Volume Delta Bubble + Absorption
6 stars

The Professional ORB + ICT System combines Opening Range Breakout (ORB) techniques with Smart Money Concepts on the price chart. It defines session opening ranges across major global sessions, classifies range width using ATR metrics, and tracks Relative Volum

Indicator v5 SMC / ICT / price actionBreakout
Updated 7 months ago · None stated GitHub repository of Professional ORB + ICT System

Market Rhythm Adaptive Trading Algo V1 is an overlay indicator that combines Kaufman Adaptive Moving Averages (KAMA), an ADX regime filter, Choppiness Index, Rate of Change, and RSI to identify market rhythm and trend entries. Depending on whether the ADX valu

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Market Rhythm Adaptive Trading Algo V1

Intraday Intensity Modes

by regalouisei
2 stars

Intraday Intensity Modes calculates David Bostian's Intraday Intensity Index with multiple calculation variations. It evaluates price positioning within the high-low range relative to volume, offering cumulative, normalized oscillator, and inverse volume optio

Indicator v5 VolumeOscillators & momentum
Updated 8 months ago · None stated GitHub repository of Intraday Intensity Modes

Moving Box

by morindok
1 stars

This indicator projects dynamic geometric shapes and envelopes directly onto the price chart based on moving averages and extreme price lookbacks. Users can select shapes such as boxes, rhombuses, ellipses, spirals, or hypercubes. The script calculates base, m

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Moving Box

Squarify 46 v3.1

by nishpa800
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v3.1

Triple EMA

by TWODS-CAPITAL
37 stars

This indicator plots a triple exponential moving average of the closing price on the price chart. It smooths close with an exponential moving average of a chosen length, then applies the same average twice more, and combines the three results as three times th

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Triple EMA

Trailering K004

by ruckard
13 stars

Trailering K004 is a long-only strategy designed with integrated Zignaly automated alert webhooks. It calculates entry signals and dynamically adjusts capital allocation based on the number of active sub-strategy conditions met over a specified lookback period

Strategy v5 BreakoutVolatility & bands
Updated 1 year ago · None stated GitHub repository of Trailering K004

VWAP Trader NXi

by eddiebelaval
7 stars

VWAP Trader NXi calculates a daily session-anchored Volume Weighted Average Price along with two custom standard deviation bands on the main price chart. It plots the core VWAP, Value Area bands, outer extension zones with background shading, and the previous

Indicator v5 VolumeVolatility & bands
Updated 3 months ago · None stated GitHub repository of VWAP Trader NXi
6 stars

This indicator marks a trading session in the GMT+2 timezone and builds a price range from the four hours before the session starts. It requests one-minute highs and lows, stores the range extremes, and draws two horizontal lines on the price chart that extend

Indicator v5 Sessions & timeSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Range Rejection Trading Indicator

Market View++

by g-moe
3 stars

Market View++ is a multi-symbol market overview dashboard indicator that displays metrics across multiple financial assets on the price chart. It tracks up to ten customizable individual symbols alongside grouped composites, calculating key metrics such as rel

Indicator v5 Screeners & dashboardsSessions & time
Updated 5 months ago · None stated GitHub repository of Market View++

The Keltner Center Of Gravity Channel Mutations Indicator calculates adaptive channel metrics based on Donchian range Fibonacci levels (38.2% and 61.8%) and Average True Range (ATR) offsets. The lookback period automatically adjusts according to the active tim

Indicator v5 Volatility & bandsVolume
Updated 8 months ago · None stated GitHub repository of Keltner Center Of Gravity Channel Mutations Indicator

Moving Box

by morindok
1 stars

This indicator draws customizable boxes, rhombuses, or ellipses on the price chart centered on a selected moving average. It computes the box height from the MA's high-low range over a lookback period and applies optional golden ratio midpoints or symmetry. Sh

Indicator v5 Moving averagesSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Moving Box
1 stars

Overlays up to 46 buy and sell marker signals on the price chart, built from standard deviation displacement, pullback pockets, relative volume tiers and fair value gap structures. Inputs set three displacement multipliers, a first-bar-only switch and per-sign

Indicator v5 VolumeSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Squarify 46 v3.1 (Tick-Friendly)

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