Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 79)

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

Volatility Stop MTF

by ivansoft
1 stars

An indicator on the price chart that plots an ATR-based volatility stop taken from a higher timeframe. The higher timeframe is picked in discrete steps, as a multiple of the chart timeframe, or as a fixed timeframe. It can detect when chart bars breach the hig

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

Bollinger Breakout

by hasnocool
106 stars

This strategy buys when price breaks above the upper Bollinger Band and exits by trailing a stop on the lower band. Trades can execute on a wick or a candle close, and an optional fixed-percentage stop can set a tighter initial exit until the lower band catche

Strategy v5 BreakoutVolatility & bands
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Breakout
37 stars

This indicator plots a MACD oscillator in a separate pane. It subtracts a slow moving average of the source from a fast one, then smooths that difference into a signal line and draws the gap as a histogram. Fast and slow lengths, source, signal length, and SMA

Indicator v5 Oscillators & momentumMoving averages
Updated 3 years ago · MIT GitHub repository of Moving Average Convergence Divergence
13 stars

Ruckard Squeezed B004 is a trading strategy based on Squeeze Momentum indicator transitions. It tracks section height changes across momentum color cycles using high and low closing moving averages. Entries fire when momentum values breach key threshold levels

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

Identifies ICT Silver Bullet setups by tracking fair value gaps and market structure shifts across specific London and New York trading sessions. Plots session windows, liquidity highs and lows, fair value gap boxes, and projected entry levels with dynamic or

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT Silver Bullet NuburoFX02
3 stars

HTF Condition Strategy is a multi-timeframe trading strategy that evaluates market structure conditions on both a higher timeframe and the current chart timeframe. Users can configure entry rules combining conditions such as bullish bias, higher lows, or lower

Strategy v5 TrendScreeners & dashboards
Updated 5 months ago · None stated GitHub repository of HTF Condition Strategy

This indicator tracks Bitcoin market sentiment by comparing 28-day price changes against 28-day percentage changes in unique active addresses retrieved via Quandl. It plots the daily active address rate of change alongside price momentum and surrounds it with

Indicator v5 Oscillators & momentumVolatility & bands
Updated 8 months ago · None stated GitHub repository of Blockchain Fundamentals: Active Address Sentiment Oscillator [CR]

HV+D PBJ Bullish v1

by nishpa800
1 stars

Bullish half of a split HV+D and PBJ indicator, drawn on the price chart. It plots 38 buy-side markers that combine high-volume candles, standard deviation displacement and a PBJ moving average and Supertrend filter. Each pattern, such as the UUUU, UUU, Foxtro

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

This indicator estimates a dominant cycle with the Goertzel algorithm, then scans a set number of past bars for similar patterns to project future prices and dates. A dashboard table on the price chart lists the results. Cycle length, forecast periods, lookbac

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

This indicator marks volume spikes and growing-volume conditions on the price chart. A spike is flagged when volume reaches a chosen multiple of the median over a selected lookback. Growing volume is flagged when a short recent median exceeds a longer median b

Indicator v5 VolumeOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Volume Spikes & Growing Volume Signals With Alerts
106 stars

This strategy calculates standard Bollinger Bands and plots the basis, upper band, and lower band directly on the price chart. It places breakout stop orders, entering long when price crosses above the upper band and short when price falls below the lower band

Strategy v5 Volatility & bandsBreakout
Updated 2 years ago · GPL-3.0 GitHub repository of Bollinger Stop Strategy

Moving Average Exponential

by TWODS-CAPITAL
37 stars

This indicator plots an exponential moving average of a chosen price source on the price chart. The length input sets the EMA period and the offset input shifts the plotted line forward or backward. A second line smooths the EMA with a selectable method: SMA,

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

Ruckard Squeezed C005 is a strategy that identifies divergence patterns based on section height changes in the Squeeze Momentum indicator. It evaluates transitions between histogram color phases to detect momentum peaks for long and short entries. Trades are m

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

This indicator overlays multiple technical analysis tools onto the main price chart to establish multi-filter trend confluence. It calculates dual anchored VWAPs, dual Supertrend indicators, moving averages, Kijun-sen Donchian midlines, and weekly pivot points

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of Ichimoku Cloud with Donchian Channels

Bull Vs. Bear Market Intraday Sessions partitions the trading day into multiple custom time intervals to analyze session-specific volume and market behavior. Plotted directly on the main price chart, the indicator tracks buying and selling dynamics across up t

Indicator v5 Sessions & timeVolume
Updated 8 months ago · None stated GitHub repository of Bull Vs. Bear Market Intraday Sessions [Kioseff Trading]
1 stars

