Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 90)

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

2 stars

This indicator adapts the classic MACD structure by replacing exponential moving averages with median calculations. It computes a fast median and a slow median of price, takes their difference to form the MCD line, and calculates a median-based signal line. Th

Indicator v5 Oscillators & momentumTrend
Updated 8 months ago · None stated GitHub repository of Median Convergence Divergence
1 stars

Tick-chart-safe Pine v5 conversion of an overlay combination indicator. It marks PBJ or PB with F2, E3 and cluster patterns, sequential combos, back-to-back day combos, Heavy Weapon with any bullish or bearish signal, GZ1 and high-volume mega combos, a first-c

Indicator v5 VolumeOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Ultra Combo v57 Tick-Friendly

Williams Alligator

by TWODS-CAPITAL
37 stars

This indicator plots Bill Williams' Alligator system directly on the price chart. It calculates three smoothed moving averages based on the median price (hl2) representing the Jaw, Teeth, and Lips lines, each projected forward into future bars via plot offsets

Indicator v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of Williams Alligator

UnfairValueGap A004

by ruckard
13 stars

UnfairValueGap A004 is a strategy that identifies value gaps on the price chart and trades based on gap filling dynamics. It calculates the distance between the current price and the far side of a recent gap, taking positions in anticipation of trend continuat

Strategy v5 SMC / ICT / price actionMoving averages
Updated 1 year ago · None stated GitHub repository of UnfairValueGap A004

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

WED & MIDNIGHT DST System is a time-based levels indicator that identifies and visualizes key support and resistance zones directly on the price chart. It plots the high and low ranges from the first five Wednesdays of each month with automatic Daylight Saving

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System
3 stars

Miller Boy Custom Study calculates a 105-period Simple Moving Average (SMA) of close prices, functioning as a trend baseline. It identifies buy signals when a bar open price crosses above the SMA baseline and sell signals when the open price crosses below it.

Indicator v5 Moving averagesTrend
Updated 5 months ago · None stated GitHub repository of Miller Boy Custom Study

Minervini Qualifier

by regalouisei
2 stars

Calculates Mark Minervini Trend Template criteria to identify stocks in strong uptrends. It evaluates key conditions based on 50-day, 150-day, and 200-day Simple Moving Averages, 52-week high and low price ranges, and relative strength against a customizable r

Indicator v5 TrendMoving averages
Updated 8 months ago · None stated GitHub repository of Minervini Qualifier

VOB Asym Combo v10.1

by nishpa800
1 stars

Detects volume order block zones across six sensitivity tiers and draws zone lines on the price chart. This version shows only combination signals rather than individual tier plots: strict ladder patterns, plus lanes that combine a rolling highest-volume event

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.1

Williams Fractals

by TWODS-CAPITAL
37 stars

This indicator identifies market turning points based on Bill Williams' fractal concept. It detects local price extrema by comparing a center bar's high or low against surrounding bars across a configurable period setting. Bullish and bearish fractals are plot

Indicator v5 Support & resistance Repaints
Updated 3 years ago · MIT GitHub repository of Williams Fractals

UnfairValueGap B003

by ruckard
13 stars

This strategy calculates the distance between the current price and the opposite end of a recent price gap. It trades against gap completion under the assumption that price will resume the prevailing trend after a partial gap fill. Take profit and stop loss va

Strategy v5 SMC / ICT / price actionMoving averages
Updated 1 year ago · None stated GitHub repository of UnfairValueGap B003

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

This indicator tracks and plots key price levels based on specific weekly and daily time anchors. It identifies the high, low, and open prices for the first Wednesdays of the month, automatically adjusting for US Daylight Saving Time changes. Additionally, it

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System
3 stars

This indicator calculates lunar cycle transitions based on an astronomical synodic reference timestamp and cycle length. It plots circular markers directly on the price chart to highlight full moon and new moon events, placing full moons at the top and new moo

Indicator v5 Sessions & time
Updated 5 months ago · None stated GitHub repository of Moon Phases Source Code

Modern Portfolio Theory

by regalouisei
2 stars

Modern Portfolio Theory is an indicator that computes portfolio metrics across a basket of cryptocurrency assets using user specified weights. The script supports ten symbols including Bitcoin, Ethereum, Aave, Binance, Solana, XRP, Ethereum Classic, Cardano, A

