Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 108)

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

Datsana V.1

by g-moe
3 stars

This indicator plots RSI divergence lines at resistance and support levels based on 14-period RSI crossing above 70 or below 30 within a search window of 141 bars. It displays dual EMA trend fill between periods 199 and 299, VWAP filter, TKPS tick pattern diam

Indicator v5 Oscillators & momentumMoving averages
Updated 5 months ago · None stated GitHub repository of Datsana V.1
3 stars

This indicator overlays Smart Money Concepts (SMC) analysis directly onto the price chart. It detects and plots internal and swing market structures including Break of Structure (BOS) and Change of Character (CHoCH), highlights swing points and strong or weak

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 12 months ago · None stated GitHub repository of Smart Money Concepts [BY-AQEEL]

Liquidity Sweeps [UAlgo]

by alvinng214
2 stars

Calculates pivot highs and pivot lows over a customizable length to draw horizontal support and resistance lines on the price chart. When price spikes past a pivot level but closes back within the range, the indicator identifies a buy or sell liquidity sweep,

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 2 months ago · None stated GitHub repository of Liquidity Sweeps [UAlgo]

Best SMA Finder

by regalouisei
2 stars

Best SMA Finder is an overlay indicator that scores simple moving average lengths with a crossover backtest. Long Only mode records a long entry when close crosses above the average and an exit when close crosses below it. Buy and Sell mode flips between long

Indicator v6 Moving averagesTrend
Updated 8 months ago · None stated GitHub repository of Best SMA Finder

Klinger Volume Oscillator

by mushroom-men-Trading
2 stars

The Klinger Volume Oscillator computes a volume-adjusted trend indicator by applying two exponential moving averages to a volume contribution derived from the current bar's price range and a trend strength factor. It produces a KVO line and a signal line that

Indicator v6 VolumeOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Klinger Volume Oscillator

Engulfing Candle Micro-Gaps

by Web3Degenerate
2 stars

The Engulfing Candle Micro-Gaps indicator identifies bullish and bearish engulfing candlestick patterns filtered by recent swing highs and swing lows. It introduces a configurable point allowance setting that accommodates minor price gaps between adjacent bars

Indicator v5 Candlestick patternsSupport & resistance
Updated 2 years ago · None stated GitHub repository of Engulfing Candle Micro-Gaps
1 stars

This indicator plots CHOCH (Change of Character) and BOS market structure signals on the price chart based on SMC logic. It calculates fast and slow EMAs, RSI, ATR volatility filters, and sweep lookback to detect breakouts and pullbacks. Signals trigger entrie

Indicator v6 SMC / ICT / price actionTrend Repaints
Updated 4 days ago · None stated GitHub repository of CHOCH-Base Indikator (RUNA logic)

P_fmt_args_named_positional

by GammaExpansion
1 stars

Plots the basic bar price series (open, high, low, close) alongside a 10-period simple moving average directly on the main price chart. The indicator tests various combinations of positional and named argument formatting across multiple plot function calls and

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

DEPV2 DEBUG S24

by YuceSezar89
1 stars

This indicator draws in a separate pane and requests data for up to twenty user-chosen symbols, defaulting to Binance crypto perpetual contracts. It combines four signal classes: trend, momentum, volatility, and volume. Signal mode can use one class, require a

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S24
1 stars

Advanced Time Analyzer calculates time cycles based on a user-defined start and end timestamp. After measuring the bar count of the initial time window, the indicator projects future vertical time lines across the price chart using configurable Fibonacci ratio

Indicator v5 Support & resistance
Updated 7 weeks ago · None stated GitHub repository of Advanced Time Analyzer

Displacement 4x

by nishpa800
1 stars

Overlay indicator running four independent displacement engines on the price chart. Each engine measures candle range as open to close or high to low, compares it with a standard deviation multiple, and marks the candle when a fair value gap confirms on the ne

Indicator v5 SMC / ICT / price actionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Displacement 4x

SCDTM - Unemployment Edition

by GreyssonEnterprises
1 stars

