Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 103)

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

VHF Indicator

by JohnsonHsiao
1 stars

This indicator calculates the Vertical Horizontal Filter (VHF) to help identify whether a market is trending or ranging. It measures the difference between the highest and lowest close over a user-defined period and divides it by the sum of absolute bar-to-bar

Indicator v5 TrendVolatility & bands
Updated 3 years ago · None stated GitHub repository of VHF Indicator

Hampel Filter

by everget
947 stars

The Hampel Filter indicator identifies and filters out price outliers to smooth price data directly on the main chart. It calculates the rolling median and Median Absolute Deviation (MAD) of the chosen source series over a specified length. When a data point e

Indicator v4 Moving averagesVolatility & bands
Updated 13 days ago · GPL-3.0 GitHub repository of Hampel Filter

APTV-tracker

by Allen1212
303 stars

APTV-tracker plots historical ARK Invest buy and sell transactions directly on the price chart for Aptiv PLC. The script uses hardcoded labels anchored to specific historical timestamps to mark execution dates, showing transaction directions and ETF counts. An

Indicator v4
Updated 2 years ago · None stated GitHub repository of APTV-tracker
257 stars

Calculates three weighted moving averages (11-period, 48-period, and 200-period WMAs) to evaluate market trend conditions directly on the price chart. It monitors crossovers between price and WMAs as well as crossovers between the moving averages themselves to

Indicator v5 TrendMoving averages
Updated 7 weeks ago · None stated GitHub repository of Snag - NEW SWING FAST
228 stars

This indicator computes moving average and RSI bias signals across the current timeframe and four higher timeframes. It sums biases from the MA and RSI to derive an overall bullish or bearish signal. The results appear in a configurable table that displays eac

Indicator v6 TrendMoving averages
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe Analysis Template
114 stars

This indicator calculates key support and resistance levels by analyzing the first and second momentum derivatives of a Double Exponential Moving Average (DEMA). When the second derivative (momentum of momentum) crosses zero, it identifies local turning points

Indicator v4 Support & resistanceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Support and Resistance Levels
99 stars

The Chande Forecast Oscillator plots the percentage difference between the selected source and a linear-regression forecast of that source. It fits slope and intercept over the chosen period using incremental sums, then expresses the forecast error as a percen

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chande Forecast Oscillator (CFO)

Volume

by be-thomas
65 stars

This indicator plots volume as columns in a separate pane. Bar color is the bull input when close is above open and the bear input otherwise. A running count of consecutive volume rises or falls, clamped between one and the gradient-levels setting, sets column

Indicator v5 Volume
Updated 7 days ago · GPL-3.0 GitHub repository of Volume

Hourly Time Levels

by TamaraKGreen
47 stars

Hourly Time Levels plots opening price horizontal lines and text labels at specific user-selected times of the trading day directly on the main price chart. It marks key intraday timestamps such as midnight, market opens, and specific hourly intervals includin

Indicator v5 Support & resistanceSessions & time
Updated 8 weeks ago · None stated GitHub repository of Hourly Time Levels

This indicator calculates a Gaussian-weighted moving average of a chosen price source and plots it on the price chart. It builds a finite impulse response window, weights past bars with a normalized Gaussian bell, and returns the weighted mean. Period sets the

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Gaussian-Weighted Moving Average (GWMA)

Dark Cloud Cover - Bearish

by TWODS-CAPITAL
37 stars

Identifies the two-candle Dark Cloud Cover bearish reversal candlestick pattern on price charts. The indicator evaluates the prevailing trend using optional simple moving averages (SMA 50 or SMA 200) and checks for a strong bullish candle followed by a bearish

Indicator v5 Candlestick patternsTrend
Updated 3 years ago · MIT GitHub repository of Dark Cloud Cover - Bearish

This indicator classifies market state into bull, bear, or neutral regimes using three moving averages and ATR-based stop bands plotted directly on the price chart. It evaluates alignment across customizable MA types (SMA, EMA, DEMA, TEMA, or JMA) and filters

