Pine Library · 7,612 open-source scripts

Free TradingView Indicators (page 132)

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

EB-tracker

by Allen1212
303 stars

This indicator plots labels on the price chart to mark ARK Invest sell events for selected ETFs. Users choose the ETF type via input settings. Labels show sell information with share volumes and stock weights in the ETF. It draws on the price chart overlay. Th

Indicator v4 Screeners & dashboards
Updated 2 years ago · None stated GitHub repository of EB-tracker

Function: Complex Numbers

by ricardosantos79
261 stars

Function: Complex Numbers is a Pine Script v4 utility script that provides custom functions for handling complex numbers stored in two-element float arrays. It enables developers to construct complex numbers from real and imaginary parts, extract individual co

Indicator v4
Updated 4 years ago · None stated GitHub repository of Function: Complex Numbers

Ehlers Reverse EMA

by mihakralj
99 stars

Calculates John F. Ehlers' Reverse Exponential Moving Average (EMA) designed to eliminate lag from traditional exponential smoothing. The indicator computes a warmup-compensated base EMA and subjects it to an 8-stage cascaded Z-transform inversion. The resulti

Indicator v6 Moving averagesTrend
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Reverse EMA

Fill Example

by be-thomas
65 stars

This Pine Script v4 indicator plots three series on a price chart: the sine of high prices, the cosine of low prices, and the sine of close prices. It uses the fill function to shade the area between the first and third plot in red and between the second and t

Indicator v4 Support & resistance
Updated 6 days ago · GPL-3.0 GitHub repository of Fill Example
47 stars

This indicator calculates the two-argument arctangent function to compute the angle in radians between the positive x-axis and a point defined by two inputs. It handles all four quadrants correctly, bounding results between negative pi and positive pi. The use

Indicator v6
Updated 8 months ago · MIT GitHub repository of Two-Argument Arctangent (ATAN2)

Multi-Time Period Charts

by TWODS-CAPITAL
37 stars

This overlay indicator draws a box for each completed higher-timeframe period on the price chart. Box height follows High/Low Range, True Range, or Heikin Ashi Range, and the fill is growth or fall color according to that period’s open-to-close change. Auto ti

Indicator v5 Support & resistanceVolatility & bands
Updated 3 years ago · MIT GitHub repository of Multi-Time Period Charts
9 stars

This indicator calculates an advanced True Strength Index momentum oscillator plotted in a separate pane. It evaluates price momentum using double-smoothed price changes, offering multiple signal line smoothing algorithms such as EMA, SuperSmoother, and JMA ap

Indicator v6 Oscillators & momentumTrend
Updated 3 days ago · MIT GitHub repository of TSI Advanced [WavesUnchained]
7 stars

This indicator calculates a Volume Weighted Average Price (VWAP) reset across selectable anchor periods, including daily sessions, weekly, monthly, yearly, YTD, half-year, or a custom manual date. It plots the main VWAP line on the price chart alongside option

Indicator v6 VolumeSupport & resistance
Updated 3 months ago · None stated GitHub repository of VWAP Enhanced (Visual Feedback)

Institutional CRT Engine

by alboogycOdR
6 stars

Institutional CRT Engine identifies Candle Range Theory setups by monitoring session-based time models for liquidity sweeps, Market Structure Shifts, and Fair Value Gaps. It plots CRT range boxes and signal labels directly on the main chart. Key settings allow

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine

This lower-pane indicator tracks a custom Supertrend built from ATR and a selectable average, then colors trend states such as rising, bear, pretrend, overbought, and oversold. It can paint bars, plot optional arrows, and show a dashboard of EMA lengths and sc

Indicator v5 TrendOscillators & momentum
Updated 5 months ago · None stated GitHub repository of J8 30 123 Spy Scalping Lower Pro
2 stars

Delta Volume Candles [LucF] plots replacement candles on the price chart and colors them from delta volume derived with lower-timeframe intrabar data. Users choose body coloring, including polarity or several volume-balance modes, optional gradients, and hollo

