Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 78)

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

Momentum Strategy

by TWODS-CAPITAL
37 stars

This strategy measures price momentum as the difference between the close and the close a set number of bars earlier, then measures the one-bar change of that momentum. It places a long stop order just above the bar high when both values are positive, and a sh

Strategy v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Momentum Strategy
13 stars

Ruckard Noro TrendRibbon N003 is a trend-following strategy designed to generate long and short trade signals based on side changes in the Noro Trendribbon indicator. It calculates upper and lower moving average corridors alongside ADX smoothing to identify ch

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon N003

ICT ORB

by alboogycOdR
6 stars

ICT ORB draws the opening range for a chosen session and marks breakout conditions on the price chart. It can require relative volume, a volume spike, a liquidity sweep, displacement, trend alignment, an order block, and higher-timeframe bias before a fair-val

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

The Historical Vol MA Band Indicator calculates volatility bands around a simple moving average using 52-week high and low data from the weekly timeframe. It plots upper, middle, and lower bands on the main price chart along with optional trailing stop-loss le

Indicator v5 Volatility & bandsMoving averages
Updated 5 months ago · None stated GitHub repository of Historical Vol MA Band Indicator

AR Forecast Scatterplot

by regalouisei
2 stars

This indicator plots an AR forecast on the price chart using the selected source. It computes autocorrelation between close and time across multiple lookback lengths to identify the strongest trend, then generates forecast results. Results appear as a scatter

Indicator v5 Trend
Updated 8 months ago · None stated GitHub repository of AR Forecast Scatterplot

Fractal Mirror Levels

by morindok
1 stars

Fractal Mirror Levels identifies swing highs and swing lows using multi-bar fractal logic and projects mirrored horizontal support and resistance levels across the price chart. Users select two interactive points directly on the chart to establish a reference

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Fractal Mirror Levels
1 stars

Bearish-only overlay indicator that plots 36 sell-side detection markers on the price chart. It combines high-volume candles, standard deviation displacement and a PBJ trend filter, with a revised price-spike relative volume ladder in this build. Toggles switc

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bearish New RVOL v1.0

Key Levels

by mikeyhu70
1 stars

A Pine Script v5 indicator that draws support and resistance zones on the price chart from recent pivot highs and lows. Zone width is based on ATR times a multiplier, capped by a maximum percentage, and overlapping zones can be aligned and extended to the righ

Indicator v5 Support & resistanceVolatility & bands
Updated 6 months ago · None stated GitHub repository of Key Levels

Value

by ivansoft
1 stars

An indicator in a separate pane that works with traded value, volume times the mid price. It shows single bar values, levels derived from them, values from higher timeframes of one day and one week, cumulative volume over eight, twenty-four and forty-eight bar

Indicator v5 VolumeSupport & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Value
106 stars

This strategy plots modified Bollinger Bands and an exponential moving average on the price chart. It watches for closes crossing the upper or lower band, optionally filtered by the EMA trend and extra crossover or crossunder checks. Long stops use the recent

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands Modified (Stormer)

Money Flow Index

by TWODS-CAPITAL
37 stars

Calculates and plots the standard Money Flow Index oscillator using typical price and volume data over a user-defined lookback period. It renders in a separate indicator pane with reference lines at 80 for overbought, 50 for the center line, and 20 for oversol

Indicator v5 Oscillators & momentumVolume
Updated 3 years ago · MIT GitHub repository of Money Flow Index
13 stars

This strategy plots a Noro trend ribbon on the price chart and uses ribbon side changes to choose long or short direction. It opens a long when price is below a high-low corridor during a long bias, and a short when price is above that corridor during a short

Strategy v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Noro TrendRibbon Q012

ICT ORB

by alboogycOdR
6 stars

This overlay indicator marks a session opening range on the price chart and filters breakouts with relative volume. Session type, duration, and optional custom start time set the range, and historical ranges can stay on the chart. Full mode can require a liqui

Indicator v5 BreakoutSMC / ICT / price action
Updated 7 months ago · None stated GitHub repository of ICT ORB
3 stars

Calculates and plots key session reference levels directly on the price chart, specifically pre-market high and low alongside prior day high and low. Users can adjust how levels project across historical data, toggle line labels, customize spacing, and show pr

Indicator v5 Support & resistanceSessions & time
Updated 5 months ago · None stated GitHub repository of Hooplah High Low + Table
2 stars

Calculates an ATR-based z-score oscillator and normalized volume across multiple assets, screening up to 21 symbols simultaneously. Outlier detection filters extreme standard deviations before normalizing values between 0 and 100. It visualizes the comparative

Indicator v5 Screeners & dashboardsVolatility & bands
Updated 8 months ago · None stated GitHub repository of ATR OSC and Volume Screener

HV+D PBJ Bearish v1

by nishpa800
1 stars