Indicator v6 TrendMoving averages
Updated 4 days ago · MIT GitHub repository of MA Regime Bands [WavesUnchained]

Average True Range V2

by eddiebelaval
7 stars

Average True Range V2 calculates market volatility using customizable moving average smoothing methods, including RMA, SMA, EMA, and WMA. Drawn in a separate pane, it offers options to wait for bar confirmation before updating values and can invert the ATR sca

Indicator v6 Volatility & bands
Updated 3 months ago · None stated GitHub repository of Average True Range V2

VuManChu B Divergences

by jerryinyang
5 stars

The VuManChu B Divergences indicator combines a WaveTrend oscillator with a Money Flow Index calculation to analyze market momentum and volume flow. It plots dual WaveTrend curves alongside overbought and oversold levels in a separate indicator pane, highlight

Indicator v4 Oscillators & momentumMoving averages
Updated 2 years ago · None stated GitHub repository of VuManChu B Divergences

MTF EMA + MACD

by krosenfeld7
5 stars

This indicator plots two multi-timeframe exponential moving averages on the price chart and calculates a MACD from the chart source. It marks Long when the shorter-timeframe EMA is above the longer one and a counted sequence of MACD and signal crosses reaches

Indicator v4 TrendMoving averages Repaints
Updated 3 years ago · Apache-2.0 GitHub repository of MTF EMA + MACD
3 stars

This overlay indicator draws supply and demand zones from prior swing highs and lows, treating supply as resistance and demand as support. It places price-action labels at swing points using higher-high, lower-high, higher-low, and lower-low tags. It also plot

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 5 months ago · None stated GitHub repository of CSW Technical-Analysis
3 stars

Price Action Market Structure Sweeps identifies swing and internal market structure events, including Break of Structure (BOS) and Change of Character (CHoCH). It overlays key high and low levels across daily, weekly, monthly, and yearly timeframes, while mark

Indicator v5 SMC / ICT / price actionSupport & resistance Repaints
2 stars

This overlay indicator detects price contractions from confirmed pivot highs and lows. When price later breaks above the contraction high or below the contraction low, it draws a bullish or bearish box between those extremes and a midline at their average. Sep

Indicator v5 Support & resistanceSMC / ICT / price action
Updated 6 weeks ago · None stated GitHub repository of Master Pattern [LuxAlgo]

RSI Divergence

by avatar-lavventura
2 stars

This indicator calculates the difference between two Relative Strength Index oscillators with fast and slow periods. It plots this spread as a two-color line alongside a zero line in a separate pane. The plot turns lime when positive and red when negative. Sig

Indicator v4 Oscillators & momentumDivergence
Updated 8 months ago · None stated GitHub repository of RSI Divergence

HMACCI

by mushroom-men-Trading
2 stars

The HMACCI indicator calculates multiple Hull Moving Averages with variants including Hma, Thma, Ehma and Rmahma. It plots colored line signals on the price chart based on source close, lengths, multipliers, offsets and history bars. Users adjust MA types, len

Indicator v6 Moving averages
Updated 9 months ago · None stated GitHub repository of HMACCI

Data Types

by Web3Degenerate
2 stars

This indicator is a tutorial script that declares Pine Script values of several built-in types and plots a few of them. It assigns an integer, decimal and scientific-notation floats, a boolean, built-in, hex and RGB colors, and strings that include escapes and

Indicator v5
Updated 2 years ago · None stated GitHub repository of Data Types

An indicator that converts RSI, MACD histogram, Bollinger position, ATR, Stochastic, OBV change, ADX and VWAP deviation into z-scores, combines them with adjustable weights into one composite score, and smooths it with a Kalman filter. Buy and sell labels appe

Indicator v5 Oscillators & momentumAI / machine learning
1 stars

This indicator detects long-only trading setups centered on volume-weighted average price (VWAP) reclaim sequences. It calculates VWAP with standard deviation bands, tracking slope and price bias through an exponential moving average. Signals trigger on either