Indicator v5 VolumeCandlestick patterns
Updated 8 months ago · None stated GitHub repository of Delta Volume Candles [LucF]

Zero-Lag Double EMA (ZLDEMA)

by mushroom-men-Trading
2 stars

The Zero-Lag Double EMA indicator calculates a double exponential moving average with zero-lag smoothing using lag compensation and exponential warmup compensator. It plots the resulting ZLDEMA line on the price chart. The main input is the period, defaulting

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag Double EMA (ZLDEMA)

Hyper Fibo System

by morindok
1 stars

Hyper Fibo System is an overlay indicator that projects Fibonacci wave cycles and linear regression lines based on two user-selected chart anchor points. It calculates the slope, midpoint, and range between the anchors, allowing traders to apply cyclic Fibonac

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System

NO.1 RR Mark

by vedkanani123
1 stars

A price-chart indicator for one- to five-minute charts that marks each accepted entry as a buy or sell label with boxes for the stop and for 1R, 2R and 3R levels. Entries need a Supertrend flip, agreement from a completed higher-timeframe Supertrend, the EMA s

Indicator v6 TrendScalping Repaints
Updated 2 months ago · None stated GitHub repository of NO.1 RR Mark

KC Combo 46 Tick

by nishpa800
1 stars

Tick-chart overlay indicator that merges forty-six bullish and bearish combination markers into one study, replacing an earlier bull and bear pair. Combos blend Keltner Channel logic with a VWMA base line, ATR Supertrend, PB and J filter, pocket pivot and a di

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo 46 Tick
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns. Algorithm modes range from looser to strict engulfing, with a threshold separating big from small candles. Settings limit how many zones and how much history are kept, with a sepa

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V2

EDIT-tracker

by Allen1212
303 stars

EDIT-tracker is a Pine Script v4 overlay indicator that marks historical ARK Invest purchases and sales of the EDIT stock on the price chart. With the ETF input set to ALL, it places green Buy labels below bars and red Sell labels above bars on fixed calendar

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

Function: Decision Tree

by ricardosantos79
261 stars

Function: Decision Tree is a Pine Script v4 study that demonstrates a weighted decision-tree path sampler in a separate pane. A small pseudo-random generator reseeds itself from a stored float and picks node indices whose weights are at least the random draw.

Indicator v4 AI / machine learning
Updated 4 years ago · None stated GitHub repository of Function: Decision Tree
114 stars

This indicator adapts Donovan Wall's range filter to create trend-following trade labels on the price chart. It calculates a smoothed average price range using exponential moving averages and gates price fluctuations that fall within this threshold. When price

Indicator v4 TrendVolatility & bands
Updated 1 year ago · None stated GitHub repository of Smart Labelling: Range Filter
99 stars

Calculates John Ehlers' Rocket RSI indicator by combining a two-pole SuperSmoother filter with a summation-based RSI and a Fisher Transform. It measures price momentum, applies smoothing to reduce lag and noise, computes relative directional change, and applie

Indicator v6 Oscillators & momentumMoving averages
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Rocket RSI (RRSI)

Fill example 2

by be-thomas
65 stars

This indicator computes a simple moving average of the close over a fixed length of ten bars and plots a percentage oscillator equal to the gap between that average and the close, scaled by one hundred. It draws the oscillator in a separate pane and fills the

Indicator v4 Oscillators & momentumMoving averages
Updated 6 days ago · GPL-3.0 GitHub repository of Fill example 2

Typical Price (HLC3)

by mihakralj
47 stars

This indicator calculates the typical price by averaging the high, low, and close prices for each bar. It plots the HLC3 series on the price chart with a yellow line of width two. The calculation uses multiplication by 0.333333 for optimization instead of divi

Indicator v6 Support & resistance
Updated 8 months ago · MIT GitHub repository of Typical Price (HLC3)

Net Volume

by TWODS-CAPITAL
37 stars

Net Volume plots signed bar volume in a separate pane. It multiplies each bar's volume by the sign of the close-to-close change, so a rising close is positive and a falling close is negative. The result is drawn as one blue series titled NV. On the last bar it