Bearish half of a split HV+D and PBJ indicator, drawn on the price chart. It plots 36 sell-side markers that combine high-volume candles, standard deviation displacement and a PBJ moving average and Supertrend filter. Each pattern, such as the DDDD, DDD, Foxtr

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bearish v1

Price Alert 2024

by mikeyhu70
1 stars

An overlay that measures how far the current bar has moved from its open, as a percentage, and sends a text alert when the move reaches one of five levels, 2.5, 5, 7.5, 10 and 12.5 percent by default. Both up and down moves are measured by size, and only the h

Indicator v5 Repaints
Updated 6 months ago · None stated GitHub repository of Price Alert 2024

Visible Fibonacci

by ivansoft
1 stars

An indicator that draws Fibonacci retracement levels on the price chart for the part of the chart currently in view. It can base the levels on the high and low of the visible range or on zig zag pivots found within it, with a pivot length setting and an option

Indicator v5 Support & resistance Repaints
Updated 1 year ago · None stated GitHub repository of Visible Fibonacci

This strategy calculates standard Bollinger Bands using a Simple Moving Average and standard deviation multiplier. It enters alternating long positions when price crosses above the lower band and short positions when price crosses below the upper band. Open tr

Strategy v5 Volatility & bandsMean reversion
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands Strategy With StopLoss

Morning Doji Star - Bull

by TWODS-CAPITAL
37 stars

The Morning Doji Star Bullish indicator identifies a three-candle bullish reversal pattern consisting of a long black candle, a gapping doji, and a long white candle closing above the midpoint of the first body. It applies optional trend filtering using SMA50

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Morning Doji Star - Bull
13 stars

This strategy plots an On-Balance Volume oscillator in a separate pane and applies a fast and a slow exponential moving average to it. It enters long or short when those averages cross, with a strategy type that can reverse, stay long only, or stay short only,

Strategy v5 VolumeMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard QN OBVOsc A002
6 stars

This indicator tracks Opening Range Breakout (ORB) levels for selected sessions such as New York, London, or custom hours directly on the price chart. It detects market structure shifts (MSS), fair value gaps (FVG), and order blocks to signal potential trade e

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

This indicator draws horizontal price bands and an anchor close line directly on the price chart. It projects two tiers of upper and lower boundary lines offset from the closing price by user-specified tick amounts. Each tier allows customization of tick dista

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

Average Lines

by regalouisei
2 stars

