Pine Library · 4,643 open-source scripts

Free Pine Script v5 Scripts (page 85)

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

This overlay indicator builds exponential harmonic price levels from a resonance factor that combines the golden ratio, pi and a fractal multiplier. On confirmed bars it maps the close to the nearest level, records upward and downward transitions in a Markov c

Indicator v5 Support & resistanceAI / machine learning

KC Combo SR v5.2

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.2

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR v5.2
106 stars

This strategy backtests hammer and star candlestick patterns on the price chart. It filters setups with an exponential moving average slope angle, optional swing high and low checks, and entry-candle size versus ATR. It opens one position at a time inside a us

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · GPL-3.0 GitHub repository of NoSKi Hammer Star Backtester %

SMI Ergodic Indicator

by TWODS-CAPITAL
37 stars

The SMI Ergodic Indicator calculates and displays the True Strength Index oscillator alongside an exponential moving average signal line in a separate pane. It evaluates price momentum through double smoothing across configurable short and long periods. Users

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of SMI Ergodic Indicator

Sergiosqueeze D004

by ruckard
13 stars

Sergiosqueeze D004 is a trading strategy designed for automated execution via Zignaly alerts. It utilizes squeeze momentum logic to open long positions when momentum expands positively and short positions when momentum expands negatively, exiting when the sign

Strategy v5 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Sergiosqueeze D004
3 stars

Calculates and plots multi-timeframe linear regression channels with customizable deviation bands directly on the price chart. The indicator overlays channels from multiple higher timeframes, ranging from intraday minutes to daily charts. Users can independent

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of LinReg MTF More TFs

Grid Bot Simulator

by regalouisei
2 stars

Calculates evenly spaced grid levels across a user-defined price range bounded by upper and lower limits. It triggers simulated buy signals when price drops across a grid level and sell signals when price crosses upward through a level, evaluated via bar extre

Indicator v5 Support & resistanceMean reversion
Updated 8 months ago · None stated GitHub repository of Grid Bot Simulator

KC Combo SR v5.3

by nishpa800
1 stars

Combines bullish and bearish signals in one price chart overlay, built on a Keltner Channel, an ATR supertrend and several volume and displacement detectors. Markers flag candles where those detectors line up with a support or resistance structure. Version 5.3

Indicator v5 Support & resistanceVolume
Updated 2 months ago · None stated GitHub repository of KC Combo SR v5.3
106 stars

This strategy combines the Price Moving Average Ratio Percentile (PMARP) with Madrid Moving Average Ribbon concepts to identify overextended price conditions and trend shifts. It calculates PMAR or PMARP across selectable moving average types and a lookback wi

Strategy v5 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of PMAR and Madrid MA Strategy

SMI Ergodic Oscillator

by TWODS-CAPITAL
37 stars

This indicator plots the SMI Ergodic Oscillator in a separate pane. It calculates the True Strength Index of close prices using the short and long lengths, smooths that result with an exponential moving average signal, and plots the difference as a histogram.

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of SMI Ergodic Oscillator
13 stars

This indicator plots a squeeze-momentum histogram in a separate pane. It compares Bollinger Bands with Keltner Channels to mark squeeze on, squeeze off, or no squeeze, and colors the zero line by that state. The histogram is a linear regression of close agains

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TradingLatino Abajo A001

LFWD Watermark + Checklist

by eddiebelaval
7 stars

This visual utility overlays a custom motivational watermark and a trading rules checklist directly on the price chart using UI tables. It produces no trading signals or technical calculations. Users can customize the watermark text, font sizes, background col

Indicator v5 Screeners & dashboardsSMC / ICT / price action
Updated 3 months ago · None stated GitHub repository of LFWD Watermark + Checklist

NY SMC Suite Pro

by alboogycOdR
6 stars

NY SMC Suite Pro is an overlay indicator that visualizes Smart Money Concepts (SMC) and custom intraday trading sessions on the price chart. It detects and plots order blocks, fair value gaps, liquidity pools, market structure breaks (BOS and CHoCH), and chang

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro

This indicator calculates and plots a linear regression channel directly on the price chart using a combination of Weighted Moving Average (WMA) and Simple Moving Average (SMA) values to derive slope and intercept. It projects a center regression line along wi

Indicator v5 TrendSupport & resistance
Updated 5 months ago · None stated GitHub repository of LinReg MTF More TFs EXPORT ONLY

This indicator detects harmonic patterns using a Zigzag pivot engine and derives trend-following entry and stop levels relative to key pattern legs. It overlays dynamic trailing levels on the price chart to assist in tracking market direction following pattern