This overlay indicator tracks a multi-checkpoint setup built from trending exponential moving averages, Bollinger Band percent B, and a stochastic RSI crossover. A three- or five-bar fractal marks an unconfirmed signal, then the script stores breakout prices,

Indicator v4 Oscillators & momentumVolatility & bands Repaints
Updated 3 months ago · MIT GitHub repository of SCDTM - Unemployment Edition

A Pine Script v5 indicator in a separate pane, version A2.0 of a Hurst spectral oscillator. The chosen source, hl2 by default, is requested with lookahead on and filtered through bandpass filters for cycles from 1 day to 18 years. Every cycle has its own bandw

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

Combination by YZZ

by webcrack4
1 stars

Combination by YZZ is a multi-indicator divergence tool that overlays directly on the price chart. It checks for regular and hidden divergences across up to ten technical indicators, including RSI, MACD, Stochastic, CCI, Momentum, OBV, VWmacd, CMF, MFI, and ex

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

An indicator component that computes a slow stochastic oscillator with 14, 3 and 3 settings and checks it for regular bullish and bearish divergence against price pivots. The stochastic plot and the divergence labels are commented out in the visible code, so l

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

This indicator counts down to a fixed Litecoin halving timestamp in August 2019, using Greenwich Mean Time. It subtracts the current time from that stamp and formats the remaining days, hours, minutes, and seconds. The day, hour, and minute of the target are u

Indicator v4 Sessions & time
Updated 12 days ago · GPL-3.0 GitHub repository of Litecoin Halving UTC Countdown

AYLA-tracker

by Allen1212
303 stars

AYLA-tracker visualizes ARK Invest trade activities for AYLA directly on the price chart. It plots historical execution labels at specific timestamps, indicating dates when ARK Invest bought or sold shares of the stock. The indicator does not compute technical

Indicator v4
Updated 2 years ago · None stated GitHub repository of AYLA-tracker

Risk Manager Template

by TradersPost
228 stars

This overlay indicator estimates position size from account equity, a per-trade risk percentage, and a chosen stop distance. Stops can use ATR, a percent of price, fixed points, or a swing high or low. It derives stop and optional take-profit prices from a ris

Indicator v6 Volatility & bandsSupport & resistance
Updated 3 months ago · None stated GitHub repository of Risk Manager Template

Cointegration

by mihakralj
99 stars

Calculates the statistical cointegration between the current chart instrument and a user-selected secondary ticker using the Engle-Granger method. It evaluates the stationarity of the regression residuals and plots the Augmented Dickey-Fuller test statistic in

Indicator v6 Mean reversion
Updated 4 weeks ago · Apache-2.0 GitHub repository of Cointegration

array.reverse()

by be-thomas
65 stars

This indicator demonstrates the Pine Script array.reverse function. It creates an empty float array, appends the values zero, one, and two, and on the last bar reverses that array in place. A label then displays the reversed contents next to the last bar. The

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

NQ Hourly Retracement Levels highlights NY, London, and Asia trading sessions directly on the price chart. It plots hourly open prices and midpoint retracement levels at the New York session open, filtering levels based on a configurable minimum hit rate thres

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of NQ Hourly Retracement Levels

Calculates the Hilbert Transform In-Phase and Quadrature components of a price series to measure underlying cyclic behavior. It processes the input source through smoothing, detrending, and Hilbert phase calculation steps to generate two orthogonal component l

Indicator v6 Oscillators & momentum
Updated 8 months ago · MIT GitHub repository of HT_PHASOR: Hilbert Transform Phasor Components

Double EMA

by TWODS-CAPITAL
37 stars

This indicator plots a double exponential moving average on the price chart. It first smooths the chosen source with an exponential moving average, then smooths that result again with the same length, and combines the two so the line responds faster than a sin

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

This overlay indicator is a reusable template for Ruckard indicators meant to work with Zignaly. The implemented logic sections are empty, so it does not plot signals or manage trades. It exposes a higher-timeframe trend filter built from a fast and a slow mov

Indicator v5 TrendMoving averages
Updated 1 year ago · None stated GitHub repository of IndicatorTemplate A002