The Average Lines indicator calculates and plots average values of detected pivot highs and pivot lows directly on the price chart. It allows users to set left and right bar counts for pivot detection, choose which averages to display (pivot highs only, lows o

Indicator v5 Moving averagesSupport & resistance
Updated 8 months ago · None stated GitHub repository of Average Lines

Gann Octagon

by morindok
1 stars

Gann Octagon projects W.D. Gann geometric price spiral levels directly on the main chart starting from a user-selected anchor candle. The script calculates step sizes dynamically using candle height, adaptive ATR, or a user-defined manual value across up to fi

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Gann Octagon
1 stars

Tick-chart-safe bearish half of a split HV+D and PBJ overlay indicator. It plots 36 sell-side markers that combine high-volume candles, standard deviation displacement and a PBJ moving average and Supertrend filter. Guards give a tick-chart fallback bar length

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bearish v1 Tick-Friendly

Price Alert 2024 V2

by mikeyhu70
1 stars

An overlay that measures the percentage move of the current bar from its open and sends a text alert when it reaches one of five positive or five negative thresholds, plus or minus 2.5, 5, 7.5, 10 and 12.5 percent by default. Up and down levels are set indepen

Indicator v5 Repaints
Updated 6 months ago · None stated GitHub repository of Price Alert 2024 V2

VisibleChart

by ivansoft
1 stars

A Pine Script v5 library whose functions return values from the bars currently visible on the chart. It can test whether a bar is visible or is the first or last visible bar, and return the highest high, lowest low, their bar indexes and times, and the opening

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

This strategy calculates standard Bollinger Bands using a Simple Moving Average and standard deviation multiplier to identify entry conditions. It triggers pending stop orders and outputs formatted alert messages compatible with TradingConnector for automated

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands Strategy with TradingConnector Alerts

Morning Star - Bullish

by TWODS-CAPITAL
37 stars

Morning Star - Bullish is a price chart indicator that automatically identifies three-candle bullish Morning Star candlestick patterns. It filters pattern occurrences using optional trend context defined by 50-period or 200-period simple moving averages. When

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

Ruckard Random A004

by ruckard
13 stars

Ruckard Random A004 is a strategy that executes entries in a random manner to evaluate the effect of risk management rules on trading results. It controls positions using customizable stop loss, take profit, trailing stops, and break-even settings, alongside o

Strategy v5 Moving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Random A004
3 stars

This indicator draws horizontal price levels and bands anchored to recent price points directly on the main chart. It calculates a central midline along with inner and outer symmetrical boundary lines offset by specified multiples of the instrument's minimum t

Indicator v5 Support & resistanceVolatility & bands Repaints
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

Average Volume Profile

by regalouisei
2 stars

This indicator draws an Average Volume Profile on the price chart. It calculates the profile based on average volume across the selected timeframe and sensitivity setting. The Point of Control appears in bright blue while the Value Area High and Low display in

Indicator v5 VolumeSupport & resistance
Updated 8 months ago · None stated GitHub repository of Average Volume Profile
1 stars

This indicator computes a confluence score from Gann angles and Fibonacci retracements anchored to a user base price, step size, swing low and high. It layers in RSI for oversold conditions and Bollinger Bands distance for additional context. The score increme

Indicator v5 Support & resistanceOscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Gann Time Machine Signal Engine

HV+D PBJ Bearish v2

by nishpa800
1 stars

Second revision of the bearish half of a split HV+D and PBJ indicator, drawn on the price chart. It plots 36 sell-side markers built from high-volume candles, standard deviation displacement and a PBJ trend filter. Visibility toggles control patterns such as D

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bearish v2

Price Alert 2024 V3

by mikeyhu70
1 stars

An overlay that places up to ten percentage price levels above and below the last close, or the current open, and triggers alerts when price crosses them. Levels can be drawn as plots or price lines, colored by position relative to price, dimmed or hidden once

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Price Alert 2024 V3

Volatility Stop

by ivansoft
1 stars

An indicator on the price chart that plots a trailing stop line offset from a chosen source by a multiple of the Average True Range. Settings set the source, the ATR length and the ATR factor. The line can be drawn as a line, circles, diamonds or arrows in one

Indicator v5 Volatility & bandsTrend
Updated 1 year ago · None stated GitHub repository of Volatility Stop
106 stars

This strategy initiates momentum breakout positions when the Relative Strength Index reaches extreme levels and Bollinger Band standard deviation is expanding. Long trades open when RSI is above the overbought threshold and bands are not contracting, while sho

Strategy v5 Volatility & bandsOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Bands, RSI, and MA Strategy

Moving Average

by TWODS-CAPITAL
37 stars

This indicator plots a simple moving average of a chosen price source on the price chart. Length, source, and a horizontal offset control the main blue line. A second smoothing line applies SMA, EMA, RMA, WMA, or VWMA to that average, with its own length, but

Indicator v5 Moving averages
Updated 3 years ago · MIT GitHub repository of Moving Average
13 stars

This strategy evaluates moving average squeezes and Squeeze Momentum section height changes to identify potential entry signals. It opens trades based on momentum comparisons across moving average thresholds. The script features customizable risk management co

Strategy v5 Oscillators & momentumMoving averages
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed A004

ICT ORB Strategy

by alboogycOdR
6 stars

This strategy backtests opening-range breakouts on the price chart for New York, London, Asia, or a custom session. Simple mode follows the opening-range direction when relative volume is high enough. ICT mode can require a fair value gap, displacement, and an

Strategy v5 BreakoutSMC / ICT / price action Repaints
Updated 7 months ago · None stated GitHub repository of ICT ORB Strategy
3 stars

This indicator plots horizontal line bands on the price chart using lower timeframe data. It requests 1-minute high, low, and close values from security to calculate anchor points. Horizontal lines are drawn at specific levels with options for multiple lines i

Indicator v5 Support & resistance Repaints
Updated 5 months ago · None stated GitHub repository of Horizontal Line Bands

This indicator estimates Black-Scholes call and put prices and selected Greek values from the chart's spot price. It runs only on the daily timeframe and overlays its output on the price chart. Users set the strike, expiry date and time, implied volatility, an

Indicator v5 Volatility & bandsMoving averages
Updated 8 months ago · None stated GitHub repository of Black Scholes Option Pricing Model w/ Greeks [Loxx]
1 stars

The script detects pivot highs and lows on the price chart using user-defined left and right bars. It projects future price paths with the golden ratio and calculates intersection points between paths. These intersections are stored in an array for geometric b

Strategy v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Geometric Path Backtest with BG
1 stars

Bullish-only overlay indicator that plots 38 buy-side detection markers on the price chart. It combines high-volume candles, standard deviation displacement and a PBJ trend filter, with a revised price-spike relative volume ladder in this build. Toggles switch

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ Bullish New RVOL v1.0
1 stars

This indicator uses the Goertzel algorithm to find a dominant cycle, then projects it as a sine wave to estimate future prices and dates. It also scans past bars for a similar pattern of set length within a lookback window. Results appear in a dashboard table

Indicator v5 Support & resistance
Updated 6 months ago · None stated GitHub repository of Price and Date Forecast Sine Wave

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