Golden Ichimoku by BITMOON618 calculates and plots dynamic Ichimoku clouds directly on the price chart based on a user-selected time range between two timestamps. The script determines a custom bar length from the range and generates three scaled cloud structu

Indicator v5 TrendSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Golden Ichimoku by BITMOON618
1 stars

Tick-chart-safe bullish half of a split HV+D and PBJ overlay indicator. It plots 38 buy-side markers that combine high-volume candles, standard deviation displacement and a PBJ moving average and Supertrend filter. An input sets a fallback bar length in second

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

This indicator applies an RSI-style oscillator smoothed with a cyclic filter, based on the dominant cycle idea from a published trading book. A Fast Fourier Transform library measures cycle strength, and a table lists the strongest cycle periods. The cycle len

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of RSI Cyclic Smoothed Auto

Watermark

by ivansoft
1 stars

An indicator that places a small coloured text box on the price chart as a watermark. It shows one text string, and if a second text is set it alternates between the two on each live update, which gives a simple blinking effect. Settings control both texts, th

Indicator v5 Screeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Watermark

This strategy combines three technical indicators: the Boom Hunter Pro oscillator, the Hull Suite moving average, and a Volatility Oscillator. It calculates trade entries from indicator conditions, using recent swing high and low lookbacks to set stop loss lev

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Boom Hunter + Hull Suite + Volatility Oscillator Strategy

Moving Average Ribbon

by TWODS-CAPITAL
37 stars

This indicator plots up to four customizable moving averages directly on the price chart to create a ribbon visualizer for tracking trends. Users can independently toggle each line, choose from multiple calculation types including SMA, EMA, SMMA, WMA, and VWMA

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

This strategy monitors section height changes within the Squeeze Momentum Indicator to identify momentum shifts and divergence entry signals. It uses high and low closing moving averages to evaluate price trends and overlay a visual ribbon on the price chart.

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed D004

ICT State Machine

by alboogycOdR
6 stars

This indicator tracks a sequential smart money concepts workflow using a state machine on the price chart. It monitors higher-timeframe four-hour bias, Asian session ranges, liquidity sweeps, market structure shifts, change in state of delivery, and fair value

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT State Machine

ID50

by g-moe
3 stars

The ID50 indicator identifies pullback opportunities to the 50-period exponential moving average (EMA) within an established trend. It plots a fast EMA and a slow EMA with a color-coded cloud between them to define trend direction. When price touches the slow

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of ID50
2 stars