Indicator v6 TrendMoving averages
Updated 5 days ago · None stated GitHub repository of VWAP Reclaim (LONG-only) Indicator

P_err_undeclared_identifier

by GammaExpansion
1 stars

This test indicator is designed to verify parser error handling for undeclared identifiers in Pine Script v6. It attempts to plot an uninitialized variable name on a separate chart pane, serving as a syntax validation fixture for Pine Script backtesting engine

Indicator v6
Updated 8 days ago · MIT GitHub repository of P_err_undeclared_identifier

DEPV2 DEBUG S18

by YuceSezar89
1 stars

This Pine Script indicator scans multiple Binance cryptocurrency symbols including BTCUSDT, ETHUSDT, and others. It computes signals across four method classes: trend, momentum, volatility, and volume. Different signal modes include single-method, simultaneous

Indicator v6 TrendOscillators & momentum Repaints
Updated 2 weeks ago · None stated GitHub repository of DEPV2 DEBUG S18
1 stars

A momentum consensus indicator drawn on the price chart. It scores RSI, rate of change, MACD, Bollinger position, MFI and smoothed OBV against a percentile lookback and issues buy and sell signals when the consensus passes a threshold, 0.618 by default. Option

Indicator v6 Oscillators & momentumTrend
Updated 2 months ago · None stated GitHub repository of Adaptive Momentum Classifier

GrimmTurtleTest

by GreyssonEnterprises
1 stars

A Pine v4 indicator that combines several tools on the price chart: smoothed moving averages of 21, 50, 100 and 200 bars, a trend fill between a fast EMA and the 200 line, a three-line strike candle pattern and engulfing candle markers. A configurable trading

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

Hurst Peak Marker V3

by mikeyhu70
1 stars

A Pine Script v5 indicator in a separate pane, the third revision of a Hurst cycle peak marker. It filters the hl2 price with bandpass filters for cycles from 1 day to 18 years and draws labels and lines where cycle peaks form. Per-cycle bandwidth and period i

Indicator v5 Oscillators & momentumSupport & resistance
Updated 6 months ago · None stated GitHub repository of Hurst Peak Marker V3

RSI Divergence Detector

by knectardev
1 stars

The RSI Divergence Detector identifies regular and hidden divergences between price movement and the Relative Strength Index (RSI). It calculates price and RSI pivot highs and lows over a customizable lookback window to detect bullish and bearish setups. Upon

Indicator v5 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of RSI Divergence Detector

Combination by Yzz

by webcrack4
1 stars

This indicator merges multiple momentum oscillators including MACD, RSI, Stochastic, CCI, Momentum, OBV, VW MACD, Chaikin Money Flow and Money Flow Index into one chart. It scans for regular and hidden divergences between the chosen indicators to signal potent

Indicator v4 Oscillators & momentumDivergence
Updated 9 months ago · None stated GitHub repository of Combination by Yzz

Moving Average Simple

by ivansoft
1 stars

Plots a simple moving average on the price chart with adjustable length, source and offset. An optional second smoothing line can be added to the result using SMA, EMA, SMMA, WMA or VWMA, or SMA with Bollinger Bands whose width follows a multiplier. The defaul

Indicator v6 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Moving Average Simple
1 stars

An overlay indicator that is one component of a weighted scoring system. It draws a 200-bar trend EMA and four shorter EMAs of 9, 21, 55 and 100 bars, with fills between price and each average coloured by slope. It also converts the trend into weighted scores:

Indicator v5 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of Neural Network Sub 11 Trend EMA

Williams Inducator

by JohnsonHsiao
1 stars

Williams Inducator calculates a basic Williams %R style momentum oscillator over a configurable lookback period. It determines the highest high and lowest low across the specified bars, measures the position of the closing price within that range, and scales t

Indicator v5 Oscillators & momentum
Updated 3 years ago · None stated GitHub repository of Williams Inducator
947 stars