The Market Tradability Engine calculates multi-factor tradability, balance, compression, and direction scores to evaluate market regime quality. It classifies market conditions into eight distinct states, including Balance, Compression, Ready, Breakout, Trend,

Indicator v6 TrendVolatility & bands
Updated 3 days ago · MIT GitHub repository of Market Tradability Engine [WavesUnchained]

CVD Momentum Divergence

by eddiebelaval
7 stars

This indicator approximates cumulative volume delta from each bar's volume and candle body, then detrends and normalizes both price and CVD so they can be compared in a separate pane. It plots the two smoothed series and an optional histogram of their differen

Indicator v6 Oscillators & momentumVolume
Updated 3 months ago · None stated GitHub repository of CVD Momentum Divergence
6 stars

This Pine Script v5 indicator is an SMC trading engine that plots order blocks, fair value gaps, break of structure markers, market structure shifts, and Fibonacci retracements on the price chart. It supports customizable higher and lower timeframes along with

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
Updated 7 months ago · None stated GitHub repository of Apex Protocol The SMC Engine
4 stars

This indicator computes a momentum value via linear regression on the difference between close price and a mid-value average that blends highest-lowest range and high-close average over the Keltner Channel length. It overlays Bollinger Bands and Keltner Channe

Indicator v6 Oscillators & momentumVolatility & bands
Updated 2 months ago · MIT GitHub repository of Squeeze Momentum [trugurpala]
3 stars

This indicator tracks the low of day and high of day during the specified RTH session hours in the New York timezone. It calculates the high at the current low of day (lod_h) and the low at the current high of day (hod_l). Horizontal lines are drawn at these l

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Day Trading Reversal System
3 stars

This Pine Script indicator plots Smart Money Concepts market structure directly on the price chart. It identifies swing highs and lows, internal market structures, Break of Structure events, Change of Character shifts, and EQH/EQL levels. Breaker blocs are hig

Indicator v5 SMC / ICT / price actionCandlestick patterns Repaints
Updated 12 months ago · None stated GitHub repository of SMC & Breaker Blocs [Krishna]

VWMA 1hr + WF

by avatar-lavventura
2 stars

This script calculates a 1-hour 24-period Volume Weighted Moving Average (VWMA) and plots it directly on the price chart with customizable upper and lower percentage offset bands. It combines Williams Fractals for local swing highs and lows with a 14-period Re

Indicator v4 Moving averagesOscillators & momentum
Updated 7 months ago · None stated GitHub repository of VWMA 1hr + WF
2 stars

Calculates and projects Bitcoin price trajectory using a power law model displayed as a clock layout in a separate pane. It maps historical price movements, average power law curves, and Bitcoin halving cycles over time. Users can toggle spiral visualization m

Indicator v6 TrendSupport & resistance
Updated 8 months ago · None stated GitHub repository of Bitcoin Power Law Clock [LuxAlgo]

Least Squares Moving Average (LSMA)

by mushroom-men-Trading
2 stars

This indicator calculates and plots the Least Squares Moving Average (LSMA) directly on the price chart. It fits a linear regression line over a user-selected lookback period and source series to project the prevailing price trend. By using an optimized circul

Indicator v6 TrendMoving averages
Updated 9 months ago · None stated GitHub repository of Least Squares Moving Average (LSMA)

Fractal Engulfing Candles

by Web3Degenerate
2 stars

This indicator identifies bullish and bearish engulfing candlestick patterns filtered by fractal swing points and RSI momentum levels. It detects swing highs and lows over a configurable lookback period, requiring bullish signals to coincide with a swing low a

Indicator v5 Candlestick patternsOscillators & momentum
Updated 2 years ago · None stated GitHub repository of Fractal Engulfing Candles

P_fmt_comment_before_version

by GammaExpansion
1 stars

P_fmt_comment_before_version is a basic test script created to demonstrate and verify Pine Script formatting and parsing capabilities. The indicator calculates and plots the closing price of the active instrument in a separate chart pane. It contains no config

