Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 130)

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

Swing Conviction Radar measures the strength of individual price swings by calculating a composite conviction score from 0 to 100 at confirmed pivots. It evaluates three swing components: ATR-normalized speed, trend cleanliness (fraction of on-trend bars), and

Indicator v6 Oscillators & momentumVolume
Updated 3 days ago · MIT GitHub repository of Swing Conviction Radar [WavesUnchained]
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

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]

Volume Weighted Average Price (VWAP)

by mushroom-men-Trading
2 stars

This indicator calculates the Volume Weighted Average Price (VWAP) based on the provided source price series, typically hlc3, weighted by volume. The VWAP resets at the beginning of the specified session type, such as daily (1D), hourly (1H), or custom interva

Indicator v6 VolumeSupport & resistance
Updated 9 months ago · None stated GitHub repository of Volume Weighted Average Price (VWAP)

NIFTY 5m Supertrend Scalper

by vedkanani123
1 stars

A price-chart indicator designed for the one-minute chart of Indian index instruments. It computes a Supertrend with ATR length 10 and multiplier 3 on confirmed five-minute bars, so a flip signal appears on the first one-minute bar after the five-minute close.

Indicator v6 TrendScalping
Updated 2 months ago · None stated GitHub repository of NIFTY 5m Supertrend Scalper

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

DOYU-tracker

by Allen1212
303 stars

This overlay indicator marks historical ARK Invest purchases and sales of DOYU on the price chart. When the ETF input is ALL, it places green buy labels below the bar and red sell labels above the bar on fixed calendar dates, each labeled with an X1 count. The

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

Double Size Every Bar

by ricardosantos79
261 stars

Double Size Every Bar is an experimental Pine Script v4 indicator that demonstrates array size manipulation across price bars. The script initializes a persistent floating-point array and dynamically inserts new elements on each bar execution, causing the arra

Indicator v4
Updated 4 years ago · None stated GitHub repository of Double Size Every Bar

Price Divergence

by capissimo
114 stars

This indicator detects regular and hidden divergences across multiple technical factors plotted directly on the price chart. It evaluates price highs and lows against peaks and troughs identified by a five-bar fractal mechanism on RSI, RSI Stochastic, MACD, re

Indicator v4 DivergenceOscillators & momentum
Updated 1 year ago · None stated GitHub repository of Price Divergence
99 stars

Calculates John F. Ehlers' MESA Stochastic oscillator by processing price data through a roofing filter before applying stochastic logic. The roofing filter combines a high-pass filter to remove low-frequency trend components and a super smoother filter to fil

Indicator v6 Oscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers MESA Stochastic (MSTOCH)

Example security 1

by be-thomas
65 stars

This indicator plots the 15-minute close of NYSE:IBM on the current chart. It calls the security function with a fixed symbol, the 15-minute timeframe, and the close, then draws that series as one overlay line. There are no inputs, alerts, or trade entries and

Indicator v4
Updated 6 days ago · GPL-3.0 GitHub repository of Example security 1
47 stars

This indicator calculates a two-pole IIR Butterworth-style supersmooth lowpass filter and plots the resulting smoothed curve directly on the price chart overlay. It filters out high-frequency noise from market data with minimal lag. The user can adjust the cal

Indicator v6 TrendMoving averages
Updated 8 months ago · MIT GitHub repository of Supersmooth Filter (SSF)

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

This indicator evaluates market structure events, including breaks of structure, liquidity sweeps, and order blocks, by calculating reaction speed, validation, and volatility activity scores. It plots composite scores in a separate pane while offering optional

Indicator v6 Volatility & bandsSMC / ICT / price action
Updated 3 days ago · MIT GitHub repository of Time-to-React + Volatility-Time (BOS / Sweep / OB)

Visual Trading Zones

by eddiebelaval
7 stars

Visual Trading Zones draws evenly spaced price zones on the chart from the highest and lowest prices over a configurable lookback. It spaces levels by a step in ticks or forex pips, optionally inserts sublevels, and can show filled zones, level lines, and pric

Indicator v6 Support & resistance
Updated 3 months ago · None stated GitHub repository of Visual Trading Zones

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