Indicator v5 Volume
Updated 3 years ago · MIT GitHub repository of Net Volume

This overlay indicator detects tweezer tops and bottoms and kangaroo-tail pin bars, then draws supply and demand zones from those patterns. It scores each zone, decays freshness, merges overlapping zones, and can invalidate a zone after a close-through or afte

Indicator v6 Candlestick patternsSupport & resistance
Updated 3 days ago · MIT GitHub repository of Tweezer & Kangaroo Zones [WavesUnchained]

Institutional CRT Engine

by alboogycOdR
6 stars

This indicator plots an institutional candle-range-theory model on the price chart. It tracks a chosen one-hour or four-hour session candle, stores that candle’s high and low, and uses a state machine to mark the range. An optional higher-timeframe filter requ

Indicator v5 SMC / ICT / price actionSessions & time
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine

This indicator draws a SPY scalping panel in a separate pane. It calculates a Supertrend side from ATR smoothed by a selectable average, defaulting to HMA, and uses three moving averages of selectable type, defaulting to EMA lengths 13, 50, and 75. Colors mark

Indicator v5 TrendMoving averages
Updated 5 months ago · None stated GitHub repository of J8 30 123 Spy Scalping Lower Pro 2 Jerry
2 stars

Delta Volume Channels calculates volume-weighted delta channels and reference moving averages using lower timeframe intrabar volume data. It plots directly on the main price chart, displaying dynamic channel fills, reference lines, delta volume-weighted lines,

Indicator v5 VolumeVolatility & bands
Updated 8 months ago · None stated GitHub repository of Delta Volume Channels [LucF]

Zero-Lag EMA (ZLEMA)

by mushroom-men-Trading
2 stars

Calculates and plots a Zero-Lag Exponential Moving Average directly on the price chart. It reduces traditional moving average lag by computing a signal from the current price and a lagged price offset by half the smoothing period, followed by exponential smoot

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag EMA (ZLEMA)

Hyper Fibo System

by morindok
1 stars

Hyper Fibo System plots dynamic price lines, Fibonacci waves, symmetry projections, and regression channels based on two user-selected anchor points. The script calculates slope, midpoints, and cross levels between anchor points to project Fibonacci wave cycle

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System
1 stars

An indicator for the price chart that classifies conditions as trend, range, transition or shock and lets only the matching module signal: a Supertrend flip or continuation in trends, a fade of a completed range edge in ranges, and a break of the completed Asi

Indicator v6 TrendSessions & time
Updated 2 months ago · None stated GitHub repository of NO.1 ULTIMATE BUY/SELL SIGNAL

KC Combo Bear

by nishpa800
1 stars

Time-chart bearish overlay indicator with 23 combination markers that mix Keltner Channel logic with other engines. Inputs cover a VWMA base line, an ATR Supertrend, a PB and J filter, Keltner bands with slope thresholds, pocket pivot size, and a displacement

Indicator v5 Volatility & bandsVolume Repaints
Updated 2 months ago · None stated GitHub repository of KC Combo Bear
1 stars

Draws supply and demand zones on the price chart from engulfing candle patterns, with a zone invalidated after a set number of level breaches. Algorithm modes range from looser to strict engulfing, and a threshold separates big from small candles. Settings lim

Indicator v5 Support & resistanceCandlestick patterns
Updated 6 months ago · None stated GitHub repository of Supply and Demand Zones V4

Day ATR

by ivansoft
1 stars

Calculates daily median and 85th percentile ranges for high-to-open and open-to-low distances over a 30-day lookback period using higher timeframe daily data. At each new trading day, the script projects expected upper and lower volatility levels directly on t

Indicator v5 Volatility & bandsSupport & resistance
Updated 1 year ago · None stated GitHub repository of Day ATR

EDR-tracker

by Allen1212
303 stars

EDR-tracker is an overlay indicator that marks historical ARK Invest purchases and sales of EDR on the price chart. It places green buy labels below bars and red sell labels above bars at hardcoded dates. Each label shows the trade direction and how many ARK E

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