Indicator v5 Volatility & bandsSupport & resistance
Updated 8 months ago · None stated GitHub repository of Modern Portfolio Theory
1 stars

This indicator calculates estimated buy and sell order flow volume across ten price levels for the five most recent candles. It displays a footprint volume matrix table in a separate pane that shows estimated bid and ask volume breakdown per price bin. When vo

Indicator v5 VolumeSMC / ICT / price action Repaints
Updated 7 weeks ago · None stated GitHub repository of Pro Footprint & Imbalance

Targets For Many Indicators

by vedkanani123
1 stars

An overlay tool that draws target levels on the price chart when a user-defined condition fires. Each target compares Source A with Source B using cross over, cross under, cross or equal, and sources can be an external series or one of dozens of built-in indic

Indicator v5 Support & resistance
Updated 2 months ago · None stated GitHub repository of Targets For Many Indicators
1 stars

Draws volume order block zones on the price chart and adds asymmetric signal combinations that compare the dominant block's volume against the opposing pool. This version 10.1 combo is a tick-friendly build. Inputs set sensitivity, thresholds and cooldown. It

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.1 (Tick)

Williams Percent Range

by TWODS-CAPITAL
37 stars

Calculates the classic Williams %R momentum oscillator and displays it in a separate indicator pane. It measures the relationship between the current source price and the highest high and lowest low over a user-defined lookback period. The script plots static

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Williams Percent Range
13 stars

This strategy provides a moving average crossover system combined with Zignaly crypto platform alert integration and built-in risk management. It enters long positions when a 14-period simple moving average crosses above a 28-period SMA, and enters short posit

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Zignaly Risk M. A079

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

This indicator plots recurring Wednesday and midnight price levels on the price chart. It marks the high, low, and open of early Wednesdays each month, capturing them near 20:30 South African time and shifting that clock for US daylight saving. It also draws t

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

Mrhyh21 Buy Sell

by g-moe
3 stars

Mrhyh21 Buy Sell combines Parabolic SAR trend tracking with a 14-period RSI filter to trigger entry signals. It plots buy, strong buy, sell, and strong sell labels directly on the price chart when the Parabolic SAR direction aligns with specified RSI threshold

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of Mrhyh21 Buy Sell

This indicator plots a market-risk reading in a separate pane. It multiplies a selected USD-strength series by a yield series and divides by a denominator, defaulting to 1.61. An optional modified mode multiplies that result by a debt-to-GDP factor, using eith

Indicator v5 Screeners & dashboards
Updated 8 months ago · None stated GitHub repository of Modified Mannarino Market Risk Indicator
1 stars

An overlay indicator that plots a Hull moving average, fast and slow EMAs and a Supertrend, then prints buy or sell labels when all agree. A buy needs price above the Hull average, the fast EMA above the slow one, a bullish Supertrend, RSI above its level and

Indicator v5 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of Ultimate Buy/Sell Signal Pro

VOB Asym Combo v10.2

by nishpa800
1 stars

Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. It shows combination lanes rather than individual tier plots: strict ladder patterns, multi-zone coincidences, and rolling highest-volume or all-time-high-volu

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.2

Woodies CCI

by TWODS-CAPITAL
37 stars

Woodies CCI is a momentum oscillator indicator that calculates two versions of the Commodity Channel Index: a Turbo version and a standard 14-period version. It plots the CCI Turbo as a green line, the CCI 14 as a red line, and a histogram that changes color t

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Woodies CCI

Zignaly2Beta

by ruckard
13 stars

This library provides helper functions to format and build JSON webhook alert payloads for the Zignaly automated trading platform. It constructs formatted messages containing parameters such as trading pair, exchange, account type, leverage, margin mode, hedge

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

WED & Midnight DST System

by alboogycOdR
6 stars

This indicator plots key historical support and resistance levels based on Wednesday trading sessions and daily midnight opens adjusted for UTC+2 daylight saving time. It calculates and draws high, low, and open lines from 15-minute session data across multipl

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of WED & Midnight DST System

Mrhyh21 Levels

by g-moe
3 stars

