Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 106)

Open-source Pine Script indicators that draw on your TradingView chart or in their own pane. Copy one and paste it into the Pine Editor.

Pine scripts7,612
Code shown here3,783open licence
Updated in a year5,283
No repaint flag6,673

Indicators: All

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts indicator designed for session-based trading. It determines market direction using a higher timeframe Exponential Moving Average and highlights Asian range boundaries alongside London and New York killzones. Th

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant
4 stars

The RSI Divergence indicator plots the Relative Strength Index in a separate pane with horizontal lines for overbought at 70, mid at 50, and oversold at 30. It detects bullish divergence when price forms a lower low but RSI forms a higher low, marked by a gree

Indicator v6 Oscillators & momentumDivergence
Updated 2 months ago · MIT GitHub repository of RSI Divergence [trugurpala]

Custom Engulfing

by g-moe
3 stars

Custom Engulfing is an overlay indicator that highlights bullish and bearish candle patterns directly on the price chart using background colors. It identifies a bullish signal when a green candle closes above the prior candle's body and its body length exceed

Indicator v5 Candlestick patterns
Updated 5 months ago · None stated GitHub repository of Custom Engulfing

SAB PRO Pivot Master

by IAMATOMIC001
3 stars

SAB PRO Pivot Master is a price-chart overlay that builds an RSX-style oscillator from a chosen source and length, then compares price extremes with that oscillator over a lookback window to mark pivots and bullish or bearish divergence. Overbought and oversol

Indicator v5 Oscillators & momentumVolatility & bands
Updated 12 months ago · None stated GitHub repository of SAB PRO Pivot Master

ICT Setup 01 TFlab

by alvinng214
2 stars

This indicator detects Fair Value Gaps using a multiplier factor and validity period. It identifies liquidity sweeps and hunts within or outside defined zones to generate long and short signals. Signals can be configured to fire after a specified number of hun

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT Setup 01 TFlab

Uabmacd

by avatar-lavventura
2 stars

The script plots a WaveTrend oscillator in a separate pane, calculating TCI as an EMA of a normalized price deviation and its 4-bar SMA. It displays overbought and oversold levels with colored circles for WT1-WT2 crossovers and bar coloring on crossover bars.

Indicator v4 Oscillators & momentumMoving averages
Updated 7 months ago · None stated GitHub repository of Uabmacd
2 stars

This overlay indicator tracks confirmed pivot highs and lows and lets those levels drift by a fraction of a 200-period ATR when no new pivot appears. When price crosses the upper level it extends the structure line, resets the opposite count, and prints a numb

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 8 months ago · None stated GitHub repository of Angle Market Structure [BigBeluga]

Jurik Moving Average (JMA)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Jurik Moving Average directly on the main price chart. It uses an adaptive smoothing algorithm that dynamically adjusts to market volatility to reduce lag while minimizing overshoot. The script does not generate buy or s

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Jurik Moving Average (JMA)

Draw - Plot Character

by Web3Degenerate
2 stars

This educational Pine Script demonstrates how to plot characters and text annotations directly on the price chart using the built-in plotchar function. It checks bar conditions, such as whether a bar is confirmed or represents the chart's last bar, to trigger

Indicator v5
Updated 2 years ago · None stated GitHub repository of Draw - Plot Character

This indicator scans the chart for 101 distinct patterns, including single-bar, two-bar, and multi-bar candlestick patterns, classic chart patterns, and harmonic patterns. It features a complex situation context engine for confluence detection and displays a B

Indicator v5 Candlestick patternsSupport & resistance Repaints
1 stars

Calculates support and resistance breakouts by combining key level testing with smart flow filters and Average Trade Size (ATS) proxy monitoring. The indicator tracks price tests against consolidation ranges, lower timeframe volume, order flow delta, and volum

Indicator v6 BreakoutVolume
Updated 4 days ago · None stated GitHub repository of Breakout Finder Intelligent

P_err_wrong_arg_type

by GammaExpansion
1 stars