NIMOV6 + THT Volume Pro

by vedkanani123
1 stars

A price-chart indicator that plots several EMAs with a coloured 8 and 21 cloud, Bollinger Bands, and an optional VWAP. Buy and sell triangles mark 8 and 21 EMA crossovers, and further intraday patterns use three higher lows or three lower highs. An optional vo

Indicator v6 Moving averagesVolume
Updated 2 months ago · None stated GitHub repository of NIMOV6 + THT Volume Pro
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

DRNA-tracker

by Allen1212
303 stars

This indicator plots historical buy and sell transactions executed by ARK Invest for the stock DRNA directly on the price chart. It renders green upward labels below price bars for purchase events and red downward labels above price bars for sales events, disp

Indicator v4
Updated 2 years ago · None stated GitHub repository of DRNA-tracker
261 stars

This indicator demonstrates an experimental graph-style scatter visualization within a separate pane using Pine Script arrays. It tracks two features across recent bars: the single-bar price change and a scaled 14-period Relative Strength Index. Values are loa

Indicator v4 Oscillators & momentum
Updated 4 years ago · None stated GitHub repository of Example: Graph Style - 4th Dimension RSI

This indicator plots the Ehlers moving average difference with Hann windowing in a separate pane. It runs two Hann FIR filters on the chosen source: a short window and a longer window whose length is the short length plus half the dominant cycle. The oscillato

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Moving Average Difference with Hann (MADH)

Theil Index (THEIL)

by mihakralj
47 stars

The Theil Index indicator measures statistical inequality and distribution entropy in a price series over a specified lookback period. It iterates through recent bars, calculates the mean price, and computes the sum of logarithmic price-to-mean ratios. Higher

Indicator v6 Volatility & bands
Updated 8 months ago · MIT GitHub repository of Theil Index (THEIL)

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

Trade Permission Engine evaluates whether market structure currently permits long or short trades, alongside a decoupled Position Health score for managing existing positions. It analyzes alternating confirmed swing legs, Fibonacci retracement depths, time mat

Indicator v6 SMC / ICT / price actionTrend
Updated 3 days ago · MIT GitHub repository of Trade Permission Engine [WavesUnchained]

Volume Candle Coloring

by eddiebelaval
7 stars

This indicator colors price chart candles according to trading volume relative to a simple moving average. It classifies volume into five distinct tiers ranging from low to ultra using customizable multiplier thresholds. Candles are painted directly on the mai

Indicator v6 VolumeCandlestick patterns
Updated 3 months ago · None stated GitHub repository of Volume Candle Coloring

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

Weighted Moving Average (WMA)

by mushroom-men-Trading
2 stars

The Weighted Moving Average indicator computes a weighted average of price data using an optimized circular buffer for efficient calculation. It plots the WMA line on the price chart as an overlay. The period setting determines the lookback window, and the sou

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

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

NO.1 Major Daily Signal

by vedkanani123
1 stars

A price-chart indicator that marks only buy and sell labels, with no trail, cloud or dashboard. A signal closes any opposite position and flips direction. It combines a fast zero-lag EMA, slow EMA, Hull average and macro EMA with slope, separation, ADX, DMI sp

Indicator v6 TrendSessions & time Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 Major Daily Signal

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

DSM-tracker

by Allen1212
303 stars

DSM-tracker is an overlay indicator that marks ARK Invest activity on the price chart. In the supplied code it draws one green label below the bar on 17 January 2020 reading Buy X1 when the ETF input is ALL. That input offers only the ALL choice, so it does no

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

f_push()

by ricardosantos79
261 stars

This demonstration script implements a custom FIFO array push function in Pine Script v4. It maintains a fixed-length array of closing prices by popping the oldest value and inserting the newest close at the front index. The script plots the newest price eleme

Indicator v4 Moving averages
Updated 4 years ago · None stated GitHub repository of f_push()
99 stars

This indicator calculates market cycle phase using John Ehlers' Phasor Analysis methodology. It correlates the price series against cosine and negative-sine reference waves via dual Pearson correlation to extract real and imaginary phasor components. From thes

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Phasor Analysis (HT_PHANA)

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