Indicator v5 TrendSupport & resistance Repaints
Updated 8 months ago · None stated GitHub repository of Harmonic Patterns Based Trend Follower

Mirror Oscilator

by morindok
1 stars

The Mirror Oscilator calculates a specialized oscillator in a separate pane by analyzing fractal periods and dynamic symmetry levels. It computes fractal turning points based on high and low prices over a specified period, derives symmetrical price relationshi

Indicator v5 Oscillators & momentumSupport & resistance
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscilator

KC Combo v2

by nishpa800
1 stars

Draws a Keltner Channel and ATR supertrend on the price chart and marks candles where gated combinations of pullback, displacement and volume detectors fire together. Inputs set the base moving average, channel length, ATR multiplier and displacement threshold

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo v2

Relative Vigor Index

by hasnocool
106 stars

This strategy overlays two exponential moving averages and ATR-based price targets directly on the price chart while calculating the Relative Vigor Index internally. It enters long positions when the RVI line crosses above its signal line during an established

Strategy v5 TrendOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of Relative Vigor Index

Smoothed Moving Average

by TWODS-CAPITAL
37 stars

The Smoothed Moving Average indicator calculates and plots a smoothed moving average directly on the price chart. It initializes using a simple moving average over the user-defined length and recursively updates using previous average values to reduce noise an

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

TradingLatino Abajo B002 is a momentum and volatility indicator that calculates a Squeeze Momentum oscillator in a separate pane. It compares Bollinger Bands and Keltner Channels to detect squeeze conditions while calculating momentum using linear regression b

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TradingLatino Abajo B002
7 stars

This overlay strategy tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w

Strategy v5 Sessions & timeSupport & resistance
Updated 3 months ago · None stated GitHub repository of London SR Cleaner WR (TP 0.20)

NY SMC Suite Pro

by alboogycOdR
6 stars

This overlay indicator maps New York smart-money concepts on the price chart. It highlights three killzone sessions, draws order blocks and fair value gaps, and notes change-in-state-of-delivery events plus market-structure shifts. A statistics dashboard score

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro

Litt Volume ++

by g-moe
3 stars

The Litt Volume ++ indicator measures relative volume by comparing raw volume against a 100-period exponential moving average baseline. It calculates a relative volume ratio and smooths it with a 20-period EMA to identify volume intensity levels. Rendered in a

Indicator v5 Volume
Updated 5 months ago · None stated GitHub repository of Litt Volume ++
2 stars

This indicator automatically detects and visualizes regular and inverse Head and Shoulders patterns on the main price chart. It identifies potential pattern structures by scanning pivot high and pivot low points according to user-defined left and right bar set

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of Head & Shoulders S/R Regular

Mirror Oscillator Pro

by morindok
1 stars

Mirror Oscillator Pro is a separate-pane oscillator that reflects price around confirmed pivot highs and lows and a selectable baseline. It maps the mirrored value into a dynamic 0 to 100 range, smooths it with an exponential moving average, and plots that lin

Indicator v5 Oscillators & momentum
Updated 7 weeks ago · None stated GitHub repository of Mirror Oscillator Pro

KC Combo v3

by nishpa800
1 stars

Draws a Keltner Channel and ATR supertrend on the price chart and marks candles where gated combinations of pullback, displacement and volume detectors fire together. Inputs set the base moving average, channel length, ATR multiplier and displacement threshold

Indicator v5 Volatility & bandsTrend
Updated 2 months ago · None stated GitHub repository of KC Combo v3

S2

by hasnocool
106 stars

S2 is a cryptocurrency rebalancing strategy originally designed for trading pairs like XTZ-EUR. It enters trades during buy and sell opportunity windows determined by rebalancing logic using external portfolio libraries. The strategy transacts a fixed base cry

Strategy v5 Mean reversionScalping
Updated 2 years ago · GPL-3.0 GitHub repository of S2

Spinning Top Black

by TWODS-CAPITAL
37 stars

This overlay indicator detects a black spinning top on the price chart. It treats a candle as a match when the body is bearish, both the upper and lower shadows are at least 34 percent of the full range, and the body is not small enough to count as a doji. On

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Spinning Top Black
13 stars

Calculates and plots a smoothed variation of the Squeeze Momentum indicator in a separate pane. It identifies market compression and expansion states by comparing Bollinger Bands with Keltner Channels, while tracking momentum via linear regression. Settings al

Indicator v5 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of TradingLatino Abajo D002
7 stars