The Heikin-Ashi Chart Identifier is an indicator that checks if the current chart uses Heikin-Ashi candles. It tracks matched candles where open equals the average of previous open and close, and verifies no gaps between bars. When conditions match, it display

Indicator v4 Candlestick patterns
Updated 13 days ago · GPL-3.0 GitHub repository of Heikin-Ashi Chart Identifier
330 stars

Range Filter [Alorse] is a technical indicator overlay for TradingView designed to filter market volatility and identify price trends. It calculates a smoothed range based on historical volatility using a configurable sampling period and multiplier applied to

Indicator v5 TrendVolatility & bands
Updated 2 months ago · None stated GitHub repository of Range Filter [Alorse]

AQB-tracker

by Allen1212
303 stars

Visualizes historical ARK Invest transactions for AquaBounty Technologies (AQB) directly on the price chart. The indicator creates green buy labels below bars and red sell labels above bars at hardcoded timestamps corresponding to reported ARK trading activity

Indicator v4
Updated 2 years ago · None stated GitHub repository of AQB-tracker
228 stars

This indicator calculates the Relative Strength Index (RSI) across four user-selected timeframes and plots the results in a separate pane. It identifies regular bullish and bearish divergences between price pivot points and the primary timeframe RSI value. Add

Indicator v6 Oscillators & momentumDivergence
Updated 3 months ago · None stated GitHub repository of Multi-Timeframe RSI with Divergence
114 stars

Calculates classic pivot points, support, and resistance levels based on previous bar high, low, and close values. It generates long entry signals when the close price crosses above the central pivot point and short entry signals when it drops below. Position

Indicator v4 Support & resistanceTrend
Updated 1 year ago · None stated GitHub repository of Support and Resistance Strategy
99 stars

The Chande Kroll Stop calculates volatility-based adaptive trailing stops for long and short positions. It determines an initial volatility envelope by subtracting or adding a scaled Average True Range from the highest high or lowest low over a set lookback pe

Indicator v6 TrendVolatility & bands
Updated 4 weeks ago · Apache-2.0 GitHub repository of Chande Kroll Stop (CKSTOP)

This indicator plots a 20-period RSI in a separate pane and watches whether it crosses the 50 level. A long condition is true when RSI crosses above 50 and Detect Longs is enabled; a short condition is true when RSI crosses below 50 and Detect Shorts is enable

Indicator v4 Oscillators & momentum
Updated 7 days ago · GPL-3.0 GitHub repository of alertcondition() on multiple conditions
47 stars

This indicator calculates and plots the Initial Balance (IB) high, low, and intermediate Fibonacci levels based on a user-defined trading session. It overlays standard deviation channels and mean or median extension levels directly on the price chart. Users ca

Indicator v5 Sessions & timeSupport & resistance
Updated 8 weeks ago · None stated GitHub repository of Initial Balance & Extensions DOW
47 stars

This indicator plots a Hamming-window finite impulse response moving average of a chosen price source on the price chart. It weights recent bars with the Hamming cosine window, renormalizes by the sum of weights, and uses only bars available during warm-up so

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Hamming Moving Average (HAMMA)

Detrended Price Oscillator

by TWODS-CAPITAL
37 stars

This indicator calculates the Detrended Price Oscillator to identify short-term cycles by removing long-term trends from price. It compares price data against a simple moving average defined by the user-selected length. Traders can toggle a centered mode that

Indicator v5 Oscillators & momentum
Updated 3 years ago · MIT GitHub repository of Detrended Price Oscillator

Market Exhaustion combines the Money Flow Index (MFI) and Stochastic RSI to pinpoint overbought and oversold conditions. It offers customizable oscillator modes including MFI, Commodity Channel Index (CCI), or a composite blend. The indicator calculates standa

Indicator v6 Oscillators & momentumDivergence
Updated 4 days ago · MIT GitHub repository of Market Exhaustion [WavesUnchained]

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