This indicator simulates and backtests candlestick pattern performance directly on the price chart. Utilizing an imported pattern recognition library, it calculates theoretical trade outcomes based on user-defined entry modes, stop-loss methods (ATR or pattern

Indicator v5 Candlestick patternsScreeners & dashboards
Updated 8 months ago · None stated GitHub repository of Candlestick Patterns on Backtest

Golden Spiral

by morindok
1 stars

The Golden Spiral indicator calculates and draws logarithmic Fibonacci spiral projections in a separate pane. Centered at a user-defined bar timestamp, it plots forward and backward spiral curves using customizable turns, step resolution, and X/Y axis scaling.

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

HV+D PBJ PPD

by nishpa800
1 stars

Overlay indicator that combines several detection pipelines on the price chart: high-volume candles with large displacement, a PBJ trend filter built from a moving average and Supertrend, and relative-volume lanes. Markers appear when these conditions coincide

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ PPD
1 stars

This indicator applies an RSI-style oscillator smoothed with a cyclic filter, based on the dominant cycle idea from a published trading book. A Fast Fourier Transform library measures cycle strength, and a table lists the strongest cycle periods. This second v

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of RSI Cyclic Smoothed Auto2

ATR Compare

by ivansoft
1 stars

Compares normalised volatility across a fixed list of Moscow Exchange stocks and funds in a separate pane. For each symbol it requests a 14-period ATR expressed as a percentage of close and plots it as a line, drawing the line more strongly when the value is a

Indicator v5 Volatility & bandsScreeners & dashboards
Updated 1 year ago · None stated GitHub repository of ATR Compare

This long-only strategy enters when a 14-period simple moving average crosses above a 28-period average and closes that long when the faster average crosses back below. While a position is open, it sets a stop a configurable percent below the entry, then moves

Strategy v5 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of Break even stop loss (% of instrument price)

Moving Average Weighted

by TWODS-CAPITAL
37 stars

This indicator calculates a weighted moving average of a chosen price source and plots the result on the price chart. It uses TradingView's built-in weighted moving average function, so more recent bars receive greater weight than older bars. Length sets the n

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

Ruckard Squeezed E004 is a price-chart strategy that compares successive Squeeze Momentum colour-section changes. A smaller squeeze value with a higher price opens a short; a higher squeeze value with a lower price opens a long. Direction can be limited to lon

Strategy v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed E004

ICT State Machine

by alboogycOdR
6 stars

This overlay indicator walks price through a configurable ICT state sequence on the chart. It can require a four-hour CRT bias, an Asian range, manipulation, a New York macro window, a liquidity sweep, a market structure shift, CISD, a fair value gap, and a re

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT State Machine

Imagegpt Test 1

by g-moe
3 stars

Imagegpt Test 1 is a comprehensive chart overlay indicator that plots buy, sell, and reversal signals along with supply and demand zones. It calculates key levels using volume pivots and features integrated Bollinger Bands alongside entry, exit, stop-loss, and

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of Imagegpt Test 1
2 stars

This indicator draws an equity factor dashboard in a separate pane. It can show a correlation table over a chosen length and a performance table based on rate of change or Sharpe ratio. Optional implied correlation plots, including single and double normalizat

Indicator v5 Screeners & dashboardsOscillators & momentum
Updated 8 months ago · None stated GitHub repository of CE - 42MACRO Equity Factor Table

Language support probe r1

by GammaExpansion
1 stars

This indicator acts as a test probe to verify Pine Script v5 language features within an offline engine. It tests custom enum declarations, enum inputs, string formatting, functions, collections, and historical enum referencing. In addition, it constructs symm

Indicator v5
Updated 7 days ago · MIT GitHub repository of Language support probe r1

Golden Spiral

by morindok
1 stars

This overlay indicator draws golden and optional symmetric spirals between two user-selected time and price anchors on the price chart. It measures the selected range, counts green, red, and total candles, and sums their high-to-low heights, then uses the chos

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

Overlay indicator that looks for co-occurrence of high-volume displacement candles and a PBJ trend filter, then marks the result on the price chart. Both bullish and bearish pattern families are included, with toggles for UUUU, UUU, UU and Omega variants. Sett

Indicator v5 VolumeBreakout
Updated 2 months ago · None stated GitHub repository of HV+D PBJ PPD v1 (No HTF)

RSI Cyclic Smoothed v2

by mikeyhu70
1 stars

This indicator plots a cyclic smoothed RSI in a separate pane, with a dominant cycle length, a maximum cycle and a divider as inputs, plus vibration and leveling values. Two signal lines use selectable moving average types with automatic or manual lengths, and

Indicator v5 Oscillators & momentumMoving averages
Updated 6 months ago · None stated GitHub repository of RSI Cyclic Smoothed v2

ATR Delta

by ivansoft
1 stars

Draws step-line bands around each candle on the price chart, sized from a rolling median of previous true range or candle body range. Two divisors set the band width for the high and low range and for the body range; the body version is shown by default and th

Indicator v5 Volatility & bands
Updated 1 year ago · None stated GitHub repository of ATR Delta

Breakeven Line Demo

by hasnocool
106 stars

The Breakeven Line Demo strategy is a Pine Script demonstration tool designed to visualize the average position price of stacked trades. It enters long positions after seven consecutive bearish candles and short positions after seven consecutive bullish candle

Strategy v5 Mean reversionSupport & resistance
Updated 2 years ago · GPL-3.0 GitHub repository of Breakeven Line Demo

MovingAvg Cross

by TWODS-CAPITAL
37 stars

This strategy calculates a simple moving average of closing prices to detect trend shifts directly on the price chart. It enters a long position when the price remains above the moving average for a specified number of consecutive confirmation bars, and enters

Strategy v5 TrendMoving averages
Updated 3 years ago · MIT GitHub repository of MovingAvg Cross
13 stars

Calculates divergence between price movement and the Squeeze Momentum Indicator transitions to identify entry conditions. A short position is opened when the squeeze value decreases while price makes a higher high during bullish momentum decay. A long position

Strategy v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Ruckard Squeezed F001
6 stars

This indicator tracks a configurable ICT sequence on the price chart. It advances through optional stages: Asian range bias, manipulation, New York macro windows, liquidity sweep, market structure shift, CISD, fair value gap, and retracement into that gap. Pre

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of ICT State Machine Sequential Entry
3 stars

Inner Outer Risk Zones plots horizontal price levels and risk boundary zones directly on the main price chart. The indicator allows traders to input manual target and support levels—including Outer Top, Inner Top, Inner Bottom, and Outer Bottom—along with risk

Indicator v5 Support & resistance
Updated 5 months ago · None stated GitHub repository of Inner Outer Risk Zones
2 stars

This indicator visualizes recent market price action on a circular polar coordinate system in a separate pane. It normalizes bar open, high, low, and close values across a specified lookback length into angular degrees and renders circular candlestick bodies a

Indicator v5
Updated 8 months ago · None stated GitHub repository of Circular Candlestick Chart

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