The MACD RSI EMA Aggressive indicator generates momentum and trend-following signals on the price chart. It combines a MACD crossover or crossunder with an RSI threshold filter, price location relative to an Exponential Moving Average, volume expansion above a

Indicator v5 TrendOscillators & momentum
Updated 3 months ago · None stated GitHub repository of MACD RSI EMA Aggressive + ATR SLTP

NY SMC Suite Pro

by alboogycOdR
6 stars

NY SMC Suite Pro is a price-chart indicator that marks New York killzone sessions and smart-money structure. It shades the 714 AM, NY Open, and afternoon windows, and it plots order blocks and fair value gaps on a selectable analysis timeframe. Presets switch

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro

Lower Forecast

by g-moe
3 stars

Lower Forecast is an oscillator indicator drawn in a separate pane based on the Market Forecast framework. It calculates three momentum curves—Intermediate, Nearterm, and Momentum—using fast stochastic formula variations across short and medium lookback window

Indicator v5 Oscillators & momentumDivergence
Updated 5 months ago · None stated GitHub repository of Lower Forecast

Heat Map Seasons

by regalouisei
2 stars

Heat Map Seasons plots a linear regression of typical price and colors each price bar by how far close sits from that line. It normalizes the gap with standard deviation, clamps extreme values, and maps them from aqua through yellow to red using a heat-sensiti

Indicator v5 TrendVolatility & bands
Updated 8 months ago · None stated GitHub repository of Heat Map Seasons

The Mirror Oscillator Pro indicator computes a custom oscillator by mapping RSI values to the range between detected pivot highs and lows on the selected timeframe. It offers multiple baseline choices including HH/LL extremes, ATR bands, Bollinger Bands, Ichim

Indicator v5 Oscillators & momentumSupport & resistance

Naga Disp v1

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1

Spinning Top White

by TWODS-CAPITAL
37 stars

Spinning Top White is a price-chart indicator that marks a bullish spinning top. It treats a candle as a match when both shadows are at least 34 percent of the range, the body is not a doji, and the close is above the open. On a match it draws an STW label bel

Indicator v5 Candlestick patterns
Updated 3 years ago · MIT GitHub repository of Spinning Top White

Trailering

by ruckard
13 stars

This strategy enters trades on the price chart using price excursion logic and historical statistical advice to identify market opportunities. Depending on the number of trigger conditions met, it scales capital allocation per position. Exits are managed throu

Strategy v5 Sessions & time
Updated 1 year ago · None stated GitHub repository of Trailering

NY SMC Suite Pro v2.1

by alboogycOdR
6 stars

The NY SMC Suite Pro v2.1 is a TradingView indicator that plots Order Blocks and Fair Value Gaps directly on the price chart to visualize Smart Money Concepts. It also displays customizable trading sessions including 714AM, NY Open, and 714PM with adjustable t

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 7 months ago · None stated GitHub repository of NY SMC Suite Pro v2.1

Lower Labels

by g-moe
3 stars

Lower Labels is a cross-asset market structure indicator that plots candles and swing structure labels for a selected secondary symbol in a separate pane. It calculates pivot highs and pivot lows to classify market structure patterns including higher highs, hi

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

HH-LL ZZ

by regalouisei
2 stars

This indicator detects higher highs and lower lows on the price chart by counting a user-specified number of breaches in the chosen source value. When the count reaches the threshold, it plots a horizontal line and a label at the new level. It also draws suppo

Indicator v5 Support & resistance
Updated 8 months ago · None stated GitHub repository of HH-LL ZZ

Mirror Oscillator Pro is a custom momentum indicator displayed in a separate pane. It projects mirrored price calculations using recent pivot highs, pivot lows, and a selectable baseline anchor such as Golden Cloud, ATR, Bollinger Bands, or Ichimoku. An RSI ca

Indicator v5 Oscillators & momentumMoving averages

Naga Disp v1 (Tick)

by nishpa800
1 stars

Marks a candle when a very high volume reading and a large displacement happen on the same bar. Volume tiers compare the bar against lookbacks of 1000, 2000, 3000 and 4000 bars, and displacement compares the candle range to a standard deviation multiple with a

Indicator v5 VolumeSessions & time
Updated 2 months ago · None stated GitHub repository of Naga Disp v1 (Tick)

Stochastic

by TWODS-CAPITAL
37 stars

This indicator plots a classic stochastic oscillator in a separate pane. It calculates %K from the close relative to the high-low range over a set length, then smooths that value, and calculates %D as a moving average of %K. It draws the %K and %D lines plus h

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

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