Implements a Discrete Fourier Transform (DFT) custom function in Pine Script to decompose time-series amplitude data into frequency domain components. The function calculates arrays of complex numbers representing frequency amplitudes and phase angles by itera

Indicator v4
Updated 4 years ago · None stated GitHub repository of Function: Discrete Fourier Transform
114 stars

This indicator implements a distance-based pair trading strategy applied across two timeframes of the same instrument. It calculates the spread or statistical distance between price data on the active chart and a secondary timeframe using selected metrics like

Indicator v4 Mean reversion
Updated 1 year ago · None stated GitHub repository of SpreadTrade: Distance (v.2)
99 stars

The Ehlers Roofing Filter isolates cyclical market components by eliminating low-frequency macro trends and high-frequency market noise. It combines a two-pole Butterworth high-pass filter with a Super Smoother filter. The high-pass stage removes cycle compone

Indicator v6 TrendOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Ehlers Roofing Filter (ROOFING)

For Loop

by be-thomas
65 stars

This script demonstrates how to implement a custom Simple Moving Average (SMA) function using an explicit loop construct in Pine Script v4. It defines a function that iterates through past bar values up to a specified length of 14, sums the closing prices, and

Indicator v4 Moving averages
Updated 6 days ago · GPL-3.0 GitHub repository of For Loop
47 stars

The Ultimate Channel calculates an ultra-smoothed centerline alongside upper and lower volatility bands directly on the main price chart. It processes true range values through an advanced infinite impulse response smoothing filter to establish dynamic channel

Indicator v6 Volatility & bandsTrend
Updated 8 months ago · MIT GitHub repository of Ultimate Channel (UCHANNEL)

On Balance Volume

by TWODS-CAPITAL
37 stars

This indicator plots the standard On Balance Volume (OBV) in a separate pane by accumulating volume based on the direction of price changes. It includes an optional smoothing line that can apply a Simple, Exponential, Smoothed, Weighted, or Volume-Weighted Mov

Indicator v5 VolumeMoving averages
Updated 3 years ago · MIT GitHub repository of On Balance Volume

This indicator computes and plots multiple technical analysis features on a separate pane. It calculates EMA-based trend indicators including fast and slow EMAs along with their slope, momentum oscillators such as RSI, Stochastic RSI, and MACD histogram, WaveT

Indicator v6 TrendOscillators & momentum
Updated 3 days ago · MIT GitHub repository of Vein Feature Exporter Core 4H [WavesUnchained]
6 stars

Institutional CRT Engine Dual Mode implements Candle Range Theory across selectable 1-hour and 4-hour timeframes. It anchors to defined session opening hours across Asian, London, and New York market periods to establish range boundaries. The indicator evaluat

Indicator v5 SMC / ICT / price actionSessions & time Repaints
Updated 7 months ago · None stated GitHub repository of Institutional CRT Engine Dual Mode

Delta Volume Columns Pro

by regalouisei
2 stars

This indicator plots delta volume columns or a volume balance line in a separate pane. It calculates volume delta from buy and sell volumes and renders it as colored columns or a balance line. Users select calculation methods for balance such as on bar, averag

Indicator v5 VolumeDivergence
Updated 8 months ago · None stated GitHub repository of Delta Volume Columns Pro

Zero-Lag Triple EMA (ZLTEMA)

by mushroom-men-Trading
2 stars

The Zero-Lag Triple EMA (ZLTEMA) indicator calculates a smoothed trend line using triple exponential smoothing with lag compensation for reduced delay. It plots the resulting line on the price chart in yellow. The period input adjusts smoothing sensitivity by

Indicator v6 Moving averagesTrend
Updated 9 months ago · None stated GitHub repository of Zero-Lag Triple EMA (ZLTEMA)
1 stars

This indicator projects geometric cycles and Fibonacci-scaled waves anchored between two user-defined chart points. It calculates the slope, midpoint, and span between the selected points to generate an expanding sine wave modulated by powers of the golden rat

Indicator v5 Support & resistanceTrend
Updated 7 weeks ago · None stated GitHub repository of Hyper Fibo System [Morindok]

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