Indicator v6
Updated 7 days ago · MIT GitHub repository of P_fmt_comment_before_version
1 stars

An overlay indicator that classifies the market into regimes such as trend, chop and squeeze using ADX, range efficiency, relative volume, ATR expansion and VWAP slope. It also measures how far price is from VWAP and an EMA to flag rich, cheap or extreme readi

Indicator v6 Volatility & bandsMean reversion
Updated 8 days ago · GPL-3.0 GitHub repository of Regime Engine + TCO Gatekeeper

DEPV2 DEBUG S25

by YuceSezar89
1 stars

The script is a multi-symbol crypto indicator that computes trading signals across twenty major pairs including BTCUSDT, ETHUSDT and others. It evaluates four core methods for signals: trend based on price levels, momentum using rate of change, volatility via

Indicator v6 TrendOscillators & momentum Repaints
Updated 13 days ago · None stated GitHub repository of DEPV2 DEBUG S25

Apex Nexus Flip Engine v9

by vedkanani123
1 stars

An overlay indicator that builds a zero-lag trailing line from an ATR multiple and flips between buy and sell labels when price breaks it for a set number of closes. Gates for choppiness, baseline slope, volatility expansion, efficiency and ADX can block weak

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

E3 F2 Cluster Signals

by nishpa800
1 stars

Overlay indicator that extracts six signal types from a larger signal study: cluster, E3 and First Two momentum-bar patterns, each in a bullish and bearish version, plus combined any-bull and any-bear markers. Visibility, alert switches and marker colours are

Indicator v5 Oscillators & momentumVolume
Updated 2 months ago · None stated GitHub repository of E3 F2 Cluster Signals

Setup Backtest

by GreyssonEnterprises
1 stars

A Pine v4 indicator that shades a trading session window on the chart, with an earlier analysis start and a later session start and end, all set in a chosen time zone that defaults to Chicago. Individual weekdays can be switched on or off and the label and col

Indicator v4 Sessions & time
Updated 3 months ago · MIT GitHub repository of Setup Backtest

A Pine Script v5 indicator in a separate pane, version A3.0 of a Hurst spectral oscillator. It fetches a selectable source, hl2 by default, with lookahead on and runs it through bandpass filters for cycles from 1 day to 18 years. Bandwidth and period are set f

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

This indicator calculates regular and hidden divergences across multiple momentum and volume oscillators, including MACD, RSI, Stochastic, CCI, Momentum, OBV, VW-MACD, CMF, and MFI, as well as an optional external input. It scans for pivot highs and lows using

Indicator v4 DivergenceOscillators & momentum
Updated 9 months ago · None stated GitHub repository of Combined Indicators Fixed

Performance Table

by ivansoft
1 stars

Shows a table of percentage price changes for a list of symbols over a list of periods, such as one week, one to twelve months, year to date and five years. Both lists are text inputs, with the chart symbol optionally included. Cells are coloured green or red

Indicator v6 Screeners & dashboards Repaints
Updated 1 year ago · None stated GitHub repository of Performance Table
1 stars

An indicator component that calculates 20-period Bollinger Bands with a 2.0 deviation multiplier and plots the basis, upper and lower bands with a shaded fill. It also converts band contact into a weighted score: a score when the close is below the lower band

Indicator v5 Volatility & bandsMean reversion
Updated 1 year ago · None stated GitHub repository of Neural Network Sub 31 Bollinger
947 stars

Mean Absolute Deviation Bands is a volatility indicator that plots bands around a moving average basis line calculated from a user-selected source. It draws upper and lower bands using a multiplier on the mean absolute deviation, with the background between th

Indicator v4 Volatility & bandsMoving averages
Updated 12 days ago · GPL-3.0 GitHub repository of Mean Absolute Deviation Bands

AYX-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of AYX on the price chart. It places green buy labels below the bar and red sell labels above the bar at fixed calendar dates, each labeled with an X1 count. The only input selects the ETF

Indicator v4
Updated 2 years ago · None stated GitHub repository of AYX-tracker

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