This indicator plots horizontal lines on the price chart for pre-market high and low, prior-day high and low, prior-week high and low, and prior-month high and low. It customizes pre-market session start in EST with options for line colors, labels, and styles.

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Mrhyh21 Levels

This indicator runs Monte Carlo price-path simulations from recent logarithmic returns and draws the resulting forecast paths as polylines on the price chart. It samples either a normal distribution or a bootstrap of stored returns, controlled by a seed, simul

Indicator v5 Volatility & bands
Updated 8 months ago · None stated GitHub repository of Monte Carlo (Polyline Traceback) [Kioseff Trading]

Pyramid

by morindok
1 stars

Pyramid is a geometric drawing tool that plots a 3D pyramid structure directly on the price chart. The user selects two anchor points on the chart to define the time and price dimensions. Once set, the script calculates relative time and price offsets to draw

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Pyramid

Volume Delta Trailing Stop

by vedkanani123
1 stars

An overlay indicator that estimates up and down volume from lower-timeframe candles, from 1 second to 1 minute, and builds a trigger line when volume delta disagrees with the candle color. A signal appears when price breaks that line, and a trailing stop follo

Indicator v5 VolumeTrend Repaints
Updated 2 months ago · None stated GitHub repository of Volume Delta Trailing Stop

VOB Asym Combo v10.3

by nishpa800
1 stars

Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. Output is limited to combination lanes: strict ladder patterns, multi-zone coincidences, and rolling highest-volume or all-time-high-volume events paired with

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.3

Zig Zag

by TWODS-CAPITAL
37 stars

This overlay indicator draws a zigzag of confirmed swing highs and lows on the price chart. It finds pivots with a depth window, then keeps a turn only when price moves beyond the deviation threshold. Lines connect successive reversals, and the last segment ca

Indicator v5 Support & resistanceTrend Repaints
Updated 3 years ago · MIT GitHub repository of Zig Zag

ZignalyBeta

by ruckard
13 stars

This Pine Script v5 library provides functions to generate Zignaly alert messages. It includes utilities for selecting separators and quotes based on alert type (webhook or email), extracting the pair from syminfo, creating common alert messages with exchange,

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

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

Plots key price levels directly on the main chart using time-based reference points. It tracks the high, low, and open prices for each Wednesday of the month while automatically adjusting for US Daylight Saving Time shifts. The indicator also identifies daily

Indicator v5 Support & resistanceSessions & time
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

Mrhyh21 SMC

by g-moe
3 stars

This SMC indicator plots market structure features on the price chart. It identifies swing points based on a configurable length and marks internal order blocks, swing order blocks, and fair value gaps. Candles can be colored according to detected trend direct

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

Draws volume order block zones on the price chart and adds asymmetric signal combinations that compare the dominant block's volume against the opposing pool. This version 10.3 combo is a tick-friendly build. Inputs set sensitivity, thresholds and cooldown. It

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.3 (Tick)

WED & MIDNIGHT DST System

by alboogycOdR
6 stars

This indicator identifies and plots recurring key price levels based on two time-based systems: Wednesday session highs, lows, and opens, along with Midnight (UTC+2) reference levels. It automatically adjusts for Daylight Saving Time and fetches 15-minute time

Indicator v5 Support & resistanceSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of WED & MIDNIGHT DST System

Mrhyh21 SMC

by g-moe
3 stars

This indicator identifies market structure and key price levels directly on the price chart. It plots supply and demand zones based on swing highs and swing lows, identifies break of structure levels when zones are breached, and highlights fair value gaps repr

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

Moving Averages 3D

by regalouisei
2 stars

This indicator calculates ten sequential moving averages using either simple or exponential moving averages and renders them as a pseudo-three-dimensional grid in a separate pane. It projects recent price trends through an array of dynamically colored line dra

Indicator v5 Moving averagesTrend
Updated 8 months ago · None stated GitHub repository of Moving Averages 3D

VOB Asym Combo v10.4

by nishpa800
1 stars

Detects volume order block zones from six sensitivity tiers and draws zone lines on the price chart. It plots combination lanes only: strict ladder patterns, multi-zone coincidences, and rolling highest-volume or all-time-high-volume events paired with any zon

Indicator v5 SMC / ICT / price actionVolume
Updated 2 months ago · None stated GitHub repository of VOB Asym Combo v10.4

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