This indicator is a Pine Script v6 fixture that calls the built-in simple moving average with a length of ten and plots the result in a separate pane. The first argument is the string close rather than a price series, so the call does not match the expected ar

Indicator v6 Moving averages
Updated 7 days ago · MIT GitHub repository of P_err_wrong_arg_type

DEPV2 Debug S21

by YuceSezar89
1 stars

DEPV2 Debug S21 is a multi-symbol crypto research and evaluation tool plotted in a separate pane. It monitors up to 20 Binance cryptocurrency perpetual pairs by analyzing price action across four distinct signal engines: trend, momentum, volatility, and volume

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 Debug S21

Williams Fractals

by morindok
1 stars

Williams Fractals identifies multi-bar pivot highs and pivot lows based on Bill Williams' classic fractal logic. It evaluates price action across a user-defined period to detect local high and low turning points, plotting visual markers directly above or below

Indicator v6 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Williams Fractals

Apex Nexus Flip Engine v10

by vedkanani123
1 stars

A trend flip indicator on the price chart with BUY and SELL labels. A zero-lag trail is built from ATR and an optional volume-weighted source, and it widens in choppy conditions. Flips need to pass gates for choppiness, baseline slope, volatility expansion, ef

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Apex Nexus Flip Engine v10
1 stars

A utility indicator that counts combo hits across recent bars in line with a one-bar-one-hit rule. It takes plotted matrix, fair value gap and pullback-and-jump signals from another indicator through source inputs, collapses matrix and gap signals on the same

Indicator v5 Volume
Updated 2 months ago · None stated GitHub repository of Combo Chain Binary Fix (Tick)

Lemon Strategy Indicator

by GreyssonEnterprises
1 stars

An indicator that looks for W and M reversal shapes in price, OBV and Williams %R by default, with optional MFI, RSI and directional movement, all sharing one maximum width and offset setting. A Fibonacci retracement zone over a 200-bar lookback can be require

Indicator v4 DivergenceOscillators & momentum
Updated 3 months ago · MIT GitHub repository of Lemon Strategy Indicator
1 stars

A Pine Script v5 indicator in a separate pane that plots cycle waves from Hurst-style bandpass filters applied to the hl2 price. A single bandwidth setting is shared by all filters, and each cycle has its own period, from 5 days through weeks and months up to

Indicator v5 Oscillators & momentum
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator

Combination by Yzz

by webcrack4
1 stars

This overlay indicator identifies regular and hidden divergences across multiple momentum and volume oscillators, including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, CMF, and MFI. Divergence signals are determined using customizable pivot point period

Indicator v4 DivergenceOscillators & momentum Repaints
Updated 9 months ago · None stated GitHub repository of Combination by Yzz

Open Interest

by ivansoft
1 stars

Shows futures open interest in a separate pane by requesting the matching open interest series for the chart's symbol. For crypto symbols it draws open interest as candles; for other symbols it draws a step line coloured by whether the latest close rose. On in

Indicator v6 Volume
Updated 1 year ago · None stated GitHub repository of Open Interest
1 stars

A separate-pane indicator that is one component of a weighted scoring system. It plots a 14-period RSI with 30, 50 and 70 reference lines, and detects regular bullish and bearish divergence between price and RSI pivots, labelling them on the pane. Divergence i

Indicator v5 Oscillators & momentumDivergence
Updated 1 year ago · None stated GitHub repository of Neural Network Sub 21 RSI
947 stars

The Kaufman Adaptive Moving Average (KAMA) calculates a moving average that adjusts its sensitivity based on market volatility and noise. It computes an Efficiency Ratio by comparing price directional change over a specified period to overall market volatility

Indicator v4 Moving averagesTrend
Updated 12 days ago · GPL-3.0 GitHub repository of Kaufman Adaptive Moving Average

TTM Squeeze

by Alorse
330 stars

This indicator plots a TTM Squeeze momentum oscillator in a separate pane. It compares a Bollinger Band offset to a Keltner Channel offset and marks the zero line white when the difference is non-negative and black when the bands are inside the channel. A line

Indicator v5 Oscillators & momentumVolatility & bands
Updated 2 months ago · None stated GitHub repository of TTM Squeeze

ATI Tracker

by Allen1212
303 stars

ATI Tracker visualizes historical buy and sell transactions made by ARK Invest funds directly on stock price charts. It places color-coded labels on transaction dates to display whether ARK ETFs accumulated or distributed shares, including indicators for how m

Indicator v4
Updated 2 years ago · None stated GitHub repository of ATI Tracker
257 stars

This indicator analyzes short-term price action on index futures and options charts by applying Rational Quadratic kernel smoothing to detect sideways consolidation ranges and potential breakouts. It processes pivot highs and lows over customizable loopback pe

Indicator v5 Support & resistanceTrend Repaints
Updated 7 weeks ago · None stated GitHub repository of SPX 30M - Trading Chart

Trend Magic

by capissimo
114 stars

Calculates and plots a dynamic trend line on the price chart using Commodity Channel Index (CCI) and Average True Range (ATR). The trend direction is established by whether CCI is above or below zero, which controls an ATR-based trailing line. Generates buy an

Indicator v4 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Trend Magic
99 stars

This indicator calculates a second-order Chebyshev Type II lowpass filter and plots the result on the price chart. Length sets the cutoff period, and stopband attenuation in decibels controls how strongly higher-frequency components are reduced. The source inp

Indicator v6 Trend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chebyshev Type II Filter (CHEBY2)

Array.concat()

by be-thomas
65 stars

This educational indicator demonstrates the usage of array concatenation functions in Pine Script v4. It initializes two separate floating-point arrays and populates them with numeric values on every bar. On the final bar of the chart, it creates text labels t

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Array.concat()
47 stars

This multi-timeframe indicator calculates an adaptive trailing stop line based on Bollinger Bands evaluated on a user-selected resolution. It calculates standard deviation and simple moving average bands from the higher timeframe data, tracking trend shifts wh

Indicator v5 TrendVolatility & bands
Updated 8 weeks ago · None stated GitHub repository of MTF Bollinger Bands Trend Stop

This indicator computes the dominant cycle period using Ehlers homodyne discriminator. It applies exponential smoothing with warmup compensation for stable initialization and FIR/IIR filtering stable during market volatility. The smoothed period estimate is pl

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HOMOD: Homodyne Discriminator Dominant Cycle

Doji Star - Bearish

by TWODS-CAPITAL
37 stars

This indicator detects and highlights the Bearish Doji Star candlestick reversal pattern directly on the price chart. It checks for an uptrend using simple moving average rules, followed by a long bullish candle and a gapping doji candle. When identified, the

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

Market State Engine classifies the current market into nine states including balance, compression, bull and bear expansion, pullback, exhaustion, and transition. It computes orthogonal axes for structural regime, energy phase, value location relative to adapti

Indicator v6 TrendSupport & resistance Repaints
Updated 3 days ago · MIT GitHub repository of Market State Engine [WavesUnchained]

Bull/Bear Volume Diagram

by eddiebelaval
7 stars

The Bull/Bear Volume Diagram indicator calculates and displays directional volume in a separate pane below the price chart. It categorizes volume based on candle direction, plotting positive histogram columns for bullish bars and negative histogram columns for

Indicator v6 VolumeMoving averages
Updated 3 months ago · None stated GitHub repository of Bull/Bear Volume Diagram

Apex Protocol Assistant

by alboogycOdR
6 stars

Apex Protocol Assistant is a Smart Money Concepts overlay indicator designed for session-based market structure analysis. It highlights the Asian range, London and New York killzones, and key daily and weekly price levels. The indicator evaluates higher timefr

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Apex Protocol Assistant

Custom MACD

by g-moe
3 stars

This indicator plots a MACD line, a signal line, and a histogram in a separate pane. It calculates the oscillator as the difference between a fast and a slow moving average of a chosen source, then smooths that result for the signal. Each average can be an SMA

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

This overlay indicator marks ICT-style Unicorn setups on the price chart using fair value gaps and breaker blocks. Swing length and FVG sensitivity control how those zones are found, and an optional retracement can be required before a setup is confirmed. It c

Indicator v5 SMC / ICT / price actionSupport & resistance
Updated 2 months ago · None stated GitHub repository of ICT Unicorn | Flux Charts

Jurik Volatility (JVOLTY)

by mushroom-men-Trading
2 stars

Jurik Volatility calculates an adaptive measure of market volatility based on price distance relative to dynamic upper and lower bands. It normalizes volatility variations over time using adaptive smoothing constants and power transformations, allowing it to a

Indicator v6 Volatility & bands
Updated 9 months ago · None stated GitHub repository of Jurik Volatility (JVOLTY)

Draw - Plot Shape

by Web3Degenerate
2 stars

This educational indicator demonstrates how to use the plotshape function to display visual markers on the chart. It evaluates whether the current close is above the previous bar's high (higher close) or below it (lower close). Green upward triangles and HC la

Indicator v5 Breakout
Updated 2 years ago · None stated GitHub repository of Draw - Plot Shape

CHOCH + BOS

by skipp-dev
1 stars

Calculates market structure breaks by identifying Change-of-Character (ChoCH) and Break-of-Structure (BOS) levels on the price chart using swing high and swing low pivots. It features an integrated volume filter requiring breakout volume to exceed an SMA multi

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 4 days ago · None stated GitHub repository of CHOCH + BOS

P_err_wrong_arity

by GammaExpansion
1 stars

P_err_wrong_arity is a minimal Pine Script v6 indicator written as a test fixture for compiler parsing and arity validation. It attempts to call the built-in simple moving average function using only the close price without providing the required length argume

Indicator v6 Moving averages
Updated 7 days ago · MIT GitHub repository of P_err_wrong_arity

DEPV2 DEBUG S22

by YuceSezar89
1 stars

DEPV2 DEBUG S22 is a multi-symbol crypto indicator that monitors twenty perpetual futures pairs across four distinct market dimensions: trend, momentum, volatility, and volume. It evaluates signals using simultaneous consensus or sequential chains, requiring a

Indicator v6 Screeners & dashboardsTrend Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S22

0-1 Reversal Signals

by morindok
1 stars

0-1 Reversal Signals tracks consecutive sequences of bullish or bearish candlestick closes to highlight potential trend reversals. It counts consecutive green (1) or red (0) candles and generates visual Buy or Sell shape signals directly on the price chart whe

Indicator v5 Candlestick patternsTrend
Updated 7 weeks ago · None stated GitHub repository of 0-1 Reversal Signals

Apex Nexus Flip Engine v11

by vedkanani123
1 stars

A trend flip indicator on the price chart with BUY and SELL labels. It builds a zero-lag trail from an ATR multiple and an optional volume-weighted source, with an evasive mode that pushes the trail away during small pullbacks. Flips pass gates for choppiness,

Indicator v6 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Apex Nexus Flip Engine v11

Polish

by GreyssonEnterprises
1 stars

This indicator overlays multiple smoothed moving averages, candlestick reversal patterns, and trading session highlights directly onto the price chart. It calculates 21, 50, optional 100, and 200-period smoothed moving averages alongside a short-term moving av

Indicator v4 Moving averagesCandlestick patterns
Updated 3 months ago · MIT GitHub repository of Polish

A Pine Script v5 indicator in a separate pane that plots a Hurst spectral oscillator: the hl2 price is passed through bandpass filters for cycles from 1 day up to 18 years and the cycle waves are drawn together. Bandwidth is set per cycle, with narrower defaul

Indicator v5 Oscillators & momentum Repaints
Updated 6 months ago · None stated GitHub repository of Hurst Spectral Analysis Oscillator A1.1

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